class_docstr: Class for computing metrics based on a single
  :obj:`~aif360.datasets.RegressionDataset`.
docstr: Args:
      dataset (RegressionDataset): A RegressionDataset.
      privileged_groups (list(dict)): Privileged groups. Format is a list
          of `dicts` where the keys are `protected_attribute_names` and
          the values are values in `protected_attributes`. Each `dict`
          element describes a single group. See examples for more details.
      unprivileged_groups (list(dict)): Unprivileged groups in the same
          format as `privileged_groups`.
  
  Raises:
      TypeError: `dataset` must be a
          :obj:`~aif360.datasets.RegressionDataset` type.
code: def __init__(
      self, dataset, unprivileged_groups=None, privileged_groups=None
  ):
      """
      Args:
          dataset (RegressionDataset): A RegressionDataset.
          privileged_groups (list(dict)): Privileged groups. Format is a list
              of `dicts` where the keys are `protected_attribute_names` and
              the values are values in `protected_attributes`. Each `dict`
              element describes a single group. See examples for more details.
          unprivileged_groups (list(dict)): Unprivileged groups in the same
              format as `privileged_groups`.
  
      Raises:
          TypeError: `dataset` must be a
              :obj:`~aif360.datasets.RegressionDataset` type.
      """
      if not isinstance(dataset, RegressionDataset):
          raise TypeError("'dataset' should be a RegressionDataset")
  
      # sets self.dataset, self.unprivileged_groups, self.privileged_groups
      super(RegressionDatasetMetric, self).__init__(
          dataset,
          unprivileged_groups=unprivileged_groups,
          privileged_groups=privileged_groups,
      )
  
file_path: AIF360/aif360/metrics/regression_metric.py
imports: import numpy
  from aif360.metrics import DatasetMetric
  from aif360.datasets import RegressionDataset
label_desc: Use image node_id 1 to create a new RegressionDatasetMetric object from inherited base classes: DatasetMetric with example: obj = RegressionDatasetMetric(dataset, unprivileged_groups, privileged_groups)