Exercise

Model results using GridSearchCV

You discovered that the best parameters for your model are that the split criterion should be set to 'gini', the number of estimators (trees) should be 30, the maximum depth of the model should be 8 and the maximum features should be set to "log2".

Let's give this a try and see how well our model performs. You can use the get_model_results() function again to save time.

Instructions

100 XP
  • Input the optimal settings into the model definition.
  • Fit the model, obtain predictions and get the performance parameters with get_model_results().