I have 2 class label, but classifier model predicts 3 class?
조회 수: 1 (최근 30일)
이전 댓글 표시
My code is in Matlab. I have a binary classifier model with the labels (0 and .5), as it has been shown with black box in the figure:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157939/image.png)
However, when I am sending Test set to be predicted by the previousely trained Naive Bayes model,
[pred_LF, score_f] = predict(Mdl_F,Feature_Test);
I getting 3 classes 0, .5, and 1 (red box):
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157941/image.png)
I have already checked the values in training label, it is 2 two values. :(
Is there someone help me?! I am really confused why it is like this?! Your help is appreciated.
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!