Marcnuth / AnomalyDetection

Twitter's Anomaly Detection in Pure Python
Apache License 2.0
304 stars 76 forks source link

Exception with latest statsmodels library #39

Open abdulsami5 opened 2 years ago

abdulsami5 commented 2 years ago

Latest statsmodel==0.13.0 is released on October, 2nd 2021. After that I started getting this issue in tad/anomaly_detect_ts.py:411.

decomposed = sm.tsa.seasonal_decompose(data, freq=num_obs_per_period, two_sided=False) TypeError: seasonal_decompose() got an unexpected keyword argument 'freq'

Warning with statsmodel==0.12.2. tad/anomaly_detect_ts.py:412: FutureWarning: the 'freq'' keyword is deprecated, use 'period' instead data, freq=num_obs_per_period, two_sided=False)