scikit learn tree

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

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