Error using NBoot in perfcurve
17 views (last 30 days)
Show older comments
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')
0 Comments
Answers (0)
See Also
Categories
Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!