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.

采纳的回答

Walter Roberson
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 个评论
Mortada Haidar
Mortada Haidar 2017-1-19
Ok I see. But then how can I assess the performance of my model? Validation accuracy is changing drastically when changing the seed..
Walter Roberson
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 CenterFile Exchange 中查找有关 Classification Ensembles 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by