Skip to content

Commit

Permalink
ease import of some toolkit items
Browse files Browse the repository at this point in the history
  • Loading branch information
wgifford committed Jul 19, 2024
1 parent 8e5d467 commit c9e1337
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tsfm_public/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
_import_structure = {
"models": [],
"models.tinytimemixer": ["TINYTIMEMIXER_PRETRAINED_CONFIG_ARCHIVE_MAP", "TinyTimeMixerConfig"],
"toolkit": [],
"toolkit": [
"TimeSeriesPreprocessor",
"TimeSeriesForecastingPipeline",
"ForecastDFDataset",
"PretrainDFDataset",
"RegressionDFDataset",
],
}


Expand All @@ -40,6 +46,13 @@
TinyTimeMixerModel,
TinyTimeMixerPreTrainedModel,
)
from .toolkit import (
ForecastDFDataset,
PretrainDFDataset,
RegressionDFDataset,
TimeSeriesForecastingPipeline,
TimeSeriesPreprocessor,
)
else:
# Standard
import sys
Expand Down
4 changes: 4 additions & 0 deletions tsfm_public/toolkit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Copyright contributors to the TSFM project
#

from .dataset import ForecastDFDataset, PretrainDFDataset, RegressionDFDataset
from .time_series_forecasting_pipeline import TimeSeriesForecastingPipeline
from .time_series_preprocessor import TimeSeriesPreprocessor

0 comments on commit c9e1337

Please sign in to comment.