필터 지우기
필터 지우기

ROC Curve for SVM

조회 수: 4 (최근 30일)
berkaoui sara
berkaoui sara 2014년 11월 27일
편집: berkaoui sara 2014년 11월 27일
Hi , I want to plot ROC curve for my svm results with perfcurve, and i dont know what to put exactly for labels,scores,posclass parameters, here is my code :
model=svmtrain(lab_train,train,'-t 2 -d 2 -c 7 -g 0.5');
[labeltest,valtest,prectest]= svmpredict(lab_test,test,model);
% labels are the test data labels
% scores returned by a classifier for some test data
% posclass is is the positive class label
[X,Y] = perfcurve(labels,scores,posclass);
thank you

답변 (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