Home > @Classifier > learn.m

learn

PURPOSE ^

function [cl, err] = learn(cl, trainingExamples, targetOuts)

SYNOPSIS ^

function [cl, clErr] = learn(cl, trainingExamples, targetOuts, wts)

DESCRIPTION ^

 function [cl, err] = learn(cl, trainingExamples, targetOuts)
   learning function for the classifier

   Inputs:
       trainingExamples: examples for training the classifier.
       targetOuts: target classification outputs. its size must be the
           same as the number of examples.
       wts: weights of training examples (used to compute the weighted
           classification error)
   Outputs:
       selCl: trained selectClassifier
       clErr: classification error of the trained classifier

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [cl, clErr] = learn(cl, trainingExamples, targetOuts, wts)
0002 % function [cl, err] = learn(cl, trainingExamples, targetOuts)
0003 %   learning function for the classifier
0004 %
0005 %   Inputs:
0006 %       trainingExamples: examples for training the classifier.
0007 %       targetOuts: target classification outputs. its size must be the
0008 %           same as the number of examples.
0009 %       wts: weights of training examples (used to compute the weighted
0010 %           classification error)
0011 %   Outputs:
0012 %       selCl: trained selectClassifier
0013 %       clErr: classification error of the trained classifier
0014 
0015 error('''learn'' function must be implemented by the inheriting class');

Generated on Sun 29-Sep-2013 01:25:24 by m2html © 2005