Nixtla / neuralforecast

Scalable and user friendly neural :brain: forecasting algorithms.
https://nixtlaverse.nixtla.io/neuralforecast
Apache License 2.0
2.98k stars 342 forks source link

'StatsForecast' object has no attribute 'ga' #952

Closed LeonTing1010 closed 6 months ago

LeonTing1010 commented 6 months ago

What happened + What you expected to happen

site-packages/statsforecast/core.py", line 642, in predict fcsts, cols = self.ga.predict(fm=self.fitted_, h=h, X=X, level=level) AttributeError: 'StatsForecast' object has no attribute 'ga'

Versions / Dependencies

Name: statsforecast Version: 1.5.0 Summary: Time series forecasting suite using statistical models Home-page: https://github.com/Nixtla/statsforecast/ Author: Nixtla Author-email: business@nixtla.io License: Apache Software License 2.0 Location: /Users/leo/web3/LLM/langchain/venv/lib/python3.10/site-packages Requires: fugue, matplotlib, numba, numpy, pandas, plotly, plotly-resampler, scipy, statsmodels, tqdm Required-by:

Reproduction script

df = pd.read_csv('https://datasets-nixtla.s3.amazonaws.com/air-passengers.csv', parse_dates=['ds'])

sf = StatsForecast( models=[AutoARIMA(season_length=12)], freq='M', )

forecast_df = sf.predict(h=12, level=[90])

sf.plot(df, forecast_df, level=[90])

Issue Severity

High: It blocks me from completing my task.