Trouver des règles de la décision Python
from sklearn.tree import export_text
Xerothermic Xenomorph
from sklearn.tree import export_text
|--- 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
tree_rules = export_text(model, feature_names=list(X_train.columns))