class_docstr: The standalone mean metric.
  
  This utility metric is a general purpose metric that can be used to keep
  track of the mean of a sequence of values.
class_docstr_tok: ["The","standalone","mean","metric",".","This","utility","metric","is","a","general","purpose","metric","that","can","be","used","to","keep","track","of","the","mean","of","a","sequence","of","values","."]
docstr: Creates an instance of the mean metric.
  
  This metric in its initial state will return a mean value of 0.
  The metric can be updated by using the `update` method while the mean
  can be retrieved using the `result` method.
docstr_tok: ["Creates","an","instance","of","the","mean","metric",".","This","metric","in","its","initial","state","will","return","a","mean","value","of","0",".","The","metric","can","be","updated","by","using","the","`","update","`","method","while","the","mean","can","be","retrieved","using","the","`","result","`","method","."]
code: def __init__(self):
      """
      Creates an instance of the mean metric.
  
      This metric in its initial state will return a mean value of 0.
      The metric can be updated by using the `update` method while the mean
      can be retrieved using the `result` method.
      """
      self.summed: float = 0.0
      self.weight: float = 0.0
  
file_path: avalanche/avalanche/evaluation/metrics/mean.py
imports: from typing import SupportsFloat
  from avalanche.evaluation import Metric
label_desc: Use image node_id 1 to create a new Mean object from inherited base classes: Metric with example: obj = Mean()