Get a scorer from string.
- scoringstr, callable or None
Scoring method as string. If callable it is returned as is. If None, returns None.
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.