(Challenge) Cross-Validation Grid Search with Random Forest

(Challenge) Cross-Validation Grid Search with Random Forest

In this activity, you will conduct a grid search over the number of trees in the forest (n_estimators) and the maximum depth of a tree (max_depth) for a random forest model on the case study data. You will then create a visualization showing the average testing score for the grid of hyperparameters that you searched over.

Note: We have already set up the environment, loaded the cleaned dataset, and included the required Python packages for you in the Notebook file.