我正在使用python处理绘制决策树,
tree.plot_tree(clf.fit(X_train, y_train))
plt.suptitle("Decision surface of a decision tree using paired features")
plt.show()
但是当我运行此代码时,树显示如下:>
决策树
有没有办法使树正常?
我使用python,tree.plot_tree(clf.fit(X_train,y_train))处理绘制决策树plt.suptitle(“使用配对特征的决策树的决策面”)plt.show(),但是当我运行时这个...
export_graphviz(https://scikit-learn.org/stable/modules/generated/sklearn.tree.export_graphviz.html)可能是您的理想选择。