RNG neural Network and outputs
Show older comments
Hello everyone.!
I am new in nn so that might be a silly question, but as I change the rng of my nn, the quality of the solution changes too.
For example, for a specific rng , the best setup is using softmax in the second layer, with 11 neurons in the first one. However with a different rng, the best setup is logsig in the second layer with 11 neurons in the first one. What is going on with that?Is there an optimal rng? Also, although I have formulated my output in a 1-c form, the output I get is not binary. Why? I use patternnet, with 10 input categories with 180 responses and 5 output classes.
Thank you all.!
Accepted Answer
More Answers (1)
Greg Heath
on 25 Feb 2016
I typically
1. Initialize rng once and only once before training (henever you use the
rng it AUTOMATICALLY moves to another state).
2. Use a double for loop design over ~ 10 candidates for H, number of
hidden nodes and ...
3. For each value of H, design ~ 10 candidate nets with different random
data divisions AND random intitial weights.
4. for h = Hmin:dH:Hmax
net = .
for i = 1:Ntrials ...
I have posted zillions of examples on both the NEWSGROUP and ANSWERS. Search using
patternnet Ntrials
or
patternnet Hmin:dH:Hmax
Hope this helps.
Thank you for formally accepting my answer
Greg
1 Comment
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!