Google colab 中没有名为"statsmodels.tsa.deterministic"的模块



在Kaggle课程(时间序列)中,我不得不在google协作中使用统计模型,但我遇到了这个错误

没有名为'statsmodels.tsa.deterministic'的模块

因为:

from statsmodels.tsa.deterministic import DeterministicProcess

我已经搜索了我的问题,但大多数答案是关于SciPy和统计模型的版本。我都试过了,但都没用。也许是因为答案过时了(所有答案都是2019年的)

我以前遇到过这个问题,根据文档可以使用以下方式安装:

!pip install --upgrade --no-deps statsmodels

安装后,需要重新启动运行时。

最新更新