Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to train? #144

Open
wtt6668888 opened this issue Sep 29, 2024 · 2 comments
Open

How to train? #144

wtt6668888 opened this issue Sep 29, 2024 · 2 comments

Comments

@wtt6668888
Copy link

How should the provided code be applied to your own dataset for training and prediction?

@fayvor
Copy link
Collaborator

fayvor commented Oct 2, 2024

Hi @wtt6668888, here are a couple of notebooks that may be of use to you. Your dataset will need to be parseable into a pandas dataframe with a time column and a target column for prediction. Please let me know if this helps answer your question.
Energy Demand Forecasting - Basic Inference
Preprocessing and Performance Evaluation

@wgifford
Copy link
Collaborator

wgifford commented Oct 2, 2024

@wtt6668888 For pretraining a new model from scratch you can take a look at the workflow here: https://github.com/ibm-granite/granite-tsfm/blob/main/notebooks/hfdemo/tinytimemixer/ttm_pretrain_sample.py

If you wish to fine-tune the pretrained model, you can take a look at the following notebook: https://github.com/ibm-granite/granite-tsfm/blob/main/notebooks/tutorial/ttm_with_exog_tutorial.ipynb

This notebook fine-tunes the model so that additional exogenous features can be included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants