scikit learn decistion tree

Solutions on MaxInterview for scikit learn decistion tree by the best coders in the world

showing results for - "scikit learn decistion tree"
Leonie
09 Sep 2020
1from sklearn import tree
2X = [[0, 0], [1, 1]]
3Y = [0, 1]
4clf = tree.DecisionTreeClassifier()
5clf = clf.fit(X, Y)