c50node 物件

C5.0 ノード・アイコン C5.0 ノードは、決定木またはルールセットのいずれかを構築します。 このモデルは、各レベルで最大の情報を提供するフィールドに基づいてサンプルを分割することで機能します。 対象フィールドはカテゴリー別でなければなりません。 2つ以上のサブグループへの複数分割が可能です。

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]])
表 1. c50node プロパティー
c50node プロパティ- プロパティーの説明
target フィールド C50 モデルは、単一のターゲットフィールドと1つ以上の入力フィールドを使用します。 重み付けフィールドを指定することもできます。 詳しくは、 モデル作成ノードの共通プロパティー を参照してください。
output_type DecisionTree RuleSet  
group_symbolics フラグ  
use_boost フラグ  
boost_num_trials 番号になります  
use_xval フラグ  
xval_num_folds 番号になります  
mode Simple Expert  
favor Accuracy Generality 正確性または一般性を優先する。
expected_noise 番号になります  
min_child_records 番号になります  
pruning_severity 番号になります  
use_costs フラグ  
costs 構造化 これは構造化された物件です。 使用方法の例をご覧ください。
use_winnowing フラグ  
use_global_pruning フラグ デフォルトでは (True) です。
calculate_variable_importance フラグ  
calculate_raw_propensities フラグ  
calculate_adjusted_propensities フラグ  
adjusted_propensity_partition Test Validation