Difference between TreeBagger and fitensemble methods

10 Ansichten (letzte 30 Tage)
JWP
JWP am 9 Feb. 2018
Beantwortet: jyotsna am 17 Jul. 2018
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 Kommentar
Ame ZL
Ame ZL am 13 Jul. 2018
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.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

jyotsna
jyotsna am 17 Jul. 2018
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
Abhishek Ballaney am 9 Feb. 2018
https://in.mathworks.com/help/stats/treebagger.html
https://in.mathworks.com/help/stats/fitensemble.html

Community Treasure Hunt

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

Start Hunting!

Translated by