'Change display text in matplot lib and scikit learn DecisionTreeClassifier
I want to change the display text rules in leaf of my DecisionTree :
fig, ax = plt.subplots(figsize=(130, 40))
tree.plot_tree(decision_tree,
feature_names=df_value.columns,
class_names=["0","1","2","3"],
filled=True,
impurity=False,
label='root',
proportion=False,
fontsize=38,
ax=ax
)
plt.show()
i don't know if it possible, i want to modify the "<= 0.5" (generated by scikit learn)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

