使用先知的Python时间序列

时间:2020-03-24 15:17:19

标签: python-3.x time-series facebook-prophet

在Python中使用Prophet FB,我已经建立了时间序列模型。我已经执行了交叉验证,并使用performance_metrics评估时间序列模型。

from fbprophet import Prophet
from fbprophet.diagnostics import cross_validation, performance_metrics

my_df # dataframe contains 2 columns: date 'yyyy-mm-dd' and integer value

model = Prophet() #Bayesian 
model.fit(my_df)

df_cv = cross_validation(model,  
                         horizon = '359 days',
                         initial='4 days')
# df_cv # outputs dataframe with columns: ds, yhat, yhat_lower, yhat_upper, y, cutoff
df_p = performance_metrics(df_cv)
df_p.head() # gives dataframe output below

enter image description here

我正在尝试评估此TS模型是否做得好。据我了解,RMSE值必须尽可能低。但是,我不知道上面的结果是低还是高?

0 个答案:

没有答案