Error using NBoot in perfcurve

17 views (last 30 days)
Uyen Nguyen
Uyen Nguyen on 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')

Answers (0)

Categories

Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!