May 2019
Beginner to intermediate
290 pages
6h 19m
English
Now, we will implement this for a random forest. If the decision tree did well, we might suspect that the random forest will also do well because it's based on decision trees.
We will import the classifier using the following code:
![]()
We will then run the classification report for the forest, as follows:

This results in the following output:

And lo and behold, the random forest does a perfect job on the dataset ...
Read now
Unlock full access