How to increase the Nodes of a decision Tree in Python

I am trying to figure out how to increase the size of the decision tree in python. I have been able to get the plot but the box sizes are very small and is not visible. Can anyone help in increasing the size of the plot and box. The Code is:

plt.figure(figsize=(5,5))
tree.plot_tree(clf,max_depth=4,label='all')
plt.show()

enter image description here



Read more here: https://stackoverflow.com/questions/67394416/how-to-increase-the-nodes-of-a-decision-tree-in-python

Content Attribution

This content was originally published by user15473160 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: