lincEval
Evaluation of linear classifier
Contents
Syntax
- [lincOutput, recogRate, errorIndex1, errorIndex2, regOutput, regError]=lincEval(DS, coef)
Description
lincOutput=lincEval(DS, coef) returns the evaluation result of a linear classifier based on the given dataset DS and coefficients coef.
Example
DS=prData('linSeparable'); coef=lincTrain(DS); output=lincEval(DS, coef); fprintf('Recog. rate = %.2f%%\n', 100*sum(output==DS.output)/length(output));
Iteration=200/1000, recog. rate=40% Iteration=400/1000, recog. rate=71% Recog. rate = 100.00%