Error in implementing backpropagation algorithm for regression

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error in implementing backpropagation algorithm for regression

azfar3eyb
I tried to implement backpropagation algorithm for regression. But then I encountered this error.

Error in if (reached.threshold < min.reached.threshold) { :
  missing value where TRUE/FALSE needed

Below is my backpropagation algorithm code :

nn.bp <- neuralnet(f, data = scaled, hidden = 2, learningrate = 0.01,
                   algorithm = "backprop",  linear.output = TRUE)