카르마노드 속성

C5.0 노드 아이콘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)
표 1. carmanode 특성
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 플래그