카트노드 속성

C & R 트리 노드 아이콘분류 및 회귀(C&R) 트리 노드는 미래의 관찰을 예측하거나 분류할 수 있는 의사 결정 트리를 생성합니다. 이 방법은 재귀적 분할을 사용하여 각 단계에서 불순도를 최소화함으로써 훈련 기록을 세그먼트로 분할합니다. 여기서 트리의 노드가 대상 필드의 특정 범주에 속하는 사례가 100%인 경우, 해당 노드는 "순수"한 것으로 간주됩니다. 목표와 입력 필드는 숫자 범위이거나 범주형(명목, 서수, 또는 플래그)일 수 있습니다. 모든 분할은 이진법(두 개의 하위 그룹만)입니다.

node = stream.createAt("cart", "My node", 200, 100)
# "Fields" tab
node.setPropertyValue("custom_fields", True)
node.setPropertyValue("target", "Drug")
node.setPropertyValue("inputs", ["Age", "BP", "Cholesterol"])
# "Build Options" tab, "Objective" panel
node.setPropertyValue("model_output_type", "InteractiveBuilder")
node.setPropertyValue("use_tree_directives", True)
node.setPropertyValue("tree_directives", """Grow Node Index 0 Children 1 2
Grow Node Index 2 Children 3 4""")
# "Build Options" tab, "Basics" panel
node.setPropertyValue("prune_tree", False)
node.setPropertyValue("use_std_err_rule", True)
node.setPropertyValue("std_err_multiplier", 3.0)
node.setPropertyValue("max_surrogates", 7)
# "Build Options" tab, "Stopping Rules" panel
node.setPropertyValue("use_percentage", True)
node.setPropertyValue("min_parent_records_pc", 5)
node.setPropertyValue("min_child_records_pc", 3)
# "Build Options" tab, "Advanced" panel
node.setPropertyValue("min_impurity", 0.0003)
node.setPropertyValue("impurity_measure", "Twoing")
# "Model Options" tab
node.setPropertyValue("use_model_name", True)
node.setPropertyValue("model_name", "Cart_Drug")
표 1. cartnode 특성
cartnode 특성 특성 설명
target 필드 C&R 트리 모델은 하나의 목표와 하나 이상의 입력 필드를 필요로 합니다. 주파수 필드도 지정할 수 있습니다. 자세한 정보는 공통 모델링 노드 특성 주제를 참조하십시오.
continue_training_existing_model 플래그  
objective Standard Boosting Bagging psm psm 대용량 데이터 세트에 사용되며 서버 연결이 필요합니다.
model_output_type Single InteractiveBuilder  
use_tree_directives 플래그  
tree_directives 문자열 트리 성장에 대한 지시문을 지정합니다. 새 줄이나 따옴표가 이스케이프되지 않도록 지시문을 큰따옴표로 묶을 수 있습니다. 지침은 데이터나 모델링 옵션의 사소한 변화에 매우 민감할 수 있으며, 다른 데이터 세트에 일반화되지 않을 수 있습니다.
use_max_depth Default Custom  
max_depth 정수 최대 트리 깊이, 0에서 1000까지. use_max_depth = Custom 인 경우에만 사용됩니다.
prune_tree 플래그 과적합을 피하기 위해 가지치기.
use_std_err 플래그 표준 오류에서 위험의 최대 차이를 사용하십시오.
std_err_multiplier 숫자 최대 차이.
max_surrogates 숫자 최대 대리인.
use_percentage 플래그  
min_parent_records_pc 숫자  
min_child_records_pc 숫자  
min_parent_records_abs 숫자  
min_child_records_abs 숫자  
use_costs 플래그  
costs 구조화됨 구조화된 속성.
priors Data Equal Custom  
custom_priors 구조화됨 구조화된 속성.
adjust_priors 플래그  
trails 숫자 부스팅 또는 배깅을 위한 구성 요소 모델의 수.
set_ensemble_method Voting HighestProbability HighestMeanProbability 범주형 목표에 대한 기본 결합 규칙.
range_ensemble_method Mean Median 연속적인 목표에 대한 기본 결합 규칙.
large_boost 플래그 매우 큰 데이터 세트에 부스팅을 적용합니다.
min_impurity 숫자  
impurity_measure Gini Twoing Ordered  
train_pct 숫자 과적합 방지 세트.
set_random_seed 플래그 결과 복제 옵션.
seed 숫자  
calculate_variable_importance 플래그  
calculate_raw_propensities 플래그  
calculate_adjusted_propensities 플래그  
adjusted_propensity_partition Test Validation