-
Notifications
You must be signed in to change notification settings - Fork 76
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
Sparse Methods Missing from 0.3.0 #234
Comments
Hey @tbellamey, we just released 0.4.0. You should be able to use those methods if you upgrade your installation. |
Hi @jmoralez , I upgraded my installation to 0.4.0. However, upon running my script (no code changed), I am now getting the below error. This seems to be inducing an error in using StatsForecast AutoETS models now. I also tried StatsForecast HoltWinters and received the same error. This error did not raise with the same dataset & script when running 0.3.0 - any ideas what might have changed the behavior from 0.3.0 to 0.4.0? I can also open this as a new issue for tracking. NotImplementedError Traceback (most recent call last) File ~/lib/python3.10/site-packages/statsforecast/core.py:880, in StatsForecast.fit(self, df, sort_df, prediction_intervals) File ~/lib/python3.10/site-packages/statsforecast/core.py:77, in GroupedArray.fit(self, models) File ~/lib/python3.10/site-packages/statsforecast/models.py:650, in AutoETS.fit(self, y, X) File ~/lib/python3.10/site-packages/statsforecast/ets.py:1241, in ets_f(y, m, model, damped, alpha, beta, gamma, phi, additive_only, blambda, biasadj, lower, upper, opt_crit, nmse, bounds, ic, restrict, allow_multiplicative_trend, use_initial_values, maxit) NotImplementedError: tiny datasets |
Closing since the original issue is solved. |
What happened + What you expected to happen
I attempted to import the BottomUpSparse and MinTraceSparse methods from hierarchicalforecast.methods
However, upon inspection of the class, I noticed that release 0.3.0 doesn't contain either of these sparse methods:
NAME
hierarchicalforecast.methods - # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/methods.ipynb.
CLASSES
HReconciler(builtins.object)
BottomUp
ERM
MiddleOut
MinTrace
OptimalCombination
TopDown
I used the standard pip install command: pip install hierarchicalforecast
Is there a different version that I should install to access these sparse methods?
Versions / Dependencies
dateutil 2.8.2
hierarchicalforecast 0.3.0
matplotlib 3.7.1
numpy 1.23.5
pandas 2.0.2
session_info 1.0.0
statsforecast 1.6.0
IPython 8.14.0
jupyter_client 8.2.0
jupyter_core 5.3.0
notebook 6.5.4
Python 3.10.11 (main, Apr 20 2023, 19:02:41) [GCC 11.2.0]
Linux-4.18.0-372.16.1.0.1.el8_6.x86_64-x86_64-with-glibc2.35
Reproduction script
from hierarchicalforecast.methods import BottomUp, TopDown, MinTrace, ERM, OptimalCombination, MiddleOut, BottomUpSparse, MinTraceSparse
Issue Severity
Low: It annoys or frustrates me.
The text was updated successfully, but these errors were encountered: