Difference between TreeBagger and fitensemble methods
이전 댓글 표시
Hi, I am trying to build a random forest on my data using the following two different methods:
- mdl = TreeBagger(NumTrees, myData, ResponseVarName)
- mdl = fitensemble(myData, ResponseVarName, 'Bag', NumTrees, 'Tree', 'Type', 'regression')
I am using the same number of trees for both methods, the same training dataset, and I believe both are bagging algorithms.
How exactly are these two different? Is there any difference?
Thank you for your help in advance!
댓글 수: 1
Ame ZL
2018년 7월 13일
Hello JWP,
Did you find out what the difference was? I did read the doc info in MATLAB, but I didn't find the answer.
Does anyone actually know?
Many thanks.
답변 (2개)
jyotsna
2018년 7월 17일
1 개 추천
This link has the answer (see under section "Comparison of TreeBagger and Bagged Ensembles") https://www.mathworks.com/help/stats/ensemble-algorithms.html#bsxabwd
Abhishek Ballaney
2018년 2월 9일
0 개 추천
https://in.mathworks.com/help/stats/treebagger.html
https://in.mathworks.com/help/stats/fitensemble.html
카테고리
도움말 센터 및 File Exchange에서 Classification Ensembles에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!