Error using NBoot in perfcurve

17 vues (au cours des 30 derniers jours)
Uyen Nguyen
Uyen Nguyen le 30 Sep 2020
Hello, I am trying to create an error bar in perfcurve using "NBoot'. But it kept poping up this error.
Warning: One of the classes is not present in at least one subsample. You may
get NaN confidence bounds.
Unable to perform assignment because the left and right sides have a different
number of elements.
Error in BIOE5020_hW2_p3 (line 99)
[X,Y,T,AUC(6),OPTROCPT] = perfcurve(Class,score(:,1),0,'NBoot',1000);
[A] = [Hematocrit,Viscosity,MPAVortivity,RPAVorticity,Helicity];
% Perform PCA on[A] = [U][S][V]' =[rotation][stretch][rotation]
[coeff, score ,latent] = pca(A)
figure
[X,Y,T,AUC(6),OPTROCPT] = perfcurve(Class,score(:,1),0,'NBoot',1000);
c = categorical(Header2);
bar(c,AUC)
title('Predictive Area Under Curve from ROC')

Réponses (0)

Catégories

En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by