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 can i store state of model? #119

Open
AvinashUtekar opened this issue Dec 17, 2024 · 4 comments
Open

How can i store state of model? #119

AvinashUtekar opened this issue Dec 17, 2024 · 4 comments

Comments

@AvinashUtekar
Copy link

I have hourly electricity consumption data for each building and I want to forecast the next 7 days (hourly) every Monday. When I feed data to the model each Monday, the model should retain past data or parameters so that it improves in accuracy over time.
I mean model should remember past data or parameters to improve accuracy iteratively.
how can i achieve it?

@AvinashUtekar
Copy link
Author

@ashok-arjun

@ashok-arjun
Copy link
Contributor

Can you save the model with pytorch?

@AvinashUtekar
Copy link
Author

predictor = estimator.train(dataset.train, cache_data=True, shuffle_buffer_length=1000)
model_path = "my_model.ckpt"
torch.save(predictor, model_path)

i tried something like this but not working

@kashif
Copy link
Contributor

kashif commented Dec 24, 2024

@AvinashUtekar so typically what one does is to feed updated context to the model, i.e. next week, feed the ground-truth of the past week etc. and this way one can get the forecast based on the most recent ground-truth...

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