FB先知的预报,每分钟

问题描述 投票:0回答:1

我正在尝试使用先知进行分钟预报。但是我得到奇怪的输出。关于如何在先知中按分钟进行预测的任何建议或有关改进我的代码的建议,将不胜感激!

数据采用FB先知的格式。

df_min.head()
    ds  y
0   2020-01-17 14:21:00     166.380
1   2020-01-17 14:22:00     166.335
2   2020-01-17 14:23:00     166.315
3   2020-01-17 14:24:00     166.320
4   2020-01-17 14:25:00     166.355

df_min数据帧内有100分钟。在下面,为train_df_min数据帧花费30分钟的时间...

prediction_size = 30
train_df_min = df_min[:-prediction_size]

正在尝试预测...

q = Prophet(daily_seasonality=True)
q.fit(train_df_min)

future2 = q.make_future_dataframe(periods=60, freq='1min')
forecast2 = q.predict(future2)
forecast2.tail()

enter image description here

以及图表输出...

enter image description here

time-series forecasting arima facebook-prophet prophet
1个回答
1
投票

将您的分钟数据转换成小时,每周,每月等。然后比较准确性,采用给出更准确预测的频率。

© www.soinside.com 2019 - 2024. All rights reserved.