Using RP tree model viewer

It is possible to use the tree model viewer component to distribute an input dataset between the nodes and then clicking on a node will display the data in that node - this is really useful!

However, it would be better if the graphical data of the tree nodes was updated to reflect the data actually in the nodes rather than the data from the training set.

For example in the screenshot below, node 2 originally contained 13 "low" samples" and you can see this when you hover the cursor over the node. However, for the input dataset there is no way of knowing how many of each class are in a particular node without clicking on it, e.g. on clicking node 2 I find there are no samples at all in here.

I think it would be better to display the number of samples for the input data rather than the training data - is it possible to do this somehow? - does anyone have a modified viewer?

RPtreeModelViewerExampleIssue.png

Answers 1
DH
DH 2011-08-22

Currently, there is no way to do this. Figuring out a way to enhance the tree display code to do this has been a back burner project of mine for awhile, but I haven't yet come up with a good solution. (The issue in a nutshell is that the links from each node are live links to the input data, but the tree display itself is generated from the RP model's XML, which is static.)

The closest thing to a workaround I can suggest is to select the "Node ID" output for the model and use it in conjunction with the tree display. Specfically, send the input data through the model component with "Node ID" selected, unmerge the output, sort by the "#NodeID" property, and send the results to a table viewer. If you look at the table side-by-side with the tree display, you can see which samples are in each node (and which nodes are empty) without having to click on each node separately.