avalanche.evaluation.metrics.BWT

class avalanche.evaluation.metrics.BWT[source]

The standalone Backward Transfer metric. This metric returns the backward transfer relative to a specific key. Alternatively, this metric returns a dict in which each key is associated to the backward transfer. Backward transfer is computed as the difference between the last value recorded for a specific key and the first value recorded for that key. The value associated to a key can be update with the update method.

At initialization, this metric returns an empty dictionary.

__init__()

Creates an instance of the standalone Forgetting metric

Methods

__init__()

Creates an instance of the standalone Forgetting metric

reset()

Resets the metric internal state.

reset_last()

result()

Backward Transfer is returned only for keys encountered twice.

result_key(k)

Backward Transfer is returned only for keys encountered twice.

update(k, v[, initial])

update_initial(k, v)

update_last(k, v)

Attributes

initial

The initial value for each key.

last

The last value detected for each key