Output your model
You can output your model in 2 ways:
As a Selection
- This captures the rules behind a selection of nodes into a FastStats Selection Rule, which can then be applied to the whole database. This will select from the database the customers who satisfy the rules. In this way you could select all the people in the top nodes.
- The selection will group together a number of nodes chosen at the time of creating the selection rule. The sub-rules for each node are visible as selection clauses, but it is not easy to access the individual nodes.
- If you want the flexibility of being able to choose at a later date which nodes to work with, then it is better to output the model as a variable.
As a Variable
- This captures the rules behind a selection of nodes and creates a Virtual Variable with a category for each node in the selection.
- This variable can be used to make selections but provides greater flexibility over outputting the model as a selection.
- You can at a later date make selections based on different combinations of nodes, or can use the variable for other analysis (e.g. in a Cube)
Outputting the model as a variable¶
This is done using the Output Wizard.
-
Either click on the tool bar button of an active Decision Tree
-
Or launch the Wizard from the Wizards Panel.
For more information see the section Decision Tree Output Wizard.
Outputting the model as a selection¶
To create a FastStats Selection, simply select a group of nodes in one of the tree views and drag these off onto the main workspace.
You can drag selected nodes from any of the following views:
You can start a drag from any of the selected nodes, or, in the case of the graphical trees, from an area of white space.
Simplifying selections¶
Having selected a number of nodes, you can drag them off from any of the tree views to create a query selection. The full query relating to the selection consists of a separate OR clause for each node. Alternatively, the query can be reduced to the simplest rule, giving a rule for a parent node where both its children are selected. If a base selection is also used, the query will consist of this selection ANDed together with the query concerning the nodes.
The default is to simplify the query. Use the
Simplify Query button to toggle between the two alternatives.
The selections below were created by selecting the top 6 nodes using the Gains Chart, and then dragging these off from the Box Tree.
The first selection was created having deselected the "Simplify Query" option:
-
It shows the Selection in Full and has 6 OR clauses, each corresponding to one of the selected leaves in the tree.
The second selection was created having selected the "Simplify Query" option.
-
It simplifies the query to just 2 OR clauses. As the Box Tree illustrates, node 1 could be used instead of all the leaf nodes below it.
Both selections, when counted, give the same base count as shown within the Decision Tree displayed below (346,552).
.png)
.png)
.png)
.png)
.png)
.png)