Unable to understand the 0% training for 4th class
1 view (last 30 days)
Show older comments
The 0% training for 4th class is causing a raise in the error percent. Pleas help me understand why do I get a 0% here. How can I fix it!!
3 Comments
Accepted Answer
Greg Heath
on 5 Apr 2015
1. I do not understand your explanation. Since you have 6 categories, your target columns should come from eye(6).
2. Correct your target structure
[I N ] = size(input) % [ 899 857 ]
[O N ] = size(target) % [ 6 857 ]
3. 889? Whoa ... What is the input data? N =857 examples cannot adequately represent 899 dimensional data.
4. Serious input dimensionality reduction is required. For classification, try PLSregress instead of PCA.
5. Be careful of overfitting the net with too many weights.
The current number of unknown weights is
Nw = (I+1)*H+(H+1)*O = 900*30+31*6 = 27,186
whereas the available number of equations is only
Neq = N*O = 5142
and the default number used for training is only
Ntrneq = N-2*round(0.15*N) = 3,600
5. My advice is
a. A serious input dimensionality reduction followed by
b. A serious attempt to reduce the number of hidden nodes without sacrificing performance.
Hope this helps.
Thank you for formally accepting my answer
Greg
0 Comments
More Answers (0)
See Also
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!