Implementation of Random Forest
This lesson will familiarize you with the implementation steps of random forest.
1) Import libraries
Note there are two separate algorithms from Scikit-learn for building random forests either based on classification or regression. In this exercise, you will utilize the algorithm’s classification form using Scikit-learn’s RandomForestClassifier
rather than RandomForestRegressor
, which is used for regression.
Get hands-on with 1400+ tech skills courses.