Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

taraining error when neural network training is done .each time training isd one the results are different

Asked by mayuresh on 3 Dec 2012

i am doing neural network ,training the netwrk eah time gives different results.

0 Comments

mayuresh

Products

1 Answer

Answer by Greg Heath on 3 Dec 2012
Accepted answer

Training performance varies because the default train/val/test data division AND initial weights are pseudorandom.

One of many solutions for sufficiently large data sets.

1. Initialize the RNG so that the same stream of pseudorandom numbers can be repeated.

rng(0)

2. Design 10 or more nets

3. Choose the net with the smallest validation (NOT TRAINING) set error.

4. Estimate the performance on unseen data with the test set error.

5. If performance is unsatisfactory, try increasing the number of hidden nodes.

How large are X and T?

Hope this helps.

Thank you for formally accepting my answer

Greg

3 Comments

mayuresh on 6 Dec 2012

i can't understand that is there any code for doing that random number generations?????

Greg Heath on 7 Dec 2012

The pseudo random number generation is done automatically. However if you want to duplicate your run(s). You must intialize the geneator.

help rng

doc rng

Greg

mayuresh on 7 Dec 2012

can u suggest some book/papers on designing of number of layers and neurons in the layers.

Greg Heath

Contact us