Home > @LogitBooster > computeOutputs.m

computeOutputs

PURPOSE ^

function [outs] = computeOutputs(ab, examples)

SYNOPSIS ^

function [outs, realOuts] = computeOutputs(lb, examples, extraArg)

DESCRIPTION ^

 function [outs] = computeOutputs(ab, examples)
   computes the classification outputs of logit Boost for the given examples

   Inputs:
       examples: set of example patterns to be classified
       extraArg: an extra argument to be used if needed

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [outs, realOuts] = computeOutputs(lb, examples, extraArg)
0002 % function [outs] = computeOutputs(ab, examples)
0003 %   computes the classification outputs of logit Boost for the given examples
0004 %
0005 %   Inputs:
0006 %       examples: set of example patterns to be classified
0007 %       extraArg: an extra argument to be used if needed
0008 
0009 if isnan(lb.thresh) && ~lb.perfect
0010     error('Logit Boost classifier has not been trained');
0011 end
0012 
0013 if nargin == 1
0014     error('incorrect number of arguments');
0015 end
0016 
0017 Fvalues = [examples ones(size(examples,1),1)] * (lb.F)';
0018 [~,outs] = max(Fvalues,[],2);
0019 realOuts = Fvalues;

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