필터 지우기
필터 지우기

ROC analysis and perfcurve

조회 수: 3 (최근 30일)
Costanzo
Costanzo 2015년 5월 5일
답변: Muge Karaman 2021년 2월 24일
I am trying to perform ROC analysis. The function perfcurve is excellent. However, it assumes that larger values of score indicate stronger evidence for a positive state. This is exactly what you want to do if you are analysing the output of a classifier model.
In my case, I want to use raw data where smaller values indicate stronger evidence for a positive state. Reading through the documentation, I could not find a way to change the test direction for the perfcurve function.
Does anyone know if it is possible to do this? Or other similar functions that allow doing this?

답변 (2개)

Ilya
Ilya 2015년 5월 5일
How about putting a minus sign in front of the scores (2nd input to perfcurve)?
  댓글 수: 1
Costanzo
Costanzo 2015년 5월 6일
Yes, that does the trick. However, ideally I am looking for a solution that doesn't require manipulating the inputs (or the outputs) of the function.

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


Muge Karaman
Muge Karaman 2021년 2월 24일
Hi Costanzo,
I have been having the same issue using perfcurve, and been manipulating the input by multiplying by -1. However, as you said, this is not ideal because the threshold values would then need to be manipulated in the same way if needed to be reported. Please update this post, if you have found a solution to this!
Thanks,

카테고리

Help CenterFile Exchange에서 Detection에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by