You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the problem is the res.predict() only returns one observation instead of a nobs array.
Also, AFAIK, assigning attributes does not overwrite inherited cached properties. (IIRC we have that problem in RegressionResults scale)
this means we have to add cached properties explicitly override the inherited method.
e.g. we could use plain property with internally assigned _fittedvalues
Bug/convention: I think predict should follow standard pattern and return full nobs array.
holtwinters Results classes has a forecast method which defaults to a single one step forecast identical to predict.
Also the holtwinters classes still compute post estimation results like sse/ssr, aic in fit instead of in results class results is computed in fit following standard definition, but not used in fit.
running pytest holtwinter.py shows also 5 convergence warnings.
If those are expected, then they should be silenced, otherwise investigated for improvements.
about resid
There are no unit tests, and resid = endog - fittedvalues is not true if fit option remove_bias=True, because the resid.mean() is subtracted in fitted which is fittedvalues concatenated with forecast, but resid attribute is not debiased.
I'm making some small changes in #5255 without the refactoring of moving more post estimation results from fit to results methods.
rename attribute to _fittedvalues and add property fittedvalues
rename resid to resid_biased and let HoltWintersResults.resid be the, new in 5255, cached attribute from base.Results which satisfies resid = endog - fittedvalues
I am trying to add cached properties
fittedvalues
andresid
generically to base.model.Results in 5255holtwinters uses attributes instead of cached properties
I get one test failure after adding the generic methods in all environments
https://travis-ci.org/statsmodels/statsmodels/jobs/432552696
I have no idea yet what's going on.
The text was updated successfully, but these errors were encountered: