average value and confusion matrix

i have specificity,sensitivity,accuracy and precision values.but unable to write the matlab code to generate average values for individual and cofusion matrix for 100 samples.plz help me out how to write the code

답변 (1개)

the cyclist
the cyclist 2019년 7월 23일

0 개 추천

Are you having trouble with the math, or with the MATLAB? This wikipedia page for the confusion matrix can help you with all the definitions and their relationships. (The colorful table on that page is really helpful.)
To get the confusion matrix, you'll need to calculate the following:
  • true positive
  • false positive
  • true negative
  • false negative
I believe you should be able to derive those from the information you have. Write those explicit formulas out on paper. Then it should be extremely straightforward to convert those into MATLAB code.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2019년 7월 23일

답변:

2019년 7월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by