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 
<[email protected]> on behalf of 
Christian Braune <[email protected]>
Sent: Friday, January 26, 2024 7:53:34 PM
To: Scikit-learn mailing list <[email protected]>
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 
<[email protected]<mailto:[email protected]>> 
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
[email protected]<mailto:[email protected]>
https://mail.python.org/mailman/listinfo/scikit-learn
_______________________________________________
scikit-learn mailing list
[email protected]
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to