0

Everytime we train the neural network in R (under neuralnet package) for the same data,it predicts different values which aren't the same as predicted earlier ... Any way to solve this issue ???

Sudharsan
  • 55
  • 1
  • 7

1 Answers1

2

There is probably some randomization involved in initialization and/or training - you may want to read through the references provided in the documentation.

Try setting the random number generator's seed prior to training, by using set.seed(). (Just don't simply use set.seed(123) ;-).)

Stephan Kolassa
  • 95,027
  • 13
  • 197
  • 357