init_validate_scorers#

init_validate_scorers(scorers: Union[Mapping[str, Union[str, Callable]], List[str]], model: BasicModel, dataset: Dataset, model_classes: Optional[List], observed_classes: Optional[List]) List[DeepcheckScorer][source]#

Initialize scorers and return all of them as deepchecks scorers.

Parameters
scorersMapping[str, Union[str, Callable]]

dict of scorers names to scorer sklearn_name/function or a list without a name

modelBasicModel

used to validate the scorers, and calculate mode_type if None.

datasetDataset

used to validate the scorers, and calculate mode_type if None.

model_classes: t.Optional[t.List]

possible classes output for model. None for regression tasks.

observed_classes: t.Optional[t.List]

observed classes from labels and predictions. None for regression tasks.

Returns
——–
scorers: t.List[DeepcheckScorer]

A list of initialized DeepcheckScorers.