skada.metrics.SupervisedScorer
- class skada.metrics.SupervisedScorer(scoring=None, greater_is_better=True, kwargs=None)[source]
Compute score on supervised dataset.
- Parameters:
- scoringstr or callable, default=None
A string (see model evaluation documentation) or a scorer callable object / function with signature
scorer(estimator, X, y). If None, the provided estimator object's score method is used.- greater_is_betterbool, default=True
Whether scorer is a score function (default), meaning high is good, or a loss function, meaning low is good. In the latter case, the scorer object will sign-flip the outcome of the scorer.