Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###決定木の中身を表示するための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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement