class_docstr: Squared pearson correlation (r^2) accumulator.
class_docstr_tok: ["Squared","pearson","correlation","(","r^2",")","accumulator","."]
code: def __init__(self):
      self.total_weighted_labels = 0.0
      self.total_weighted_predictions = 0.0
      self.total_weighted_squared_labels = 0.0
      self.total_weighted_squared_predictions = 0.0
      self.total_weighted_labels_times_predictions = 0.0
      self.total_weighted_examples = 0.0
  
file_path: model-analysis/tensorflow_model_analysis/metrics/squared_pearson_correlation.py
imports: from typing import Dict, Iterable, Optional
  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
label_desc: Use image node_id 1 to create a new _SquaredPearsonCorrelationAccumulator object  with example: obj = _SquaredPearsonCorrelationAccumulator()