Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scikit decision tree

>>> from sklearn.datasets import load_iris
>>> from sklearn import tree
>>> iris = load_iris()
>>> X, y = iris.data, iris.target
>>> clf = tree.DecisionTreeClassifier()
>>> clf = clf.fit(X, y)
Source by scikit-learn.org #
 
PREVIOUS NEXT
Tagged: #scikit #decision #tree
ADD COMMENT
Topic
Name
1+4 =