In pattern recognition using neural network what should be the output?

Newman · Jul 27, 2021 · 2.3K views
Question
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?  
Expert Answer
Profile picture of Prashant Kumar
Prashant Kumar PhD Expert
Answered Aug 25, 2026
% For c classification categories numbered 1:c, use a classindex row vector
 
 
 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
%Obviously, more is needed to obtain error rates for individual classes.
 
 
 
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!