Problems using TVals parameters in perfcurve function

1 次查看(过去 30 天)
Hi,
I’m failing to replicate the ROC curves produced by the “Classification Learner” app. My problem is a multiclass classification problem with 5 classes. My final goal is to optimize the choice of a specific classifier based on the false negative rate of a particular class (-2). Using KNNs as a first choice, I’m trying to replicate the ROC curve produced for positive class -2 in the app, but if fails as my ROC curve seems to have much less points than the one from the app.
I tried to set manually the thresholds using the TVals parameter of the perfcurve function, but cannot understand the size of the X, Y, T outputs of the function:
thres = 0:0.001:1;
[X,Y,T,AUC] = perfcurve(partitionedModel.Y,posClassPosteriors,-2, 'TVals',thres);
length(T)
ans=
10
Can anyone explain this to me?
Thank you very much in advance !

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 ROC - AUC 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by