visualize a tree and splitting point in TreeBagger
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Henry
am 11 Okt. 2013
Beantwortet: Mohammad Abdulla
am 5 Jul. 2018
Hi, Suppose I fit a TreeBagger with 2 column predictor variables X:
B = TreeBagger(1,X,y, 'Method','classification','NVarToSample',1,'oobpred','on')
I want to visualize any tree that I choose, and the splitting values. How can I do that? Thanks!
0 Kommentare
Akzeptierte Antwort
Ilya
am 13 Okt. 2013
view(B.Trees{1})
3 Kommentare
Ilya
am 14 Okt. 2013
What I said about the view method is not in the TreeBagger doc. Typing
B.Trees{1}
returns an object for a single tree. If you use R2013a or later, the class is included in the display of this object. (If you use an earlier release, you can infer the class of this object from the variable editor, for instance.) You can then go to the doc for that class.
Weitere Antworten (1)
Mohammad Abdulla
am 5 Jul. 2018
Hi, How can I increase the number of iterations for fitting a decision tree or random forest? Also, how can I change the opimizer from Bayesian to other such as grid search
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!