使用相同的代码和数据,FBProphet的预测结果大相径庭



我使用的是python 3.5 FBProphet,使用相同的代码和数据时预测结果会大不相同,但使用相同代码和数据集的每次运行之间的预测y^可能会非常不同。以下是我的FBpredictor预测代码

m = Prophet(interval_width=1)
m.fit(df)
future = m.make_future_dataframe(periods=365)
future.tail()
forecast = m.predict(future)

这篇文章提到,我们可以选择从牛顿到L-BFGS的不同预测算法,牛顿应该提供更多可重复的结果。然而,在中。我使用的最新FBProphet,不再有算法选项。

https://github.com/facebook/prophet/issues/253

growth='linear',
changepoints=None,
n_changepoints=25,
changepoint_range=0.8,
yearly_seasonality='auto',
weekly_seasonality='auto',
daily_seasonality='auto',
holidays=None,
seasonality_mode='additive',
seasonality_prior_scale=10.0,
holidays_prior_scale=10.0,
changepoint_prior_scale=0.05,
mcmc_samples=0,
interval_width=0.80,
uncertainty_samples=1000,

是否有其他参数会导致这种随机性?非常感谢。

尝试使用:

m.fit(algorithm='Newton')

最新更新