About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
The C5.0 node builds either a decision tree or a rule set. The model works by
splitting the sample based on the field that provides the maximum information gain at each level.
The target field must be categorical. Multiple splits into more than two subgroups are allowed.
Example
node = stream.create("c50", "My node")
# "Model" tab
node.setPropertyValue("use_model_name", False)
node.setPropertyValue("model_name", "C5_Drug")
node.setPropertyValue("use_partitioned_data", True)
node.setPropertyValue("output_type", "DecisionTree")
node.setPropertyValue("use_xval", True)
node.setPropertyValue("xval_num_folds", 3)
node.setPropertyValue("mode", "Expert")
node.setPropertyValue("favor", "Generality")
node.setPropertyValue("min_child_records", 3)
# "Costs" tab
node.setPropertyValue("use_costs", True)
node.setPropertyValue("costs", [["drugA", "drugX", 2]])
Properties |
Values | Property description |
---|---|---|
|
field | C50 models use a single target field and one or more input fields. You can also specify a weight field. See Common modeling node properties for more information. |
|
|
|
|
flag | |
|
flag | |
|
number | |
|
flag | |
|
number | |
|
|
|
|
|
Favor accuracy or generality. |
|
number | |
|
number | |
|
number | |
|
flag | |
|
structured | This is a structured property. See the example for usage. |
|
flag | |
|
flag | On ( ) by default. |
|
flag | |
|
flag | |
|
flag | |
|
|
Was the topic helpful?
0/1000