update week44

This commit is contained in:
mhjensen
2020-10-30 06:15:43 +01:00
parent b488e11a06
commit 53bf4090f2
51 changed files with 3316 additions and 3417 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 = tree_clf.fit(X, y)
# and then plot the tree
tree.plot_tree(tree_clf)