Kaggle Challenge - Fine Tune Parameters
5. Fine-Tune Your Model
Say our best performing model was the RandomForestRegressor. This is a model that has many input hyperparameters that can be tweaked for improving performance. For example, we could have a forest with 100 or 1000 trees, or we could use 10 or 50 features during random selection. What are the best values for these hyperparameters to pass as input to the model for training?
Grid Search
Should we fiddle with all the possible values manually and then compare results to find the best combination of hyperparameters? This would be really tedious work, and we would end up exploring only a few possible combinations.
Luckily, we can use Scikit-learn’s GridSearchCV
to do this tedious ...
Access this course and 1400+ top-rated courses and projects.