classifierEval

Evaluation of a given classifier

Contents

Syntax

Description

computedClass=classifierEval(classifier, DS, cPrm) returns the computed class of the dataset DS on a given classifier.

computedClass=classifierEval(classifier, DS, cPrm, plotOpt) also plots the decision boundary if the dimension is 2.

[computedClass, logLike, recogRate]=classifierEval(...) returnsmore info, including the log likelihood of each data instance, and the recognition rate (if the DS has the info of desired classes).

Example

DS=prData('3classes');
plotOpt=1;
classifier='qc';
[cPrm, logLike, recogRate, hitIndex]=classifierTrain(classifier, DS);
DS.hitIndex=hitIndex;		% Attach hitIndex to DS for plotting
classifierPlot(classifier, DS, cPrm, 'decBoundary');

Top page   Next: classFuzzify.m   Prev:classifierPlot.m