Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize decision tree using graphviz / other library #14

Open
TheDumbfounds opened this issue Apr 17, 2023 · 1 comment
Open

Visualize decision tree using graphviz / other library #14

TheDumbfounds opened this issue Apr 17, 2023 · 1 comment

Comments

@TheDumbfounds
Copy link

Hi there,

the title says it all. Is this currently possible? If not, it would be a great feature. The string representation is fine, but especially for displaying it to non-technical users, it would be great to be able to visualize it using graphviz or a similar library :)

Thanks!

Best
Gabriele

@smarie
Copy link
Owner

smarie commented May 10, 2023

Thanks @TheDumbfounds for this interesting feature proposal !

Scikit-learn provides such a feature for standard classification and regression trees. Maybe their code can be reused somehow to reach your objective ?

https://scikit-learn.org/stable/modules/generated/sklearn.tree.plot_tree.html

I will be happy to consider any PR here if you want to give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants