qcPlot

Plot the results of QC (quadratic classifier)

Contents

Syntax

Description

qcPlot(DS, qcPrm) plot the results of QC (quadratic classifier)

qcPlot(DS, qcPrm, mode) uses an additional string variable to specify the type of plot

surfObj=qcPlot(DS, qcPrm, ...) return the surface object for plotting instead of plotting directly.

Example

This example uses features 3 and 4 of IRIS dataset for classification:

DS=prData('iris');				% Load iris dataset
DS.input=DS.input(3:4, :);			% Use only features 3 and 4
qcPrm=qcTrain(DS);				% Do QC training

Plot 2D PDF:

figure; qcPlot(DS, qcPrm, '2dPdf');

Plot 2D posterior probability:

figure; qcPlot(DS, qcPrm, '2dPosterior');

Plot decision boundary:

figure; qcPlot(DS, qcPrm, 'decBoundary');

See Also

qcTrain, qcEval.


Top page   Next: qcEval.m   Prev:qcTrain.m