Skip to content

Instantly share code, notes, and snippets.

@a-mitani
Last active February 19, 2019 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-mitani/17b815b9078020f5b3c658a008868104 to your computer and use it in GitHub Desktop.
Save a-mitani/17b815b9078020f5b3c658a008868104 to your computer and use it in GitHub Desktop.
###決定木の中身を表示するための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