class_docstr: Extend ReduceMixin to for performance checks.
docstr: Return True if the check reduce_output is better when it is greater.
  
  Returns False if the check is a regression check and the metric is in the lower_is_better list, else True.
docstr_tok: ["Return","True","if","the","check","reduce_output","is","better","when","it","is","greater",".","Returns","False","if","the","check","is","a","regression","check","and","the","metric","is","in","the","lower_is_better","list",",","else","True","."]
code: def greater_is_better(self):
      """Return True if the check reduce_output is better when it is greater.
  
      Returns False if the check is a regression check and the metric is in the lower_is_better list, else True.
      """
      from deepchecks.tabular.metric_utils.scorers import (
          regression_scorers_lower_is_better_dict,
      )
  
      lower_is_better_names = set(
          regression_scorers_lower_is_better_dict.keys()
      )
      if not hasattr(self, "scorers"):
          raise NotImplementedError(
              "ReduceMetricClassMixin must be used with a check that has a scorers attribute"
          )
      elif isinstance(self.scorers, dict):
          names = list(self.scorers.keys())
      elif isinstance(self.scorers, list):
          names = self.scorers
      else:
          raise NotImplementedError(
              "ReduceMetricClassMixin must be used with a check that has a scorers attribute"
              " of type DeepcheckScorer or dict"
          )
  
      names = [x.lower().replace(" ", "_") for x in names]
      if all((name in lower_is_better_names) for name in names):
          return False
      elif all((name not in lower_is_better_names) for name in names):
          return True
      else:
          raise DeepchecksValueError(
              "Cannot reduce metric class with mixed scorers"
          )
  
imports: import abc
  from typing import Dict, Optional
  import numpy
  import pandas
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.utils.logger import get_logger
label_desc: Use image node_id 1 for calling the ReduceMetricClassMixin obj's underlying member method code with example usage: obj.greater_is_better() and returns: False, True