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!
classificationrandom foresttreetreebagger
B = TreeBagger(1,X,y, 'Method','classification','NVarToSample',1,'oobpred','on')
Best Answer