我有以下模型来预测特定社区的房价:
set.seed(100)index_1<-sample(1:nrow(data),round(nrow(data)*0.9))train<-data[index_1,] #578 obs.test<-data[-index_1,] #62 obs.NModel <- neuralnet(price ~ x1 + x2 + x3 + x4, data=train_group, hidden=c(5), linear.output=FALSE, threshold =0.01, rep=20, learningrate = 0.25 )
然而,我将学习率从0.25调整到1,我的RMSE没有任何变化。无论如何调整学习率,RMSE既不变差也不变好,始终保持不变。是否有人能提供一些关于可能发生什么的提示?
回答:
learningrate
仅用于传统的反向传播。尝试添加参数algorithm = 'backprop'
,然后看看learningrate
的不同值会有什么效果。