skcikit learn decision tree

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

showing results for - "skcikit learn decision tree"
Nicole
24 Jun 2017
1>>> from sklearn import tree
2>>> X = [[0, 0], [1, 1]]
3>>> Y = [0, 1]
4>>> clf = tree.DecisionTreeClassifier()
5>>> clf = clf.fit(X, Y)