Answers for "implementation of decision tree classifier using python"

2

import DecisionTreeClassifier

from sklearn.tree import DecisionTreeClassifier
Posted by: Guest on May-10-2021
-1

decision tree classifier sklearn

from sklearn.datasets import load_iris
from sklearn.model_selection import cross_val_score
from sklearn.tree import DecisionTreeClassifier
clf = DecisionTreeClassifier(random_state=0)
iris = load_iris()
cross_val_score(clf, iris.data, iris.target, cv=10)
Posted by: Guest on January-05-2021

Code answers related to "implementation of decision tree classifier using python"

Browse Popular Code Answers by Language