avalanche.evaluation.metrics.CumulativeAccuracy

class avalanche.evaluation.metrics.CumulativeAccuracy[source]

Metric used by the CumulativeAccuracyPluginMetric, holds a dictionnary of per-task cumulative accuracies and updates the cumulative accuracy based on the classes splits provided for the growing incremental task. The update is performed as described in the paper “On the importance of cross-task features for class-incremental learning” Soutif et. al, https://arxiv.org/abs/2106.11930

__init__()[source]

Methods

__init__()

reset()

Resets the metric.

result()

Retrieves the running accuracy.

update(classes_splits, predicted_y, true_y)