How to reset the history of a TS model without to change the model's parameters #5545
Replies: 7 comments 2 replies
-
If you explicitly want to make the model "forget" and refit it, you can use This will not reset The |
Beta Was this translation helpful? Give feedback.
-
Or, are you asking to make the serialized version smaller? |
Beta Was this translation helpful? Give feedback.
-
I don't know UpdateRefitsEvery, I will check. m.predict(fh [,X], y_past [,X_past]) (indeed, now it is implemented using 'update&predict'). The other important reason is, exactly, to reduce the size of the serialized object saved in the DB. Note: the parameter name I suggested is based on 'update_params' ;-) Note/2: I implemented a 'clear_yX(model)' based on reflection and some tricks, but it is just a 'trick'. |
Beta Was this translation helpful? Give feedback.
-
This is just a first implementation, very 'simple'. |
Beta Was this translation helpful? Give feedback.
-
Addressed by #5676, except in case of clones and vectorization. Review would be appreciated, @corradomio. |
Beta Was this translation helpful? Give feedback.
-
@corradomio, your code has helped in decoupling the data stores in #5676. However, I noticed that Have you also thought about how to handle Have you though about how to do the same in case of vecorization? |
Beta Was this translation helpful? Give feedback.
-
@corradomio, this should be possible for forecasters now, in 0.25.1, via the As stated above, we did not figure out how to do it for vectorization, so if you have any ideas or code that would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
There an 'official' mechanism to delete the content of internal _X, _y, _fh, without to change the the model's parameters?
The idea is this:
I use the 2000-2010 data to predict the 2011.
Now I save the trained model inside the DB.
Next I load the model from th DB, I 'update' it with the data 2002-2012 and I use it to predict the 2013.
I don't need to save the historical data because I pass these values before to use it.
In 'theory', it is enough to extend 'model.reset()' with a parameter 'keep_params' with default value 'False' (or other equivalent idea)
Beta Was this translation helpful? Give feedback.
All reactions