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
File "/../venv/lib/python3.7/site-packages/tbats/abstract/Estimator.py", line 95, in fit
return self.context.create_constant_model(y[0]).fit(y)
File "/../venv/lib/python3.7/site-packages/tbats/tbats/Context.py", line 17, in create_constant_model
ModelParams(components=Components.create_constant_components(), alpha=0, x0=[constant_value])
File "/../venv/lib/python3.7/site-packages/tbats/abstract/Components.py", line 71, in create_constant_components
raise NotImplementedError()
NotImplementedError
Seems to be that if np.allclose(y, y[0]) == True, then this gets raised. wondering how to avoid or what plans are for implementation updates?
The text was updated successfully, but these errors were encountered:
I have released 1.0.8 today and it fixes this problem. The problem you are seeing is becasue all of your input series have exactly the same value (they are constant). It means no other than constant model returning this one an only value makes sense.
File "/../venv/lib/python3.7/site-packages/tbats/abstract/Estimator.py", line 95, in fit
return self.context.create_constant_model(y[0]).fit(y)
File "/../venv/lib/python3.7/site-packages/tbats/tbats/Context.py", line 17, in create_constant_model
ModelParams(components=Components.create_constant_components(), alpha=0, x0=[constant_value])
File "/../venv/lib/python3.7/site-packages/tbats/abstract/Components.py", line 71, in create_constant_components
raise NotImplementedError()
NotImplementedError
Seems to be that if np.allclose(y, y[0]) == True, then this gets raised. wondering how to avoid or what plans are for implementation updates?
The text was updated successfully, but these errors were encountered: