-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Issue saving ForecasterSarimax object #627
Comments
OK I just figured out that I can load my SARIMAX forecaster if I do
Just out of curiosity I tried it with another saved forecaster |
Hi @tyg3rr You are right, we missed adding the method |
Regarding the grid search for Sarimax, unfortunately, the fitting process of these models is quite slow. ForecasterSarimax is also compatible with the auto-arima process, these may be a much faster alternative, see an example here: https://cienciadedatos.net/documentos/py51-arima-sarimax-models-python#Model-tuning Would you mind opening a new issue with this last topic? This will allow others to find it faster. Thanks! |
Bug fixed in skforecast 0.12.0 |
Hello! First off I just want to thank you for making this library available. It's been super helpful as I work on my masters' thesis!
I have a trained ForecasterSarimax object that I'd like to save, but I'm hitting an AttributeError
save_forecaster(forecaster3, file_name='SARIMAX_001.py')
with the following error traceback:
When I save the forecaster with
verbose=False
I don't get the error, but then I encounter the same error when loading the forecaster:load_forecaster('SARIMAX_001.py')
I am having no issues saving and loading the other Forecaster objects that I created with ElasticNetCV & RandomForest. It's just SARIMAX, and I think it's related to the fact that the sarimax forecaster is wrapping the statsmodels sarimax, as opposed to the others which wrap sklearn models.
I've had other hiccups with the SarimaxForecaster, too. I noticed another issue was opened regarding the time needed for sarimax gridsearching/backtesting - I had a similar issue as that user, with muuuch smaller data. It took over 6 hours to complete my gridsearch.
Regardless, that ^^^ is just a side note. Is there a different way to save/load Sarimax forecaster objects?
The text was updated successfully, but these errors were encountered: