init_validate_scorers#

init_validate_scorers(scorers: Mapping[str, Union[str, Callable]], model: BasicModel, dataset: Dataset, class_avg: bool = True, model_type=None) 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

modelBasicModel

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

datasetDataset

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

class_avgbool , default True

for classification whether to return scorers of average score or per class

model_typeModelType , default None

model type to return scorers for