Suppose I want to recognise a particular face I am extracting sift points from it and feeding it as a input vector . Then what should be the output ? I am talking during the training phase . How are outputs decided for a particular type of input pattern?
Prashant Kumar answered .
2025-11-20
classind = [ 5 3 1 4 2 5 4 3 2 1 ] N = length(classind)
% The corresponding target matrix is obtained using the ind2vec command
target = full(ind2vec(classind))
% The corresponding output will be a matrix of the same size
outind = vec2ind(output) err = outind ~= classind Nerr = sum(err) PctErr = 100*Nerr/N