class_docstr: Accumulator for computing BooleanFlipRates.
class_docstr_tok: ["Accumulator","for","computing","BooleanFlipRates","."]
code: def merge(self, other: "_BooleanFlipRatesAccumulator"):
      self.num_weighted_examples += other.num_weighted_examples
      self.num_weighted_neg_to_neg += other.num_weighted_neg_to_neg
      self.num_weighted_neg_to_pos += other.num_weighted_neg_to_pos
      self.num_weighted_pos_to_neg += other.num_weighted_pos_to_neg
      self.num_weighted_pos_to_pos += other.num_weighted_pos_to_pos
  
file_path: model-analysis/tensorflow_model_analysis/metrics/flip_metrics.py
imports: import dataclasses
  from typing import Optional, Iterable, List
  import apache_beam
  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_model_analysis.utils import model_util
label_desc: Use image node_id 1 for calling the _BooleanFlipRatesAccumulator obj's underlying member method code with example usage: obj.merge(other) without return types