ARMAResults.remove_data()

statsmodels.tsa.arima_model.ARMAResults.remove_data

ARMAResults.remove_data()

remove data arrays, all nobs arrays from result and model

This reduces the size of the instance, so it can be pickled with less memory. Currently tested for use with predict from an unpickled results and model instance.

Warning

Since data and some intermediate results have been removed calculating new statistics that require them will raise exceptions. The exception will occur the first time an attribute is accessed that has been set to None.

Not fully tested for time series models, tsa, and might delete too much for prediction or not all that would be possible.

The list of arrays to delete is maintained as an attribute of the result and model instance, except for cached values. These lists could be changed before calling remove_data.

doc_statsmodels
2017-01-18 16:07:06
Comments
Leave a Comment

Please login to continue.