Open david-waterworth opened 1 year ago
The reason that all the coefficients are zero appears to be because I have NaN's in my dataset - removing them (with ffill
) results in
{'coef': {'ar1': 0.8099046785691325,
'ar2': -0.033508152860819373,
'ar3': 0.22413016829097446,
'ar4': -0.21262877451379128,
'sma1': -0.9515628249609445},
'sigma2': 0.6471134960291787,
'var_coef': array([[ 2.81907572e-12, -2.02133764e-12, 1.91492792e-12,
0.00000000e+00, 0.00000000e+00],
[-2.76103420e-11, 3.49215011e-11, -9.27323490e-12,
0.00000000e+00, 0.00000000e+00],
[ 2.13012271e-11, -4.24520930e-11, 2.28853117e-11,
0.00000000e+00, 0.00000000e+00],
[-4.64671662e-12, 1.54557668e-11, -2.89979576e-11,
1.76992626e-11, 0.00000000e+00],
[ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 1.94068897e-11]]),
'mask': array([ True, True, True, True, True]),
'loglik': -272723.5607908177,
'aic': 545459.1215816354,
...
So I'd say this is a bug because it appears that unlike stats models
, statsforcast
doesn't appear to handle NaNs but it also doesn't seem to check and raise an error.
Also related it doesn't appear to have identified that the fit failed and the model is degenerate, statsmodels
will report a convergence error in these cases. The aic is also significantly;t worse than statsmodel.
Description
Is there an api to print the model coefficients/aic/bic etc like
R
orstatsmodels
? I fitted an ARIMA model but the Nixtla classes don't appear to implement REPL support so its hard to identify the model parameters, for exampleIf I fit this model in
statsmodels
and generate the following reportI've not been able to find similar functionality in
statsforecast
, after studying the code I foundBut this is a raw dict, I can see the AIC but I cannot see how to extract the coefficients - I'd assumed
coef
but they're zero?Use case
I need a standard way of generating the properties of a fitted model, similar to R and statsmodels