【发布时间】:2020-02-26 04:26:48
【问题描述】:
我正在使用 python 绘制决策树,
tree.plot_tree(clf.fit(X_train, y_train))
plt.suptitle("Decision surface of a decision tree using paired features")
plt.show()
但是当我运行这段代码时,树会像这样显示
决策树
有什么办法可以让树正常吗?
【问题讨论】:
-
您是否尝试过更改某些选项,例如字体大小?
标签: python matplotlib scikit-learn decision-tree