Propriedades de logregnode

Ícone do nó logísticoRegressão logística é uma técnica estatística para classificar registros com base em valores de campos de entrada. É análoga à regressão linear, mas usa um campo de destino categórico em vez de um intervalo numérico.

Exemplo multinomial

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")

Exemplo Binomial

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)
Tabela 1. propriedades logregnode
Propriedades logregnode Valores Descrição da propriedade
target campo Os modelos de regressão logística requerem um único campo de destino e um ou mais campos de entrada. Os campos de frequência e de ponderação não são utilizados. Veja Propriedades do nó de modelagem comum para obter mais informações.
logistic_procedure Binomial Multinomial  
include_constant sinalização  
mode Simple Expert  
method Enter Stepwise Forwards Backwards BackwardsStepwise  
binomial_method Enter Forwards Backwards  
model_type MainEffects FullFactorial Custom Quando FullFactorial é especificado como o tipo de modelo, os métodos de etapas não são executados, mesmo que especificados. Em vez disso, Enter será o método usado. Se o tipo de modelo for configurado para Custom, mas nenhum campo customizado estiver especificado, um modelo de efeitos principal será construído.
custom_terms [[Sexo BP] [BP] [Idade]]  
multinomial_base_category sequência Especifica como a categoria de referência é determinada.
binomial_categorical_input sequência  
binomial_input_contrast Indicator Simple Difference Helmert Repeated Polynomial Deviation Propriedade definida como chave para entrada categórica que especifica como o contraste é determinado. Veja o exemplo para uso.
binomial_input_category First Last Propriedade definida como chave para entrada categórica que especifica como a categoria de referência é determinada. Veja o exemplo para uso.
scale None UserDefined Pearson Deviance  
scale_value number  
all_probabilities sinalização  
tolerance 1.0E-5 1.0E-6 1.0E-7 1.0E-8 1.0E-9 1.0E-10  
min_terms number  
use_max_terms sinalização  
max_terms number  
entry_criterion Score LR  
removal_criterion LR Wald  
probability_entry number  
probability_removal number  
binomial_probability_entry number  
binomial_probability_removal number  
requirements HierarchyDiscrete HierarchyAll Containment None  
max_iterations number  
max_steps number  
p_converge 1.0E-4 1.0E-5 1.0E-6 1.0E-7 1.0E-8 0  
l_converge 1.0E-1 1.0E-2 1.0E-3 1.0E-4 1.0E-5 0  
delta number  
iteration_history sinalização  
history_steps number  
summary sinalização  
likelihood_ratio sinalização  
asymptotic_correlation sinalização  
goodness_fit sinalização  
parameters sinalização  
confidence_interval number  
asymptotic_covariance sinalização  
classification_table sinalização  
stepwise_summary sinalização  
info_criteria sinalização  
monotonicity_measures sinalização  
binomial_output_display at_each_step at_last_step  
binomial_goodness_of_fit sinalização  
binomial_parameters sinalização  
binomial_iteration_history sinalização  
binomial_classification_plots sinalização  
binomial_ci_enable sinalização  
binomial_ci number  
binomial_residual outliers all  
binomial_residual_enable sinalização  
binomial_outlier_threshold number  
binomial_classification_cutoff number  
binomial_removal_criterion LR Wald Conditional  
calculate_variable_importance sinalização  
calculate_raw_propensities sinalização