class avalanche.evaluation.metrics.Mean[source]

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.


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.



Creates an instance of the mean metric.


Resets the metric.


Retrieves the mean.

update(value[, weight])

Update the running mean given the value.