Show that the metric decides the model
Machine Learning · from Searching hyperparameters
GridSearchCVRandomizedSearchCVbest_params_cv_results_scoringn_jobsPutting the kettle on…
Starting up…
Exercise 2
Show that the metric decides the model. Run the same grid under "roc_auc" and under "accuracy", and return the two chosen class_weight values as a list.
your answer
stuck? the lesson behind it
Searching hyperparameters
The metric you pass does not report the winner — it decides it