Answers for "algorithm example in decision tree"

8

decision tree algorithm

from sklearn.datasets import load_iris
>>> from sklearn import tree
>>> X, y = load_iris(return_X_y=True)
>>> clf = tree.DecisionTreeClassifier()
>>> clf = clf.fit(X, y)
Posted by: Guest on May-06-2020

Code answers related to "algorithm example in decision tree"

Python Answers by Framework

Browse Popular Code Answers by Language