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

Key error when using ensemble #18

Open
adalseno opened this issue Jun 1, 2020 · 0 comments
Open

Key error when using ensemble #18

adalseno opened this issue Jun 1, 2020 · 0 comments

Comments

@adalseno
Copy link

adalseno commented Jun 1, 2020

Hi, I tried the model (on Colab) and worked without any issue (not with good performances actually) until this point all_ensemble_in, all_ensemble_out, all_performance = am.ensemble(forecast_in, forecast_out) where it gives me the following error:

Building LightGBM Ensemble from TS data (ensemble_lgb)
Building LightGBM Ensemble from PCA reduced TSFresh Features (ensemble_ts). This can take a long time.
LightGBM ensemble have been successfully built
358  variables are found to be almost constant
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-55-7e8add29e43a> in <module>()
----> 1 all_ensemble_in, all_ensemble_out, all_performance = am.ensemble(forecast_in, forecast_out)

6 frames
/usr/local/lib/python3.6/dist-packages/pandas/core/indexes/base.py in drop(self, labels, errors)
   5338         if mask.any():
   5339             if errors != "ignore":
-> 5340                 raise KeyError("{} not found in axis".format(labels[mask]))
   5341             indexer = indexer[~mask]
   5342         return self.delete(indexer)

KeyError: "['index'] not found in axis"

Here attached the df. The model is:
model_list = ['ARIMA',"HWAMS","HWAAS","TBATS1"]
am = AutomatedModel(df = df , model_list=model_list,forecast_len=65 )
Schermata 2020-06-01 alle 20 14 13

df.csv.zip

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

1 participant