Help with perfcurve parameters!!

12 次查看(过去 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