Home > @BestDecisionStumpClassifier > getFeaturesInfo.m

getFeaturesInfo

PURPOSE ^

GETFEATURESINDEX return the info of the features used

SYNOPSIS ^

function [ info ] = getFeaturesInfo( cl )

DESCRIPTION ^

GETFEATURESINDEX return the info of the features used

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [ info ] = getFeaturesInfo( cl )
0002 %GETFEATURESINDEX return the info of the features used
0003 
0004     if ~cl.isTrained
0005         error('classifier is not trained');
0006     end
0007     
0008     pred = cl.trainedCl.CutVar{1};
0009     index = str2double(pred(2:end));
0010     
0011     %return index of feature and splitval used
0012     info.id = index;
0013     info.index = index;
0014     info.splitVal = cl.trainedCl.CutPoint(1);
0015     
0016 end
0017

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