【发布时间】:2018-01-20 13:29:29
【问题描述】:
我的代码有 3 个问题。
首先,在 RStudio 中实现我的神经网络时,了解 stepmax 和 backprop 函数之间的区别。
第二个问题是我不知道如何比较这 2 个神经网络模型,因为我试图找出哪个是用于预测的最佳模型。有人可以解释一下我如何使用这两个模型来找出哪个模型更精确吗?
我正在使用 7 天的电耗,这是我的输入节点,我正在尝试预测第 8 天的下一个 24 小时。有了这些模型后,我很困惑我该怎么做才能预测第二天?请问有人可以帮我吗?
street.model4 <- neuralnet(formula = D8 ~ D1 + D2 + D3 +
D4 + D5 + D6 + D7,
data = street.train, hidden = 4, stepmax=1e9)
plot(street.model4)
street.model5 <- neuralnet(formula = D8 ~ D1 + D2 + D3 +
D4 + D5 + D6 + D7,
data = street.train, hidden = 4, learningrate = 0.01,
algorithm = "backprop", err.fct="ce",
linear.output=FALSE) #iterate
plot(street.model5)
【问题讨论】:
标签: r neural-network forecasting