ski learn decision tree

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

showing results for - "ski learn decision tree"
Laura
09 May 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)