Posterior probability for cross-validated fitcecoc model
Show older comments
I'm trying to get posterior probabilities, rather than prediction scores from a cross-validated fitcecoc model using the following
t = templateSVM('Standardize',true);
Modelall = fitcecoc(X,Y,'Learners',t,'ClassNames', unique(stimNum),'Options',opts,'FitPosterior', true);
[label,~,~,Posterior] = resubPredict(Modelall);
However, when cross-validation is turned on
Modelall = fitcecoc(X,Y,'Learners',t,'ClassNames', unique(stimNum),'Options',opts,'FitPosterior', true, 'CrossVal','on','KFold' ,10);
I get the following error:
"Incorrect number or types of inputs or outputs for function 'resubPredict'."
is there any way to get the prediction probability of a multiclass cross-validated classifier analogous to a binary SVM (using 'fitSVMPosterior')?
Thanks in advance
Accepted Answer
More Answers (0)
Categories
Find more on Discriminant Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!