-
Notifications
You must be signed in to change notification settings - Fork 487
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
Size of saved model file changes dramatically after different calls of predict
#1415
Comments
Hi, |
@SimonWittner thanks for the reply - Yes I think I'm not very familiar with |
@c3-ziqin Thank you for raising this to our awareness and for providing clear examples. If you might be able to find how we can avoid the data frame from being indexed and included by |
@c3-ziqin Yes, I think this is the way to go. I just digged deeper into the forecaster object, but I'm unsure which attributes to remove. Probably sth like this: But not super sure, if the actual data is saved here |
hi @c3-ziqin, I think I fixed it. Can you check if this works for you? #1425 |
Describe the bug
Time and disk space needed for saving a model changes dramatically after different calls of
predict
. Potentially this can be expected, as some info about the forecasted dataset might be saved onNeuralProphet
object.However, giving users an option to only save necessary part of model (enough for future predictions) can be a huge plus.
To Reproduce
save the model directly after training
save model after predict on 2 rows
save model after predict on 1000 rows
Expected behavior
save
function to only save the minimal modelAdditional context
The TimeNet object (
m.model
) is causing the difference. But I did not dig deep enough for the root cause.The text was updated successfully, but these errors were encountered: