Last active
May 22, 2016 14:21
-
-
Save marthall/0fa9de346856e8124021b27288eae2c9 to your computer and use it in GitHub Desktop.
Forest export to graphics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.tree import export_graphviz | |
out = export_graphviz(forest.estimators_[0], out_file='tree.dot') | |
# From terminal: | |
# dot -Tpng tree.dot -o tree.png | |
# http://scikit-learn.org/stable/modules/generated/sklearn.tree.export_graphviz.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment