小编Art*_*tur的帖子

Sklearn plot_tree plot is too small

I have this simple code:

clf = tree.DecisionTreeClassifier()
clf = clf.fit(X, y)

tree.plot_tree(clf.fit(X, y))
plt.show()
Run Code Online (Sandbox Code Playgroud)

And the result I get is this graph: 在此处输入图片说明

How do I make this graph legible? I'm using PyCharm Professional 2019.3 as my IDE.

python graphics sklearn-pandas

20
推荐指数
2
解决办法
2万
查看次数

标签 统计

graphics ×1

python ×1

sklearn-pandas ×1