class_docstr: Computes squared pearson correlation (r^2) metric.
class_docstr_tok: ["Computes","squared","pearson","correlation","(","r^2",")","metric","."]
code: def create_accumulator(self) -> _SquaredPearsonCorrelationAccumulator:
      return _SquaredPearsonCorrelationAccumulator()
  
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 2 for calling the _SquaredPearsonCorrelationCombiner obj's underlying member method code with example usage: obj.create_accumulator() and returns: _SquaredPearsonCorrelationAccumulator