mirror of
https://github.com/wassname/DeepTime.git
synced 2026-06-27 19:13:18 +08:00
14 lines
340 B
Python
14 lines
340 B
Python
from typing import Union
|
|
|
|
import torch
|
|
|
|
from .DeepTIMe import deeptime
|
|
|
|
|
|
def get_model(model_type: str, **kwargs: Union[int, float]) -> torch.nn.Module:
|
|
if model_type == 'deeptime':
|
|
model = deeptime(datetime_feats=kwargs['datetime_feats'])
|
|
else:
|
|
raise ValueError(f"Unknown model type {model_type}")
|
|
return model
|