Repository navigation
Improved label printing/plotting of nodes/leaves - #200
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #200 +/- ##
==========================================
+ Coverage 87.97% 87.99% +0.01%
==========================================
Files 10 10
Lines 1247 1249 +2
==========================================
+ Hits 1097 1099 +2
Misses 150 150
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
rikhuijzer
left a comment
There was a problem hiding this comment.
Thanks for working on this.
With this PR, the sigdigits keyword argument can not be modified by the user, correct? It is called from AbstractTrees.print_tree, but the default interface for AbstractTrees.printnode has no sigdigits keyword argument, so that will not be used.
Should we perhaps call AbstractTrees.print_tree(f::Function, io::IO, tree; kwargs...) where f is a custom implementation of printnode with signature f(io::IO, node) to fix this? I don't see yet how, but maybe you or Anthony does. I'm having a hard time with all the print logic and figuring out what is called when.
In any way, I would say this PR is good to go with the default keyword argument so that the issue with TreeRecipe.jl can be fixed (#197). Probably it would be best to make it a breaking release to ensure that we're not accidentally breaking someone's code.
Co-authored-by: Rik Huijzer <t.h.huijzer@rug.nl>
Co-authored-by: Rik Huijzer <t.h.huijzer@rug.nl>
Co-authored-by: Rik Huijzer <t.h.huijzer@rug.nl>
That's correct.
I've also had some thoughts on how to make
Because of the rework needed in As And thank's for the improvements you suggested! 👍 |
There was a problem hiding this comment.
Thanks @roland-KA for chipping in here again.
Unless the new check is ruling out previously allowed behaviour (see my comment above) - which I hope we can avoid, I think this can be tagged non-breaking.
ablaom
left a comment
There was a problem hiding this comment.
This is now good to go.
Thanks again @roland-KA and @rikhuijzer
printnodeis now rounding the thresholds tosigdigitssignificant digits (sigdigitsis a keyword parameter)wrapif there are already class names in use (i.e. existing class names cannot be overriden, they can only be added if ids are used within the original decision tree structure).