avalanche.evaluation.metrics.Mean

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.

__init__()[source]

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.

Methods

__init__()

Creates an instance of the mean metric.

reset()

Resets the metric.

result()

Retrieves the mean.

update(value[, weight])

Update the running mean given the value.