added dot files
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user