Getting Error in training Using fitcensemble() Function of MATLAB
显示 更早的评论
I am trying to train a classification model using fitcensemble in MATLAB with generic implementation:
Model = fitcensemble(Xtrain,Ytrain);
The feature vector and output has form:
- Xtrain: 80x92184
- Ytrain:80 x 1
The model does not train instead I get this error:
Warning: AdaBoost M2 exits because pseudo-loss from the last hypothesis is not positive.
as shown in the snapshot below:

The model details that I get after the above error message is given below:

What does this error means, and how can i remedy this
2 个评论
Wabi Demeke
2021-8-3
Y output is double as I can see.
Maybe convert Y=categorical(Y);
S. Sal
2021-8-3
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Classification Ensembles 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!