Help with perfcurve parameters!!

조회 수: 4 (최근 30일)
Gwen Mon
Gwen Mon 2014년 5월 18일
I want to use 'perfcurve' to generate Roc Curves for some classification data, but am unsure of the exact parameter requirements.
I am using LibSVM to classify three sets of data using labels, -1, 1 and 2. As stated by the documentation, 'perfcurve' calls the following: labels, scores, & posclass.
I know that 'labels' is the correct set of labels used to test the data, and mine is a vector sized '60x1'.
I assumed that 'scores' is the LibSVM 'svmpredict' output 'prob_estimates' but mine is a matrix sized '60x3' and the documentation states that 'scores' and 'labels' must be the same size? So what is 'scores'?
I understand that 'posclass' would be either -1, 1 or 2 but I don't understand which one I should pick?
Thanks in advance.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by