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...@python.org> on behalf of Christian Braune <christian.braun...@gmail.com> Sent: Friday, January 26, 2024 7:53:34 PM To: Scikit-learn mailing list <scikit-learn@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.kulka...@rwth-aachen.de<mailto:apoorva.kulka...@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@python.org<mailto:scikit-learn@python.org> https://mail.python.org/mailman/listinfo/scikit-learn
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn