Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplementedError() #7

Closed
LoveenDyall opened this issue Aug 4, 2019 · 1 comment
Closed

NotImplementedError() #7

LoveenDyall opened this issue Aug 4, 2019 · 1 comment

Comments

@LoveenDyall
Copy link

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?

cotterpl added a commit that referenced this issue Aug 5, 2019
- Upgrating depenencies due to urllib3 vulnerability CVE-2019-11324
- Fixing #7
- Fixing #6
@cotterpl
Copy link
Collaborator

cotterpl commented Aug 5, 2019

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.

@cotterpl cotterpl closed this as completed Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants