【发布时间】:2021-12-04 19:45:59
【问题描述】:
我正在使用决策树分类器并想使用 matplotlib 绘制树
我正在使用这个,但节点很小且不清楚:
from sklearn import tree
import matplotlib.pyplot as plt
plt.figure(figsize=(15,15))
tree.plot_tree(model_dt_smote,filled=True)
【问题讨论】:
标签: python matplotlib scikit-learn decision-tree