facebookresearch / Kats

Kats, a kit to analyze time series data, a lightweight, easy-to-use, generalizable, and extendable framework to perform time series analysis, from understanding the key statistics and characteristics, detecting change points and anomalies, to forecasting future trends.
MIT License
4.85k stars 530 forks source link

kats.models.arima Error #291

Open nebiyebulan opened 1 year ago

nebiyebulan commented 1 year ago

Hi, I'm running kats' arima model with the following code. But I am getting this error.

ARIMA

`df = pd.read_csv('uni_session_neww.csv', sep=';') df.columns = ['time', 'value']

print(df.head())

ts=TimeSeriesData(df)

ts.plot(cols=['value'])

plt.show()

logging.basicConfig(level=logging.DEBUG) params = ARIMAParams(p=1, d=1, q=1)

m = ARIMAModel(data=ts, params=params) m.fit()

fcst = m.predict(steps=15, include_history =True) print(fcst.head())

m.plot() plt.title('ARIMA') plt.show()`

MoKazemi9 commented 1 year ago

Hi @nebiyebulan , Thank you for exploring with Kats. We have a tutorial for forecasting with Kats that could be very useful. I encourage you to take a look. https://github.com/facebookresearch/Kats/blob/main/tutorials/kats_201_forecasting.ipynb