Run the grid over clf__C in [0.01, 0.1, 1, 10] and clf__class_weight in [None,…
Machine Learning · from Searching hyperparameters
GridSearchCVRandomizedSearchCVbest_params_cv_results_scoringn_jobsPutting the kettle on…
Starting up…
Exercise 1
Run the grid over clf__C in [0.01, 0.1, 1, 10] and clf__class_weight in [None, "balanced"] with scoring="roc_auc". Return [best_C, best_score], score rounded to 4 places.
your answer
stuck? the lesson behind it
Searching hyperparameters
The metric you pass does not report the winner — it decides it