[英]ImportError: cannot import name 'ExponentialSmoothing'
我嘗試
from statsmodels.tsa.api import ExponentialSmoothing, SimpleExpSmoothing, Holt
在jupyter筆記本上。
在python中可以,但是在jupyter上不可以
考慮使用以下針對pip
命令更新statsmodels:
pip install statsmodels==0.9.0
對於Anaconda
,請使用以下命令:
conda install statsmodels==0.9.0
注:Jupyter
更新軟件包或安裝后,將其導入為
from statsmodels.tsa.holtwinters import ExponentialSmoothing, SimpleExpSmoothing, Holt
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.