scikit_learn / 0.24.1 / modules / generated / sklearn.metrics.get_scorer.html /

sklearn.metrics.get_scorer

sklearn.metrics.get_scorer(scoring) [source]

Get a scorer from string.

Read more in the User Guide.

Parameters
scoringstr or callable

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

Returns
scorercallable

The scorer.

© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.metrics.get_scorer.html