Validation Accuracy is changing when the same classifier is trained on the same data
2 次查看(过去 30 天)
显示 更早的评论
Hello. I am using ensemble classifiers in the Matlab Classification Learner. The problem is that I am getting different accuracies when training the same classifier (Bagged Trees) on the same data.
0 个评论
采纳的回答
Walter Roberson
2017-1-19
Most of the classifiers include random initialization. To repeat the same accuracy with the same classifier on the same data, set the random number seed each time, using rng()
2 个评论
Walter Roberson
2017-1-19
In such a case you have to assume that there is a lot of over-fitting. Reduce the size of your training set and increase the size of your test set.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classification Ensembles 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!