init_validate_scorers#

init_validate_scorers(scorers: Union[Mapping[str, Union[str, Callable]], List[str]], 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

model_classest.Optional[t.List]

possible classes output for model. None for regression tasks.

observed_classest.Optional[t.List]

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

Returns
t.List[DeepcheckScorer]

A list of initialized scorers