Message: "You cannot fit posterior probabilities when all scores are NaNs

1 view (last 30 days)
Hi,
I have attached a code where I use several classifiers with several different parameters. When I try to run the code with a feature matrix as input, I get the following error:
Error using fitSVMPosterior (line 155)
You cannot fit posterior probabilities when all scores are NaNs.
Error in ClassificationSVM/fitPosterior (line 602)
[obj,trans] = fitSVMPosterior(obj,varargin{:});
Error in trainClassifier128ADASYN (line 154)
[~,scoresLinSVM128ADASYN] = resubPredict(fitPosterior(classificationLinearSVM128ADASYN));
I have never had issues when I ran the code previously and I have tried it a lot of times. I have only had this problem now.
Can anyone guess what the problem is?
Thanks!

Answers (0)

Categories

Find more on ROC - AUC in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!