필터 지우기
필터 지우기

I need MATLAB code to export FDR, PPV numbers.

조회 수: 1 (최근 30일)
Rama Malladi
Rama Malladi 2021년 7월 1일
답변: Drew 2023년 7월 26일
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?

답변 (1개)

Drew
Drew 2023년 7월 26일
"(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.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by