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> 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
> https://mail.python.org/mailman/listinfo/scikit-learn
>
_______________________________________________
scikit-learn mailing list
scikit-learn@python.org
https://mail.python.org/mailman/listinfo/scikit-learn

Reply via email to