docstr: Checks if regression error is specified as a filter.
  
  :param filters: The filters.
  :type filters: list[dict]
  :return: True if regression error filter is specified in
           the filters.
  :rtype: bool
docstr_tok: ["Checks","if","regression","error","is","specified","as","a","filter",".",":","param","filters",":","The","filters",".",":","type","filters",":","list","[","dict","]",":","return",":","True","if","regression","error","filter","is","specified","in","the","filters",".",":","rtype",":","bool"]
code: def _filters_has_regression_error(self, filters):
      """Checks if regression error is specified as a filter.
  
      :param filters: The filters.
      :type filters: list[dict]
      :return: True if regression error filter is specified in
               the filters.
      :rtype: bool
      """
      model_task = self.model_task
      # For regression task, check if regression error
      # is included in filters, and if it is then
      # compute the necessary column data on the fly
      if model_task == ModelTask.REGRESSION and filters:
          for filter in filters:
              if COLUMN in filter:
                  column = filter[COLUMN]
                  if column == REGRESSION_ERROR:
                      return True
      return False
  
file_path: responsible-ai-toolbox/erroranalysis/erroranalysis/_internal/cohort_filter.py
imports: from typing import Any, List, Optional
  import numpy
  import pandas
  from erroranalysis._internal.constants import ARG, COLUMN, COMPOSITE_FILTERS, METHOD, OPERATION, PRED_Y, ROW_INDEX, TRUE_Y, CohortFilterMethods, CohortFilterOps, ModelTask
  from erroranalysis._internal.metrics import get_ordered_classes
  from erroranalysis._internal.utils import is_spark
label_desc: Use image node_id 4 for calling the FilterDataWithCohortFilters obj's underlying member method code with example usage: obj._filters_has_regression_error(filters) and returns: False, True