How to extract confusion-matrix from confusion-chart?

9 visualizaciones (últimos 30 días)
Hassan Ashraf
Hassan Ashraf el 22 de En. de 2020
Comentada: Hassan Ashraf el 29 de En. de 2020
I am using Neural Networks Toolbox. It allows me to plot confusion Chart by using "plotconfusion" command. But it does not allows me to see confusion matrix in the workspace. I tried to use "confusionchart" command but it pops up an error.
Error: Error using confusionchart (line 64)
Expected m to be a square matrix.
I have also attached both matrices of Targets and Outputs.
Where,
"t.mat" is a Target Matrix and "y.mat" is an output Matrix.

Respuestas (1)

Mohammad Sami
Mohammad Sami el 23 de En. de 2020
You need to use the function confusionmat
actual = t;
predicted = y;
mat = confusionmat(actual,predicted);
  5 comentarios
Mohammad Sami
Mohammad Sami el 29 de En. de 2020
Editada: Mohammad Sami el 29 de En. de 2020
What is the type of your data ? The function accepts the following types
Data Types: single | double | logical | char | string | cell | categorical
Hassan Ashraf
Hassan Ashraf el 29 de En. de 2020
The data type is double

Iniciar sesión para comentar.

Categorías

Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by