[scikit-learn] Version 0.21! and plot_tree!
Andrew Howe
ahowe42 at gmail.com
Wed Dec 4 05:19:30 EST 2019
Hi Andy
I've been playing around with plot_tree for a while (clearly), and have
some feedback finally. I'm not very concerned with the compactness of the
tree. However, for large trees, it's not very easy to inspect or traverse.
I think it could be very useful to add the following ways to
*slice-and-dice* the tree:
- plot_tree_subtree_node - plots only the portion of the tree that could
be accessed by traversing downwards from the specified node
- plot_tree_subtree_class - plots the entire tree, highlighting all the
traversals that lead to a specific class, other class leaf / branch nodes
could be shrunk to save space
Also, I have noted on ver 0.21.3 that the rotate argument does not seem to
be working in either jupyter lab or ipython, though this seems like a known
issue.
Andrew
<~~~~~~~~~~~~~~~~~~~~~~~~~~~>
J. Andrew Howe, PhD
LinkedIn Profile <http://www.linkedin.com/in/ahowe42>
ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/>
Open Researcher and Contributor ID (ORCID)
<http://orcid.org/0000-0002-3553-1990>
Github Profile <http://github.com/ahowe42>
Personal Website <http://www.andrewhowe.com>
I live to learn, so I can learn to live. - me
<~~~~~~~~~~~~~~~~~~~~~~~~~~~>
On Thu, May 23, 2019 at 4:24 PM Andreas Mueller <t3kcit at gmail.com> wrote:
> Hey Andrew.
> Thanks for saying thanks!
> I share your frustration with export_graphviz, in particular for teaching.
> I feel like plot_tree is not ideal yet, though. In particular the layout
> is not as compact as the graphviz one.
> If you have any feedback or suggestions, I'd be very happy to hear them!
>
> Cheers,
> Andy
>
>
> On 5/23/19 10:39 AM, Andrew Howe wrote:
>
> I want to say thank you to all the sklearn developers. The breadth and
> quality of this software is truly breathtaking.
>
> Specifically, I want to say thank you very very much for the plot_tree
> function! I have wasted a lot of effort in the past, on multiple OSes,
> getting everything to work so I could view the tree.export_graphviz
> results. Having this new function to plot the trees natively in matplotlib
> is extremely useful.
>
> Thanks again!
> Andrew
>
> <~~~~~~~~~~~~~~~~~~~~~~~~~~~>
> J. Andrew Howe, PhD
> LinkedIn Profile <http://www.linkedin.com/in/ahowe42>
> ResearchGate Profile <http://www.researchgate.net/profile/John_Howe12/>
> Open Researcher and Contributor ID (ORCID)
> <http://orcid.org/0000-0002-3553-1990>
> Github Profile <http://github.com/ahowe42>
> Personal Website <http://www.andrewhowe.com>
> I live to learn, so I can learn to live. - me
> <~~~~~~~~~~~~~~~~~~~~~~~~~~~>
>
> _______________________________________________
> scikit-learn mailing listscikit-learn at python.orghttps://mail.python.org/mailman/listinfo/scikit-learn
>
>
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20191204/48940fa2/attachment.html>
More information about the scikit-learn
mailing list