Skip to content

Commit

Permalink
no import of functions requiring optional imports
Browse files Browse the repository at this point in the history
  • Loading branch information
wgifford committed Aug 14, 2024
1 parent b188e80 commit a598421
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"from torch.optim.lr_scheduler import OneCycleLR\n",
"from transformers import EarlyStoppingCallback, Trainer, TrainingArguments, set_seed\n",
"\n",
"from tsfm_public import TinyTimeMixerForPrediction, TrackingCallback, count_parameters, load_dataset, plot_predictions"
"from tsfm_public import TinyTimeMixerForPrediction, TrackingCallback, count_parameters, load_dataset\n",
"from tsfm_public.toolkit.visualization import plot_predictions"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions notebooks/hfdemo/tinytimemixer/ttm_benchmarking_512_96.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"from torch.optim.lr_scheduler import OneCycleLR\n",
"from transformers import EarlyStoppingCallback, Trainer, TrainingArguments, set_seed\n",
"\n",
"from tsfm_public import TinyTimeMixerForPrediction, TrackingCallback, count_parameters, load_dataset, plot_predictions"
"from tsfm_public import TinyTimeMixerForPrediction, TrackingCallback, count_parameters, load_dataset\n",
"from tsfm_public.toolkit.visualization import plot_predictions"
]
},
{
Expand Down Expand Up @@ -3842,7 +3843,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
5 changes: 3 additions & 2 deletions notebooks/hfdemo/ttm_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"from torch.optim.lr_scheduler import OneCycleLR\n",
"from transformers import EarlyStoppingCallback, Trainer, TrainingArguments, set_seed\n",
"\n",
"from tsfm_public import TinyTimeMixerForPrediction, TrackingCallback, count_parameters, load_dataset, plot_predictions"
"from tsfm_public import TinyTimeMixerForPrediction, TrackingCallback, count_parameters, load_dataset\n",
"from tsfm_public.toolkit.visualization import plot_predictions"
]
},
{
Expand Down Expand Up @@ -873,7 +874,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.10.13"
}
},
"nbformat": 4,
Expand Down
2 changes: 0 additions & 2 deletions tsfm_public/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
"load_dataset",
"TrackingCallback",
"count_parameters",
"plot_predictions",
],
}

Expand Down Expand Up @@ -90,7 +89,6 @@
count_parameters,
get_datasets,
load_dataset,
plot_predictions,
)
else:
# Standard
Expand Down
1 change: 0 additions & 1 deletion tsfm_public/toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
from .time_series_forecasting_pipeline import TimeSeriesForecastingPipeline
from .time_series_preprocessor import TimeSeriesPreprocessor, get_datasets
from .util import count_parameters
from .visualization import plot_predictions

0 comments on commit a598421

Please sign in to comment.