How to set the target vector for image input in training neural network?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Amod Amatya
il 18 Ago 2016
Commentato: Amod Amatya
il 18 Ago 2016
I am training a neural network to recognize traffic sign(stop sign). I have taken 90 images of size 8x8 of which 30 are positive and remaining are negative. So my input is 64x90 and my target vector is 1x90. But what will be the values in my target vector? How do i assign it?
0 Commenti
Risposta accettata
Greg Heath
il 18 Ago 2016
Modificato: Greg Heath
il 18 Ago 2016
There are two choices
1-dimensional target 0 or 1
2-dimensional target [ 1;0 ] or [ 0;1 ]
The 2-D target is preferred because it is a special case of a c-class target matrix with columns of the unit matrix eye(c) as the target vectors.
Hope this helps.
Thank you for formally accepting my answer
Greg
PS I have zillions of pattern recognition/classifier examples in the NEWSGROUP and ANSWERS
Search using
GREG PATTERNNET
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Image Data Workflows in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!