필터 지우기
필터 지우기

rocmetric 'Unrecognized function or variable 'rocmetrics'.'

조회 수: 5 (최근 30일)
Sriya Roy
Sriya Roy 2023년 3월 1일
댓글: Babar 2023년 3월 19일
I'm trying to get the ROC metrics for my multiclass svm but I keep receiving this error:
Unrecognized function or variable 'rocmetrics'.
Unrecognized function or variable 'species'.
I tried to use the documentation example:
load fisheriris
rng("default") % For reproducibility
Mdl = fitctree(meas,species,Crossval="on");
[~,Scores] = kfoldPredict(Mdl);
size(Scores)
Mdl.ClassNames
% Works until this point
rocObj = rocmetrics(species,Scores,Mdl.ClassNames);
% unrecognised function or variable 'rocmetrics'.
I'm unsure why this isn't working. I'm currently using Matlab R2021b.
What could I use instead to get the ROC and AUC if this function is no longer available?
Thanks in advance

답변 (1개)

Swaraj
Swaraj 2023년 3월 8일
I could not find "rocmetric" function in R2021b release documentation. So I think “rocmetric” function was introduced in the R2022a MATLAB release. Since you specified that you are using R2021b, you might be getting the above error.
As per my understanding, there is no complete alternative for “rocmetric” function in MATLAB for your release version, but you can go through the below documentation to understand it’s working.
  댓글 수: 1
Babar
Babar 2023년 3월 19일
The mentioned link or documnet is descirbes as explained in question. how can solve this problem.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by