python fbprophet 中的 plot_components 返回重复的图

use*_*788 2 python time-series facebook-prophet

我在 python 中使用先知进行时间序列预测。拟合模型后,当我使用 plot_components(forecast) 绘制季节性分量时,我得到每个图的两个副本:趋势、每日季节性等的 2 个副本。知道为什么吗?

小智 6

把分号(;)放在 m.plot(预测)之后

>>m.plot(forecast);
Run Code Online (Sandbox Code Playgroud)

参考这个