You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we only support running with a configuration file using python run.py
To make it more user-friendly for new users, we can add the ability to train and infer time-series models with just a few lines of code. For example:
# load_model by one line of codefromprobts.model.forecaster.point_forecaster.unitsimportUniTSunits=UniTS(ckpt_path='checkpoints/units/units_x128_pretrain_checkpoint.pth', target_dim=1, context_length=96, prediction_length=96, freq='H', lags_list=[])
fromprobts.model.forecaster.prob_forecaster.moiraiimportMoiraimoirai=Moirai(target_dim=1, context_length=96, prediction_length=96, freq='H', lags_list=[], patch_size=32, variate_mode='S', model_size='small')
# load data by one line of codedata_manager=DataManager("traffic", history_length=96, context_length=96, prediction_length=96, scaler='standard')
data_loader=DataLoader(data_manager.test_iter_dataset, batch_size=1)
# train and inference examples# TODO
The text was updated successfully, but these errors were encountered:
Currently, we only support running with a configuration file using
python run.py
To make it more user-friendly for new users, we can add the ability to train and infer time-series models with just a few lines of code. For example:
The text was updated successfully, but these errors were encountered: