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 CARMA model extracts a set of rules from the data without requiring you to
specify input or target fields. In contrast to Apriori, the CARMA node offers build settings for
rule support (support for both antecedent and consequent) rather than just antecedent support. This
means that the rules generated can be used for a wider variety of applications—for example, to find
a list of products or services (antecedents) whose consequent is the item that you want to promote
this holiday season.
Example
node = stream.create("carma", "My node")
# "Fields" tab
node.setPropertyValue("custom_fields", True)
node.setPropertyValue("use_transactional_data", True)
node.setPropertyValue("inputs", ["BP", "Cholesterol", "Drug"])
node.setPropertyValue("partition", "Test")
# "Model" tab
node.setPropertyValue("use_model_name", False)
node.setPropertyValue("model_name", "age_bp_drug")
node.setPropertyValue("use_partitioned_data", False)
node.setPropertyValue("min_supp", 10.0)
node.setPropertyValue("min_conf", 30.0)
node.setPropertyValue("max_size", 5)
# Expert Options
node.setPropertyValue("mode", "Expert")
node.setPropertyValue("use_pruning", True)
node.setPropertyValue("pruning_value", 300)
node.setPropertyValue("vary_support", True)
node.setPropertyValue("estimated_transactions", 30)
node.setPropertyValue("rules_without_antecedents", True)
Properties |
Values | Property description |
---|---|---|
|
[field1 ... fieldn] | CARMA models use a list of input fields, but no target. Weight and frequency fields are not used. See Common modeling node properties for more information. |
|
field | Field used as the ID field for model building. |
|
flag | Used to specify whether IDs in the ID field are contiguous. |
|
flag | |
|
field | |
|
number(percent) | Relates to rule support rather than antecedent support. The default is 20%. |
|
number(percent) | The default is 20%. |
|
number | The default is 10. |
|
|
The default is . |
|
flag | Excludes
rules with multiple consequents. The default is . |
|
flag | The default
is . |
|
number | The default is 500. |
|
flag | |
|
integer | |
|
flag |
Was the topic helpful?
0/1000