class_docstr: Fairness indicators metrics.
class_docstr_tok: ["Fairness","indicators","metrics","."]
docstr: Add streamz logging for fairness indicators.
docstr_tok: ["Add","streamz","logging","for","fairness","indicators","."]
code: def computations_with_logging(self):
      """Add streamz logging for fairness indicators."""
  
      computations_fn = metric_util.merge_per_key_computations(
          _fairness_indicators_metrics_at_thresholds
      )
  
      def merge_and_log_computations_fn(
          eval_config: Optional[config_pb2.EvalConfig] = None,
          schema: Optional[schema_pb2.Schema] = None,
          model_names: Optional[List[str]] = None,
          output_names: Optional[List[str]] = None,
          sub_keys: Optional[
              List[Optional[metric_types.SubKey]]
          ] = None,
          aggregation_type: Optional[
              metric_types.AggregationType
          ] = None,
          class_weights: Optional[Dict[int, float]] = None,
          example_weighted: bool = False,
          query_key: Optional[str] = None,
          **kwargs,
      ):
          return computations_fn(
              eval_config,
              schema,
              model_names,
              output_names,
              sub_keys,
              aggregation_type,
              class_weights,
              example_weighted,
              query_key,
              **kwargs,
          )
  
      return merge_and_log_computations_fn
  
file_path: model-analysis/tensorflow_model_analysis/addons/fairness/metrics/fairness_indicators.py
imports: import collections
  from typing import Any, Dict, List, Optional, Sequence
  from tensorflow_model_analysis.metrics import binary_confusion_matrices
  from tensorflow_model_analysis.metrics import metric_types
  from tensorflow_model_analysis.metrics import metric_util
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 1 for calling the FairnessIndicators obj's underlying member method code with example usage: obj.computations_with_logging() and returns: merge_and_log_computations_fn, computations_fn