Open jelc53 opened 2 years ago
Thanks for reporting this. I think we should probably be able to support forecasting after removing data, so this is probably just about what assumptions the forecasting code makes (e.g. in the error message above, it checks the length of endog
which doesn't exist after the data is removed).
Yep perfect, and I think similar for any exogenous data. Happy to work on a PR but not possible for me this week.
Describe the bug
Cannot predict after SARIMAXResults
remove_data
method called. As an example, for my project the statsmodel results object is ~2 Gb andremove_data
reduced this to ~200 Mb (which I was super excited about!), but then unable to reuse results object to make predictions and so rather useless.Code Sample, a copy-pastable example if possible
Code example taken from statsmodels sarimax documentation here: https://github.com/statsmodels/statsmodels/issues/new?assignees=&labels=&template=bug_report.md&title=
If the issue has not been resolved, please file it in the issue tracker.
Expected Output
Error message
Output of
import statsmodels.api as sm; sm.show_versions()