卡门德属性
CARMA 模型不需要用户指定输入或目标字段即可从数据抽取一组规则。 与 Apriori 相比, CARMA 节点提供了规则支持 (对前项和后项的支持) 的构建设置,而不仅仅是前项支持。 这意味着生成的规则可以用于更广泛的应用——例如,列出产品或服务(前提)列表,这些前提的结果是您想在节日期间推广的项目。
示例
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)
carmanode 属性 |
值 | 属性描述 |
|---|---|---|
inputs |
[field1 ... 字段] | CARMA模型使用一系列输入字段,但没有目标。 不使用权重字段和频率字段。 请参阅 公共建模节点属性 以获取更多信息。 |
id_field |
字段 | 用于模型构建的ID字段。 |
contiguous |
标志 | 用于指定ID字段中的ID是否连续。 |
use_transactional_data |
标志 | |
content_field |
字段 | |
min_supp |
数量(百分比) | 与规则支持而非前因支持有关。 默认值为20%。 |
min_conf |
数量(百分比) | 默认值为20%。 |
max_size |
号 | 默认值为10。 |
mode |
Simple Expert |
默认的邮箱地址是 Simple。 |
exclude_multiple |
标志 | 不包括具有多个结果的条件。 默认的邮箱地址是 False。 |
use_pruning |
标志 | 默认的邮箱地址是 False。 |
pruning_value |
号 | 默认值为500。 |
vary_support |
标志 | |
estimated_transactions |
整数 | |
rules_without_antecedents |
标志 |