Extracting decision split values from tree graph
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi All,
I am using treebagger for classification and plotted the tree graph. However, how do i extract/save values (766,4.35,2.11) from each node in the graph? Attached is the plot and below is my code:
Mdl= fitctree(Xtrain,Ytrain,'MaxNumSplits',4,'CrossVal','on');
view(Mdl.Trained{1},'Mode','graph')
![tree view.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/197991/tree%20view.png)
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Classification Ensembles in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!