Last active
February 19, 2019 00:34
-
-
Save a-mitani/17b815b9078020f5b3c658a008868104 to your computer and use it in GitHub Desktop.
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
###決定木の中身を表示するためのdotファイルの出力 | |
from sklearn.externals.six import StringIO | |
with open("xor_simple.dot", 'w') as f: | |
f = tree.export_graphviz(clf, out_file=f) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment