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 the values of the metrics for the dataset provided in a {metric: value} format.
docstr_tok: ["Return","the","values","of","the","metrics","for","the","dataset","provided","in","a","{","metric",":","value","}","format","."]
code: def reduce_output(
      self, check_result: CheckResult
  ) -> Dict[str, float]:
      """Return the values of the metrics for the dataset provided in a {metric: value} format."""
      result = {
          row["Metric"] + "_" + str(row["Class"]): row["Value"]
          for _, row in check_result.value.iterrows()
      }
      for key in [
          key for key in result.keys() if key.endswith("_<NA>")
      ]:
          result[key.replace("_<NA>", "")] = result.pop(key)
      return result
  
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 2 for calling the BaseSingleDatasetPerformance obj's underlying member method code with example usage: obj.reduce_output(check_result) and returns: result