Borrar filtros
Borrar filtros

I need MATLAB code to export FDR, PPV numbers.

1 visualización (últimos 30 días)
Rama Malladi
Rama Malladi el 1 de Jul. de 2021
Respondida: Drew el 26 de Jul. de 2023
I need MATLAB code to export FDR, PPV numbers.
I am running Matlab classifier app code. Everything works, except I can not export out PPV/FDR numbers. I am currently looking at confusion matrix and manually writing down PPV/FDR stats.
Does MATLAB have a code to export PPV/FDR numbers out of the classifier app?

Respuestas (1)

Drew
Drew el 26 de Jul. de 2023
"(2) To export confusion matrices from Classification Learner, you can use the "Export Plot to Figure" option. Next, at the command line, with the current figure showing the confusion matrix exported from Classification Learner, use "cm=gca;" to get a variable "cm" representing the ConfusionMatrixChart object. From the ConfusionMatrixChart object, the metrics of interest (TPR, FNR, PPV, FDR) for the primary matrix can be accessed from the NormalizedValues property. Alternately, to reproduce Classification Learner confusion matrix plots at the command line, use confusionchart (introduced in 18b). Set the Normalization, RowSummary, and ColumnSummary properties to get the metrics of interest."
See the answer linked above for an image and some example code.

Categorías

Más información sobre Image Data Workflows en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by