When plotting ROC curve; test_label​s=double(n​ominal(imd​sTest.Labe​ls)); I am getting an error as " Unrecognized function or variable 'nominal' .

2 visualizaciones (últimos 30 días)
When plotting ROC curve;
test_labels=double(nominal(imdsTest.Labels));
I am getting an error as
" Unrecognized function or variable 'nominal' .
I am just wondering what I am missing here. Appriciate any help.

Respuesta aceptada

VBBV
VBBV el 26 de Jul. de 2022
test_labels = nominal(imdsTest.Labels);
double(test_labels) % try this
If you have defined function named nominal in your program which returns double values its best to avoid using on function names and apply on return values, as above
  2 comentarios
Madhusudhan Rao
Madhusudhan Rao el 26 de Jul. de 2022
Thanks for your reply. Still getting same error.
I haven't used the function 'nominal' in this Transfer Learning program. I used ResNet50 as a pretrained CNN. Should I import and install any module that may contain this function ?
% Confusion Matrix
figure;
plotconfusion(actual_labels,predicted_labels)
title('Confusion Matrix: ResNet50');
accuracy
%ROC Curve
test_labels = nominal(imds_Test.Labels );
double(test_labels)
[fp_rate,tp_rate,T,AUC]=perfcurve(test_labels,posterior(:,1),1);
figure; ....
VBBV
VBBV el 26 de Jul. de 2022
Yes. This appears to be a standard built-in function from another module.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by