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!