Skip to content

Commit

Permalink
[ENH] move tide model - part 2 (#1744)
Browse files Browse the repository at this point in the history
Follows #1743, adds
exports and linting.
  • Loading branch information
fkiraly authored Dec 28, 2024
1 parent 8bcc0d8 commit 18153aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 9 additions & 0 deletions pytorch_forecasting/models/tide/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""Tide model."""

from pytorch_forecasting.models.tide._tide import TiDEModel
from pytorch_forecasting.models.tide.sub_modules import _TideModule

__all__ = [
"_TideModule",
"TiDEModel",
]
12 changes: 6 additions & 6 deletions pytorch_forecasting/models/tide/_tide.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from typing import Dict, List, Optional, Tuple, Union
from copy import copy
from typing import Dict, List, Optional, Tuple, Union

import torch
from torch import nn

from pytorch_forecasting.data import TimeSeriesDataSet
from pytorch_forecasting.data.encoders import NaNLabelEncoder
from pytorch_forecasting.metrics import MAE, MAPE, MASE, RMSE, SMAPE
from pytorch_forecasting.models.base_model import BaseModelWithCovariates
from pytorch_forecasting.models.nn.embeddings import MultiEmbedding
from pytorch_forecasting.models.tide.sub_modules import _TideModule
from pytorch_forecasting.data import TimeSeriesDataSet
from pytorch_forecasting.data.encoders import NaNLabelEncoder

from torch import nn
import torch


class TiDEModel(BaseModelWithCovariates):
Expand Down

0 comments on commit 18153aa

Please sign in to comment.