January 2020
Beginner to intermediate
432 pages
11h 24m
English
In Step 2, we used the typical scikit-learn approach to train a machine learning model. First, we created the object of the DecisionTreeClassifier class (using all the default settings). Then, we fitted the model to the training data (we needed to pass both the features and the target), using the fit method. Lastly, we obtained the predictions by using the predict method.
Read now
Unlock full access