Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit learn decision tree

from sklearn import tree
X = [[0, 0], [1, 1]]
Y = [0, 1]
clf = tree.DecisionTreeClassifier()
clf = clf.fit(X, Y)
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #scikit #learn #decision #tree
ADD COMMENT
Topic
Name
4+7 =