How to use `log_loss` in `GridSearchCV` with multi-class labels in Scikit-Learn (sklearn)?
I'm trying to use the log_loss argument in the scoring parameter of GridSearchCV to tune this multi-class (6 classes) classifier. I don't understand how to give it a label parameter. Even if I gave it sklearn.metrics.log_loss , it would change for each iteration in the cross-validation so I don't understand how to give it the labels parameter? I'm using Python v3.6 and Scikit-Learn v0.18.1 How can I use GridSearchCV with log_loss with multi-class model tuning? My class representation: 1 31 2 18 3 28 4 19 5 17 6 22 Name: encoding, dtype: int64 My code: param_test = {"criterion": ["friedman_mse"