[scikit-learn] Decsion tree Visualization

Kulkarni, Apoorva apoorva.kulkarni at rwth-aachen.de
Fri Jan 26 14:06:26 EST 2024


Hello,

The suggested solution worked. We are beginners in this domain, hence grateful for your valuable input.

Thank you so much for your prompt help.

Apoorva
________________________________
From: scikit-learn <scikit-learn-bounces+apoorva.kulkarni=rwth-aachen.de at python.org> on behalf of Christian Braune <christian.braune79 at gmail.com>
Sent: Friday, January 26, 2024 7:53:34 PM
To: Scikit-learn mailing list <scikit-learn at python.org>
Subject: Re: [scikit-learn] Decsion tree Visualization

Hello Apoorva,

have you tried this function: https://scikit-learn.org/stable/modules/generated/sklearn.tree.plot_tree.html ? It has a max_depth parameter which might just do, what you need.

Have a nice weekend!

Kulkarni, Apoorva <apoorva.kulkarni at rwth-aachen.de<mailto:apoorva.kulkarni at rwth-aachen.de>> schrieb am Fr., 26. Jan. 2024, 19:49:
Hello,

For an academic project I have used decision tree with depth of 70.

To document the data I need visual tree represention only upto depth of 5. Is there any way to do that? Please suggest.

Apoorva



Get Outlook for Android<https://aka.ms/AAb9ysg>
_______________________________________________
scikit-learn mailing list
scikit-learn at python.org<mailto:scikit-learn at python.org>
https://mail.python.org/mailman/listinfo/scikit-learn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scikit-learn/attachments/20240126/bfd0c25a/attachment.html>


More information about the scikit-learn mailing list