필터 지우기
필터 지우기

How to calculate accuracy from confusion matrix?

조회 수: 11 (최근 30일)
sandhya sandhya
sandhya sandhya 2019년 5월 30일
댓글: Rik 2024년 4월 23일
How to calculate accuracy from confusion matrix?
  댓글 수: 1
darova
darova 2019년 5월 30일
Im confused a little bit. What do you mean?

댓글을 달려면 로그인하십시오.

답변 (1개)

Rik
Rik 2019년 5월 30일
Accuracy = (TP+TN)/(TP+TN+FP+FN)
where: TP = True positive; FP = False positive; TN = True negative; FN = False negative
As you can find on Wikipedia ( https://en.m.wikipedia.org/wiki/Accuracy_and_precision )
So it should be trivial to calculate the accuracy from your confusion matrix: divide the sum of the diagonal by the total sum.
  댓글 수: 3
Shivalika Singh
Shivalika Singh 2024년 4월 22일
sensitivity**
Rik
Rik 2024년 4월 23일
Did you check Wikipedia for a formula?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by