AutoViML / Auto_TS

Automatically build ARIMA, SARIMAX, VAR, FB Prophet and XGBoost Models on Time Series data sets with a Single Line of Code. Created by Ram Seshadri. Collaborators welcome.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnboundLocalError: local variable 'forecast_df_folds' referenced before assignment

XuHongjun-richard opened this issue · comments

my auto-ts version is 0.0.37 and this happens again:

UnboundLocalError Traceback (most recent call last)
in
5
6 model = ATS(score_type='normalized_rmse',forecast_period=FORECAST_PERIOD,model_type='best', verbose=0)
----> 7 model.fit(traindata=train,ts_column=ts_column,target=target,cv=4)
8 future_predictions = model.predict(testdata=testdata,).reset_index()
9 auto_ts_pred[risk]=sum(future_predictions['yhat'])

~/opt/anaconda3/envs/auto-ts/lib/python3.8/site-packages/auto_ts/init.py in fit(self, traindata, ts_column, target, sep, cv)
504
505 self.ml_dict[name]['model'] = model
--> 506 self.ml_dict[name]['forecast'] = forecast_df_folds
507 self.ml_dict[name][self.score_type] = score_val
508 self.ml_dict[name]['model_build'] = model_build