为什么在FbProphet预测中,每年的季节性预测都不同?

问题描述

为什么趋势是线性的,为什么我的数据预测每年都有不同的季节性?每年应该预测的季节性不一样 [直到2020年2月。然后预测] [1] [Plot_components] [2] [1]:https://i.stack.imgur.com/OKFpm.png'[2]:https://i.stack.imgur.com/rngik.png

我的数据是32个月的每月数据。我正在Fbprophet中训练模型。以下是代码

deluxe = data[(data.SEGMENT_DESC =="My data")]
deluxe=deluxe.loc[:,['YRMONTH','DEPLETION']]
deluxe = deluxe.set_axis([ 'ds','y'],axis=1)
deluxe.head()
deluxe=deluxe.resample('M',on='ds').sum()
deluxe_daily_proph=deluxe.reset_index()
m2=Prophet()
m2.fit(deluxe_daily_proph)
future2=m2.make_future_dataframe(periods=50,freq='M',include_history=True )
forecast2=m2.predict(future2)
forecast2[['ds','yhat','yhat_lower','yhat_upper']].tail()
plt.plot(forecast2['ds'],forecast2['yhat'])
plt.plot(deluxe_daily_proph['ds'],deluxe_daily_proph['y'])
m2.plot_components(forecast2);

在此处输入代码

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...