Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit learn decision tree

dot_data = tree.export_graphviz(clf, out_file=None, 
                     feature_names=iris.feature_names,  
                     class_names=iris.target_names,  
                     filled=True, rounded=True,  
                     special_characters=True)  
graph = graphviz.Source(dot_data)  
graph
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #scikit #learn #decision #tree
ADD COMMENT
Topic
Name
5+4 =