Get a scorer from string.
Read more in the User Guide.
get_scorer_namescan be used to retrieve the names of all available scorers.
- scoringstr or callable
Scoring method as string. If callable it is returned as is.
When passed a string, this function always returns a copy of the scorer object. Calling
get_scorertwice for the same scorer results in two separate scorer objects.