Computer scienceData scienceInstrumentsScikit-learnTraining ML models with scikit-learnClassification in scikit-learn

Decision tree with scikit-learn

First steps

Report a typo

Let's import sklearn and create a decision tree model. How can we do it?

a.

from sklearn.tree import DecisionTreeClassifier
clf = DecisionTreeClassifier()

b.

import sklearn
clf = DecisionTreeClassifier()

c.

from sklearn.tree import decisiontreeclassifier
clf = decisiontreeclassifier()

d.

from sklearn.tree import *
clf = DecisionTreeClassifier()
Select one or more options from the list
___

Create a free account to access the full topic