필터 지우기
필터 지우기

How to initialize target matrix of a Neural-Network ?

조회 수: 1 (최근 30일)
Ampi
Ampi 2012년 10월 23일
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.

채택된 답변

Greg Heath
Greg Heath 2012년 10월 24일
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

추가 답변 (1개)

Ampi
Ampi 2012년 10월 28일
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