【问题标题】:Time series forecast on Hourly Data in RR中每小时数据的时间序列预测
【发布时间】:2019-02-25 08:24:13
【问题描述】:

我有一个 CSV,其中包含近 2 个月的数据,每小时捕获一次数据。

数据集如下

Date_Time                    Freq
2018-06-01 01:00:00           232
2018-06-01 02:00:00           99
2018-06-01 03:00:00           90

大多数时间序列示例在年度数据中都提到了这一点。我对如何按小时进行预测有点迷茫。在 R 中最好的方法是什么。网上有很多使用 h2o、knn、ARIMA 等的例子。

【问题讨论】:

标签: r time-series h2o facebook-prophet


【解决方案1】:
 # R
df <- read.csv('../examples/example_yosemite_temps.csv')
m <- prophet(df, changepoint.prior.scale=0.01)
future <- make_future_dataframe(m, periods = 300, freq = 60 * 60)
fcst <- predict(m, future)
plot(m, fcst)

https://facebook.github.io/prophet/docs/non-daily_data.html

【讨论】:

    猜你喜欢
    • 2020-01-07
    • 2013-07-13
    • 2019-08-10
    • 1970-01-01
    • 2013-05-01
    • 2018-03-10
    • 2017-06-05
    • 2015-03-04
    • 2015-05-19
    相关资源
    最近更新 更多