class_docstr: The standalone sum metric.
  
  This utility metric is a general purpose metric that can be used to keep
  track of the sum of a sequence of values.
  
  Beware that this metric only supports summing numbers and the result is
  always a float value, even when `update` is called by passing `int` only.
class_docstr_tok: ["The","standalone","sum","metric",".","This","utility","metric","is","a","general","purpose","metric","that","can","be","used","to","keep","track","of","the","sum","of","a","sequence","of","values",".","Beware","that","this","metric","only","supports","summing","numbers","and","the","result","is","always","a","float","value",",","even","when","`","update","`","is","called","by","passing","`","int","`","only","."]
docstr: Creates an instance of the sum metric.
  
  This metric in its initial state will return a sum value of 0.
  The metric can be updated by using the `update` method while the sum
  can be retrieved using the `result` method.
docstr_tok: ["Creates","an","instance","of","the","sum","metric",".","This","metric","in","its","initial","state","will","return","a","sum","value","of","0",".","The","metric","can","be","updated","by","using","the","`","update","`","method","while","the","sum","can","be","retrieved","using","the","`","result","`","method","."]
code: def __init__(self):
      """
      Creates an instance of the sum metric.
  
      This metric in its initial state will return a sum value of 0.
      The metric can be updated by using the `update` method while the sum
      can be retrieved using the `result` method.
      """
      self.summed: 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 Sum object from inherited base classes: Metric with example: obj = Sum()