Skip to content

Commit

Permalink
style checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaye12ibm committed Oct 7, 2024
1 parent 34e5405 commit 307c75b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 16 deletions.
1 change: 0 additions & 1 deletion notebooks/hfdemo/patch_tsmixer_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"# Third Party\n",
"from transformers import (\n",
" EarlyStoppingCallback,\n",
" PatchTSMixerConfig,\n",
" PatchTSMixerForPrediction,\n",
" Trainer,\n",
" TrainingArguments,\n",
Expand Down
1 change: 0 additions & 1 deletion notebooks/hfdemo/patch_tst_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"# Third Party\n",
"from transformers import (\n",
" EarlyStoppingCallback,\n",
" PatchTSTConfig,\n",
" PatchTSTForPrediction,\n",
" Trainer,\n",
" TrainingArguments,\n",
Expand Down
11 changes: 4 additions & 7 deletions notebooks/hfdemo/ttm_rolling_prediction_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@
}
],
"source": [
"import math\n",
"import os\n",
"import tempfile\n",
"\n",
"from torch.optim import AdamW\n",
"from torch.optim.lr_scheduler import OneCycleLR\n",
"from transformers import EarlyStoppingCallback, Trainer, TrainingArguments, set_seed\n",
"from transformers import Trainer, TrainingArguments, set_seed\n",
"\n",
"from tsfm_public import TinyTimeMixerForPrediction, TrackingCallback, count_parameters, load_dataset\n",
"from tsfm_public.toolkit.visualization import plot_predictions\n",
"from tsfm_public.toolkit import RecursivePredictor,RecursivePredictorConfig"
"from tsfm_public import TinyTimeMixerForPrediction, load_dataset\n",
"from tsfm_public.toolkit import RecursivePredictor, RecursivePredictorConfig\n",
"from tsfm_public.toolkit.visualization import plot_predictions"
]
},
{
Expand Down
2 changes: 0 additions & 2 deletions notebooks/thinklab/01_patch_tst_pretrain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@
"source": [
"import pandas as pd\n",
"from transformers import (\n",
" PatchTSTConfig,\n",
" PatchTSTForPretraining,\n",
" Trainer,\n",
" TrainingArguments,\n",
")\n",
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorial/ttm_channel_mix_finetuning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
" count_parameters,\n",
" get_datasets,\n",
")\n",
"from tsfm_public.toolkit.visualization import plot_predictions\n",
"from tsfm_public.toolkit.lr_finder import optimal_lr_finder"
"from tsfm_public.toolkit.lr_finder import optimal_lr_finder\n",
"from tsfm_public.toolkit.visualization import plot_predictions"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions notebooks/tutorial/ttm_with_exog_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
" count_parameters,\n",
" get_datasets,\n",
")\n",
"from tsfm_public.toolkit.visualization import plot_predictions\n",
"from tsfm_public.toolkit.lr_finder import optimal_lr_finder"
"from tsfm_public.toolkit.lr_finder import optimal_lr_finder\n",
"from tsfm_public.toolkit.visualization import plot_predictions"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion tsfm_public/toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .callbacks import TrackingCallback
from .data_handling import load_dataset
from .dataset import ForecastDFDataset, PretrainDFDataset, RegressionDFDataset
from .recursive_predictor import RecursivePredictor, RecursivePredictorConfig, RecursivePredictorOutput
from .time_series_forecasting_pipeline import TimeSeriesForecastingPipeline
from .time_series_preprocessor import TimeSeriesPreprocessor, get_datasets
from .util import count_parameters
from .recursive_predictor import RecursivePredictorOutput, RecursivePredictor, RecursivePredictorConfig

0 comments on commit 307c75b

Please sign in to comment.