Building a tree model directly
As an alternative to using the interactive tree builder, you can build a decision tree model directly from the node when the flow runs. This is consistent with most other model-building nodes. For C5.0 tree and Tree-AS models, which are not supported by the interactive tree builder, this is the only method that can be used.
- Create a flow and add one of the decision tree nodes—C&R Tree, CHAID, QUEST, C5.0, or Tree-AS.
- For C&R Tree, QUEST or CHAID, double-click the node to open its
properties, then choose one of the main objectives from the Objectives tab. Ensure that
What do you want to generate? is set to Generate a model node
after run.
For C5.0, on the Build Options tab, set Output type to Decision tree.
For Tree-AS, on the Basics tab, specify the Tree growing algorithm type.
- Select target and predictor fields and specify additional model options, as needed. For specific instructions, hover your mouse over the available tool tips.
- Click Save and then run the flow to generate the model.
Comments about tree building
- When generating trees using this method, tree-growing directives are ignored.
- Whether interactive or direct, both methods of creating decision trees ultimately generate similar models. It's just a question of how much control you want along the way.