how to fix constant iteration in neural networks
Afficher commentaires plus anciens
when i am trying to train my neural network using levenberg marquardt algorithm it shows different iteration at each times how do i fix my neural network with constant iteration period
3 commentaires
Star Strider
le 16 Sep 2014
Do you mean epochs or training time?
Thirunavukkarasu
le 19 Sep 2014
Shreeja Shetty
le 20 Juil 2017
I am currently facing a similar issue as mentioned above. Can someone please provide a solution.
Réponse acceptée
Plus de réponses (2)
Greg Heath
le 17 Sep 2014
If you train multiple nets in a loop you can duplicate previous runs by keeping track of the state of the random number generator. That is why I always specify an initial random number state, before the outer loop. For examples, search on
greg rng(0)
or
greg rng('default')
Hope this helps.
Thank you for formally accepting my answer
Greg
5 commentaires
Greg Heath
le 19 Sep 2014
What is this code supposed to do?
Thirunavukkarasu
le 29 Sep 2014
Greg Heath
le 12 Déc 2014
Initialize the rng before the training command
[ net tr ] = train(...)
which randomizes the data division and initial weights.
Parul Singh
le 26 Avr 2017
rng default- net gives different outputs each time it is run
rng (variable number) - number of iterations remain the same at 1000
We want to vary the number of iterations to achieve best output and then for a constant number of iterations, we want the network to get the same output each time it is nrun.
Please help.
Greg Heath
le 20 Juil 2017
Given what I have learned in 37 years of NN design, what you want to do is illogical. Please reread what I have written.
Greg
Cesare Trematore
le 19 Déc 2017
0 votes
I do not know if I fully agree. I was running a pattern recognition neural network with the trainbr option. The train perfomance kept improving up to 1000 epochs, but after about 200 epochs the test perfomance started worsening. In this cases would be useful to have the option to stop the training after a prefixed number of epochs.
1 commentaire
Greg Heath
le 22 Déc 2017
That option is available.
However, why in the world are you using trainbr for pattern recognition?
What happens when you use patternet with all defaults except number of hidden nodes and initial RNG state?
Search the NEWSGROUP and ANSWERS with
greg patternnet
Hope this helps.
Greg
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!