sklearn.metrics.get_scorer

sklearn.metrics.get_scorer(scoring)[source]

Get a scorer from string

Parameters
scoringstr | callable

scoring method as string. If callable it is returned as is.

Returns
scorercallable

The scorer.