“Encontre regras da árvore de decisão python” Respostas de código

Encontre regras da árvore de decisão python

from sklearn.tree import export_text
Xerothermic Xenomorph

Encontre regras da árvore de decisão python

|--- Age <= 0.63
|   |--- EstimatedSalary <= 0.61
|   |   |--- Age <= -0.16
|   |   |   |--- class: 0
|   |   |--- Age >  -0.16
|   |   |   |--- EstimatedSalary <= -0.06
|   |   |   |   |--- class: 0
|   |   |   |--- EstimatedSalary >  -0.06
|   |   |   |   |--- EstimatedSalary <= 0.40
|   |   |   |   |   |--- EstimatedSalary <= 0.03
|   |   |   |   |   |   |--- class: 1
Xerothermic Xenomorph

Encontre regras da árvore de decisão python

tree_rules = export_text(model, feature_names=list(X_train.columns))
Xerothermic Xenomorph

Respostas semelhantes a “Encontre regras da árvore de decisão python”

Perguntas semelhantes a “Encontre regras da árvore de decisão python”

Procure respostas de código populares por idioma

Procurar outros idiomas de código