Azzera filtri
Azzera filtri

How to initialize target matrix of a Neural-Network ?

1 visualizzazione (ultimi 30 giorni)
Hello, My question is :-
1. For PCA and Eigenbased Face Recognition, I am reshaping 30 images into a 2D array where each row of the 2-D matrix denotes the vectors of a single face. My question is :- for generating the training vector set, how should I initialize the target vector of ANN(Artificial Neural network)so that I can perform the recognition correctly ? Any help would be appreciated and thank you in advance.
With regards, Ampi B.

Risposta accettata

Greg Heath
Greg Heath il 24 Ott 2012
I assume you are using patternnet.
Your N I-dimensional input vectors should be columns (not rows) of an IxN input matrix.
For c classes, your N c-dimensional target vectors should be columns of a cXN target matrix. The target vectors should be columns of the c-dimensional unit matrix eye(c). The row index of the "1" is the class index of the corresponding input vector.
Hope this helps.
Thank you for formally accepting my answer.
Greg

Più risposte (1)

Ampi
Ampi il 28 Ott 2012
Mr Greg
Thank you so much

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by