带Python的绘图决策树

问题描述 投票:0回答:1

我正在使用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(),但是当我运行时这个...

python matplotlib scikit-learn decision-tree
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.