plotconfusion

Plot classification confusion matrix

Syntax

plotconfusion(targets,outputs)
plotconfusion(targets1,outputs1,'name1',...)

Description

plotconfusion(targets,outputs) displays the classification confusion grid.

plotconfusion(targets1,outputs1,'name1',...) displays a series of plots.

Examples

load simpleclass_dataset
net = patternnet(20);
net = train(net,simpleclassInputs,simpleclassTargets);
simpleclassOutputs = sim(net,simpleclassInputs);
plotconfusion(simpleclassTargets,simpleclassOutputs);
Was this topic helpful?