Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Problems using TVals parameters in perfcurve function

조회 수: 8 (최근 30일)
Chloe Huetz
Chloe Huetz 2019년 11월 7일
마감: John D'Errico 2019년 11월 7일
Hi,
I'm trying to replicate the ROC curves produced by the "classification learner" app. My problem is a multiclass classification problem,. Im' trying to optimize the choice of a specific classifier (for the moment, I tried KNN and Trees) by looking at the ROC curves for a specific class (-2) that should get as less false negatives as possible (yet a correct false positive rate). Using KNNs, I'm willing to compute a ROC curve using perfcurve but cannot manage to get the same ROC curve as the one produced by the app.
One of the issue might be that I don't get enough values of X and Y when using perfcurve, even when setting the TVals parameters.
For example, my thres array is
thres = 0:0.001:1;
[X,Y,T,AUC] = perfcurve(partitionedModel.Y, validationScores(:,1), -2, 'TVals',thres);
but X and Y have only 10 elements. I don't understand why.
Thank you very much for your answers.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by