Random forest prediction probabilities
Ältere Kommentare anzeigen
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 Kommentare
Memo Remo
am 13 Apr. 2021
the cyclist
am 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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Classification Ensembles finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
