Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. ###決定木の中身を表示するためのdotファイルの出力
  2. from sklearn.externals.six import StringIO
  3.  
  4. with open("xor_simple.dot", 'w') as f:
  5. f = tree.export_graphviz(clf, out_file=f)
  6. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement