decision trees scikit learn code example
Example 1: scikit learn decision tree
from sklearn import tree
X = [[0, 0], [1, 1]]
Y = [0, 1]
clf = tree.DecisionTreeClassifier()
clf = clf.fit(X, Y)
Example 2: skit learn decision
clf.predict([[2., 2.]])