Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sklearn tree visualization

from dtreeviz.trees import dtreeviz # remember to load the package

viz = dtreeviz(tree_reg1, X_.values, y_['target_abs'].values,
                target_name=["target_abs"],
                feature_names=FITURES)
viz
 
PREVIOUS NEXT
Tagged: #sklearn #tree #visualization
ADD COMMENT
Topic
Name
3+4 =