Random forest prediction probabilities
Show older comments
Hi,
I trained a random forest model using MATLAB's "TreeBagger" function. However, when I use the "predict" function, my probabilities are all 0 or 1 except for a few predictions. Despite having 4000 observations, my roc curve has also only three data point. Can you suggest any solution for this problem?
Thanks in advance.
4 Comments
Memo Remo
on 13 Apr 2021
the cyclist
on 13 Apr 2021
I don't think it is possible to help much here without seeing the data and code.
Are you separating your data into training, testing, and validation sets? As you suggest, it is possible you are overfitting. But if you perform well outside of the training set, maybe you really do have a perfect classifier.
Accepted Answer
More Answers (0)
Categories
Find more on Classification Ensembles in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!