added dot files

This commit is contained in:
mhjensen
2020-11-22 21:49:09 +01:00
parent 1a7020d3ae
commit ee6fd7d9a0
8 changed files with 1623 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
from sklearn.datasets import load_iris
from sklearn import tree
X, y = load_iris(return_X_y=True)
tree_clf = tree.DecisionTreeClassifier()
tree_clf = clf.fit(X, y)
# and then plot the tree
tree.plot_tree(tree_clf)