Extracting decision split values from tree graph

2 ビュー (過去 30 日間)
Sowmya MR
Sowmya MR 2018 年 12 月 2 日
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

回答 (0 件)

カテゴリ

Help Center および File ExchangeClassification Ensembles についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by