Error using NBoot in perfcurve

18 次查看(过去 30 天)
Uyen Nguyen
Uyen Nguyen 2020-9-30
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 个)

类别

Help CenterFile Exchange 中查找有关 Dimensionality Reduction and Feature Extraction 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by