フィルターのクリア

How do I get the cut attributes out of a classification tree

1 回表示 (過去 30 日間)
Chris Pilcher
Chris Pilcher 2019 年 9 月 9 日
回答済み: Kritika Bansal 2020 年 1 月 13 日
When I look at the CategoricalSplit property of a classification tree it has integer values (maybe indices?). I want the attributes or a list where the attributes and these integer indices are associated.
Example: When I print the decision tree in text form (see attached bmp file)
If I look at the CutPredictor property I can get x4 and x7 which is part of what I want. But how do I get the cut sets of {A B C} and {F D E}?
I cannot find these anywhere in the properties. They have to be there or the view function wouldn't work.

回答 (1 件)

Kritika Bansal
Kritika Bansal 2020 年 1 月 13 日
Hi,
You can use the view function to view the classification or regression tree.
view(tree, 'Mode', 'graph');
To see examples, you can go through the links below:

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by