Validation Accuracy is changing when the same classifier is trained on the same data
2 views (last 30 days)
Show older comments
Mortada Haidar
on 19 Jan 2017
Commented: Walter Roberson
on 19 Jan 2017
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 Comments
Accepted Answer
Walter Roberson
on 19 Jan 2017
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 Comments
Walter Roberson
on 19 Jan 2017
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.
More Answers (0)
See Also
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!