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


i following error message :

error in      "if (reached.threshold < min.reached.threshold) {" :       missing value true/false needed 

it occurs when using tan hyperbolic activation function in modeling neural network architecture using neuralnet function in 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",                                   # <= line     threshold = 0.01, learningrate = 0.01, rep=3 ) 

it works when use act.fct="logistic"

i had same error. following worked me: try set linear.output=f , scale output afterwards.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -