class_docstr: Base check for checks that summarize given model performance on a dataset based on selected scorers.
class_docstr_tok: ["Base","check","for","checks","that","summarize","given","model","performance","on","a","dataset","based","on","selected","scorers","."]
docstr: Return check configuration.
docstr_tok: ["Return","check","configuration","."]
code: def config(self, include_version: bool = True) -> "CheckConfig":
      """Return check configuration."""
      if isinstance(self.scorers, dict):
          for k, v in self.scorers.items():
              if not isinstance(v, str):
                  reference = doclink(
                      "builtin-metrics",
                      template="For a list of built-in scorers please refer to {link}",
                  )
                  raise ValueError(
                      "Only built-in scorers are allowed when serializing check instances. "
                      f"{reference}. Scorer name: {k}"
                  )
      return super().config(include_version=include_version)
  
file_path: deepchecks/deepchecks/core/check_utils/single_dataset_performance_base.py
imports: from abc import ABC
  from typing import Dict, List, Optional
  from deepchecks.core import CheckResult, ConditionCategory, ConditionResult, SingleDatasetBaseCheck
  from deepchecks.core.checks import CheckConfig
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.core.reduce_classes import ReduceMixin
  from deepchecks.utils.docref import doclink
  from deepchecks.utils.strings import format_number
label_desc: Use image node_id 1 for calling the BaseSingleDatasetPerformance obj's underlying member method code with example usage: obj.config(include_version) and returns: super