avalanche.evaluation.metrics.TaskAwareAccuracy
- class avalanche.evaluation.metrics.TaskAwareAccuracy[source]
The task-aware Accuracy metric.
The metric computes a dictionary of <task_label, accuracy value> pairs. update/result/reset methods are all task-aware.
See
avalanche.evaluation.Accuracyfor the documentation about the Accuracy metric.Methods
__init__()Creates an instance of the task-aware Accuracy metric.
reset([task_label])Resets the metric.
result([task_label])Retrieves the running accuracy.
update(predicted_y, true_y, task_labels)Update the running accuracy given the true and predicted labels.