class_docstr: This [`Metric`](./metric.md) breaks with the typical `Metric` API and just stores values that were
  computed in some fashion outside of a `Metric`.  If you have some external code that computes
  the metric for you, for instance, you can use this to report the average result using our
  `Metric` API.
docstr: # Returns
  
  The average of all values that were passed to `__call__`.
docstr_tok: ["#","Returns","The","average","of","all","values","that","were","passed","to","`","__call__","`","."]
code: def get_metric(self, reset: bool = False):
      """
      # Returns
  
      The average of all values that were passed to `__call__`.
      """
  
      average_value = (
          self._total_value / self._count if self._count > 0 else 0.0
      )
      if reset:
          self.reset()
      return float(average_value)
  
file_path: allennlp/allennlp/training/metrics/average.py
imports: from allennlp.training.metrics.metric import Metric
  from allennlp.nn.util import dist_reduce_sum
label_desc: Use image node_id 3 for calling the Average obj's underlying member method code with example usage: obj.get_metric(reset) and returns: float