lincEval

Evaluation of linear classifier

Contents

Syntax

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%

See Also

lincTrain, lincEval, lincOptSet.


Top page   Next: ldaPerfViaKnncLoo.m   Prev:lincOptSet.m