資料の 英語版 に戻る
logregnode プロパティー
logregnode プロパティー
最終更新: 2025年2月11日
ロジスティック回帰は、入力フィールドの値に基づいてレコードを分類する統計手法です。 線型回帰と似ていますが、数値範囲ではなくカテゴリー対象フィールドを使用します。
Multinomial Example
node = stream.create("logreg", "My node")
# "Fields" tab
node.setPropertyValue("custom_fields", True)
node.setPropertyValue("target", "Drug")
node.setPropertyValue("inputs", ["BP", "Cholesterol", "Age"])
node.setPropertyValue("partition", "Test")
# "Model" tab
node.setPropertyValue("use_model_name", True)
node.setPropertyValue("model_name", "Log_reg Drug")
node.setPropertyValue("use_partitioned_data", True)
node.setPropertyValue("method", "Stepwise")
node.setPropertyValue("logistic_procedure", "Multinomial")
node.setPropertyValue("multinomial_base_category", "BP")
node.setPropertyValue("model_type", "FullFactorial")
node.setPropertyValue("custom_terms", [["BP", "Sex"], ["Age"], ["Na", "K"]])
node.setPropertyValue("include_constant", False)
# "Expert" tab
node.setPropertyValue("mode", "Expert")
node.setPropertyValue("scale", "Pearson")
node.setPropertyValue("scale_value", 3.0)
node.setPropertyValue("all_probabilities", True)
node.setPropertyValue("tolerance", "1.0E-7")
# "Convergence..." section
node.setPropertyValue("max_iterations", 50)
node.setPropertyValue("max_steps", 3)
node.setPropertyValue("l_converge", "1.0E-3")
node.setPropertyValue("p_converge", "1.0E-7")
node.setPropertyValue("delta", 0.03)
# "Output..." section
node.setPropertyValue("summary", True)
node.setPropertyValue("likelihood_ratio", True)
node.setPropertyValue("asymptotic_correlation", True)
node.setPropertyValue("goodness_fit", True)
node.setPropertyValue("iteration_history", True)
node.setPropertyValue("history_steps", 3)
node.setPropertyValue("parameters", True)
node.setPropertyValue("confidence_interval", 90)
node.setPropertyValue("asymptotic_covariance", True)
node.setPropertyValue("classification_table", True)
# "Stepping" options
node.setPropertyValue("min_terms", 7)
node.setPropertyValue("use_max_terms", True)
node.setPropertyValue("max_terms", 10)
node.setPropertyValue("probability_entry", 3)
node.setPropertyValue("probability_removal", 5)
node.setPropertyValue("requirements", "Containment")
Binomial Example
node = stream.create("logreg", "My node")
# "Fields" tab
node.setPropertyValue("custom_fields", True)
node.setPropertyValue("target", "Cholesterol")
node.setPropertyValue("inputs", ["BP", "Drug", "Age"])
node.setPropertyValue("partition", "Test")
# "Model" tab
node.setPropertyValue("use_model_name", False)
node.setPropertyValue("model_name", "Log_reg Cholesterol")
node.setPropertyValue("multinomial_base_category", "BP")
node.setPropertyValue("use_partitioned_data", True)
node.setPropertyValue("binomial_method", "Forwards")
node.setPropertyValue("logistic_procedure", "Binomial")
node.setPropertyValue("binomial_categorical_input", "Sex")
node.setKeyedPropertyValue("binomial_input_contrast", "Sex", "Simple")
node.setKeyedPropertyValue("binomial_input_category", "Sex", "Last")
node.setPropertyValue("include_constant", False)
# "Expert" tab
node.setPropertyValue("mode", "Expert")
node.setPropertyValue("scale", "Pearson")
node.setPropertyValue("scale_value", 3.0)
node.setPropertyValue("all_probabilities", True)
node.setPropertyValue("tolerance", "1.0E-7")
# "Convergence..." section
node.setPropertyValue("max_iterations", 50)
node.setPropertyValue("l_converge", "1.0E-3")
node.setPropertyValue("p_converge", "1.0E-7")
# "Output..." section
node.setPropertyValue("binomial_output_display", "at_each_step")
node.setPropertyValue("binomial_goodness_of_fit", True)
node.setPropertyValue("binomial_iteration_history", True)
node.setPropertyValue("binomial_parameters", True)
node.setPropertyValue("binomial_ci_enable", True)
node.setPropertyValue("binomial_ci", 85)
# "Stepping" options
node.setPropertyValue("binomial_removal_criterion", "LR")
node.setPropertyValue("binomial_probability_removal", 0.2)
プロパティー |
値 | プロパティーの説明 |
---|---|---|
|
フィールド | ロジスティック回帰モデルは 1 つの対象フィールドおよび 1 つ以上の入力フィールドを使用します。 度数フィールドおよび重みフィールドは使用しません。 詳しくは、 モデル作成ノードの共通プロパティー を参照してください。 |
|
|
|
|
フラグ | |
|
|
|
|
|
|
|
|
|
|
|
がモデル・タイプとして指定されている場合、ステップ法は指定されていても実行されません。 代わりに、 が使用される方法になります。 モデル・タイプに が設定されてもユーザー設定フィールド (custom fields) が指定されていない場合は、主効果モデルが構築されます。 |
|
[[BP Sex] [BP] [Age]] | |
|
string | 参照カテゴリーの決定方法を指定します。 |
|
string | |
|
|
コントラストを決定する方法を指定するカテゴリー入力用のキー・プロパティー。 使用例を参照してください。 |
|
|
参照カテゴリーを決定する方法を指定するカテゴリー入力用のキー・プロパティー。 使用例を参照してください。 |
|
|
|
|
数値 | |
|
フラグ | |
|
|
|
|
数値 | |
|
フラグ | |
|
数値 | |
|
|
|
|
|
|
|
数値 | |
|
数値 | |
|
数値 | |
|
数値 | |
|
|
|
|
数値 | |
|
数値 | |
|
|
|
|
|
|
|
数値 | |
|
フラグ | |
|
数値 | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
数値 | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
|
|
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
フラグ | |
|
数値 | |
|
|
|
|
フラグ | |
|
数値 | |
|
数値 | |
|
|
|
|
フラグ | |
|
フラグ |
トピックは役に立ちましたか?
0/1000