NEED HELP!!, How write a confusion matrix for 3 classes?
Mostrar comentarios más antiguos
I WROTE a confusion matrix but the result out is only 2 classes not 3.
Respuestas (1)
yes,sir,may be use categorical to get vector to confuse,such as
clc; clear all; close all;
% for 3 classes
YTest = randi(3,[1 15]);
YPred = randi(3,[1 15]);
figure
c = confusionmat(categorical(YTest(:)), categorical(YPred(:)))
t = confusionchart(categorical(YTest(:)), categorical(YPred(:)));
Categorías
Más información sobre Parallel and Cloud en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
