New! Use Simple ML for Sheets to apply machine learning to the data in your Google Sheets Read More

tfdf.model_plotter.plot_tree

Plots a decision tree.

tree A decision tree.
max_depth Maximum plotting depth. Makes the plot more readable in case of large trees.
display_options Dictionary of display options.

The html content displaying the tree.