class_docstr: A mutable class that allows us to aggregate values and report mean/stddev.
class_docstr_tok: ["A","mutable","class","that","allows","us","to","aggregate","values","and","report","mean\/stddev","."]
docstr: Return a version of the stat that only has the mean.
docstr_tok: ["Return","a","version","of","the","stat","that","only","has","the","mean","."]
code: def take_mean(self):
      """Return a version of the stat that only has the mean."""
      if self.count == 0:
          return self
      return Stat(self.name).add(self.mean)
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/metrics/statistic.py
imports: from dataclasses import dataclass, replace
  import math
  from typing import Dict, Optional
  from .metric_name import MetricName
label_desc: Use image node_id 9 for calling the Stat obj's underlying member method code with example usage: obj.take_mean() and returns: Stat, self