我收到以下错误消息:
Error in
"if (reached.threshold < min.reached.threshold) {" :
missing value where TRUE/FALSE needed当我使用tan双曲激活函数在R中用神经网络函数建模一个神经网络结构时,就会发生这种情况。
mymodel24 <- neuralnet(
increaseScope~rsi10 + rsi14+ rsi20 + signal + roc12 + fastK +
wpr + bias3 + bias5 + bias10,
data=bseFinalData, hidden=c(3,2), err.fct="sse",
linear.output=TRUE, algorithm="backprop",
act.fct="tanh", # <= this line
threshold = 0.01, learningrate = 0.01, rep=3
)当我使用act.fct="logistic"时,它工作得很好
发布于 2017-12-20 08:36:37
我有一个类似的问题,并通过将learningrate设置为100倍小的值来解决它。
发布于 2018-05-06 11:00:17
您可以使用非常小的学习速率来解决这个问题。一个很好的起点大概是0.0001。
发布于 2016-11-04 13:45:20
我也犯了同样的错误。下面的内容与我一起工作:尝试设置linear.output=F并在输出之后进行缩放。
https://stackoverflow.com/questions/29318188
复制相似问题