Session Ready
Exercise

Preparing for RandomizedSearch

Last semester your professor challenged your class to build a predictive model to predict final exam test scores. You tried running a few different models by randomly selecting hyperparameters. However, running each model required you to code it individually.

After learning about RandomizedSearchCV(), you're revisiting your professors challenge to build the best model. In this exercise, you will prepare the three necessary inputs for completing a random search.

Instructions
100 XP
  • Finalize the parameter dictionary by adding a list for the max_depth parameter with options 2, 4, 6, and 8.
  • Create a random forest regression model with ten trees and a random_state of 1111.
  • Create a mean squared error scorer to use.