statsmodels / statsmodels

Statsmodels: statistical modeling and econometrics in Python
http://www.statsmodels.org/devel/
BSD 3-Clause "New" or "Revised" License
9.78k stars 2.85k forks source link

How to use statespace ? #3192

Closed byshen closed 7 years ago

byshen commented 7 years ago
Traceback (most recent call last):
  File "arima_each.py", line 124, in <module>
    mod = sm.tsa.statespace.SARIMAX(df.traffic, trend='n', order=(1,0,0), seasonal_order=(0,1,1,96), \
AttributeError: 'module' object has no attribute 'statespace'
josef-pkt commented 7 years ago

That means your statsmodels is too old. you need to upgrade, e.g. to master or at least to 0.8rc1 on pypi

byshen commented 7 years ago

Okay, I just downloaded it and compiled it. It works at version 0.8.0. Much thanks