Classification tree view function - predictor categories are replaced by numbers?

2 次查看(过去 30 天)
Hello,
I created a classification ensemble tree using categorical predictors (typically 4 or 5 classes/labels for each predictor) and a categorical (-1 or +1) target variable.
However, when i view the tree using the view(trainedModel{1}.ClassificationEnsemble.Trained{1}, 'Mode', 'Graph') command, the labels of the PREDICTORS are now replaced by NUMBERS (see attached picture).
HOW CAN I SHOW THE ORIGINAL LABELS OR HOW CAN I FIGURE HOW WHICH NUMBER IS WHICH LABEL?
The target variable labels are still shown at the bottom of the tree, the problem is only with the predictors' labels.
Could anyone please help how to figure this one out?
To give you an idea how the original predictor categories looked like, see the training set snapshot:
datatrain_example.JPG
many thanks,
Steven

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Classification Ensembles 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by