I have a decision tree from a classification model that is 6 levels deep and has about 30 different leaf nodes.
In a table, I want to sort each leaf node by training probability, and capture cumulative statistics for the test data set on the other columns. Right now, it looks something like this, but for longer decision paths:
Decision Path | Cumulative Population % | Capture Rate |
---|---|---|
X1>=1|X2<0 | 5% | 15% |
X1 < 1|X2>10 | 10% | 25% |
X1>=1|X2>=0|X3>5 | 15% | 32% |
where capture rate is the % of the positives captured over the cumulative population.
Additionally, this view becomes more difficult to read when there are about a dozen or so X values with different names, with meanings that require a separate dictionary/key to describe, e.g.,
Variable | Description |
---|---|
X1 | Number of pets owned |
X2 | Net worth (in thousands USD) |
X3 | Number of children |
Ideally I would like to put the resulting table in a powerpoint slide, with the top 10 leafs in tabular form, but using the table seems cluttered, and the tree visualization I have is too large, even if I were to color-code the different branches by ranking.