Closed ablaom closed 1 year ago
That would indeed improve the display of the tree. The print_tree
-function uses also a value of sigdigits = 4
when printing to the screen (2 otherwise). So this would fit. I could add that to printnode
.
BTW: Could you publish the code leading to the decision tree above? It's also a good example, where the node rectangles are too small to fit the labels. So I could check, if adapting the values for width
and height
can solve the problem or if the plot recipe needs a bit more polish. You used the default values to create this plot, didn't you?
I could add that to printnode.
❤️
Could you publish the code leading to the decision tree above?
Sorry, can't find it now, but I think it's iris with all default hyperparameters.
After wrapping a tree using
DecisionTree.wrap(tree)
I get:And using @roland-KA's plot recipe (WIP) we get:
I suggest that the thresholds get rounded using, say
round(thresh, sigdigits=4)
.