avalanche.evaluation.metrics.MeanScoresEvalPluginMetric

class avalanche.evaluation.metrics.MeanScoresEvalPluginMetric(image_creator: typing.Optional[typing.Callable[[typing.Dict[typing.Literal['new', 'old'], typing.Dict[int, int]]], matplotlib.figure.Figure]] = <function default_mean_scores_image_creator>)[source]
Plugin to show the scores of the true class during evaluation, averaged by

new and old classes.

__init__(image_creator: typing.Optional[typing.Callable[[typing.Dict[typing.Literal['new', 'old'], typing.Dict[int, int]]], matplotlib.figure.Figure]] = <function default_mean_scores_image_creator>)

Creates an instance of a plugin metric.

Child classes can safely invoke this (super) constructor as the first experience.

Methods

__init__([image_creator])

Creates an instance of a plugin metric.

after_backward(strategy)

Called after criterion.backward() by the BaseStrategy.

after_eval(strategy)

Called after eval by the BaseStrategy.

after_eval_dataset_adaptation(strategy)

Called after eval_dataset_adaptation by the BaseStrategy.

after_eval_exp(strategy)

Called after eval_exp by the BaseStrategy.

after_eval_forward(strategy)

Called after model.forward() by the BaseStrategy.

after_eval_iteration(strategy)

Called after the end of an iteration by the BaseStrategy.

after_forward(strategy)

Called after model.forward() by the BaseStrategy.

after_train_dataset_adaptation(strategy)

Called after train_dataset_adapatation by the BaseStrategy.

after_training(strategy)

Called after train by the BaseStrategy.

after_training_epoch(strategy)

Called after train_epoch by the BaseStrategy.

after_training_exp(strategy)

Called after train_exp by the BaseStrategy.

after_training_iteration(strategy)

Called after the end of a training iteration by the BaseStrategy.

after_update(strategy)

Called after optimizer.update() by the BaseStrategy.

before_backward(strategy)

Called before criterion.backward() by the BaseStrategy.

before_eval(strategy)

Called before eval by the BaseStrategy.

before_eval_dataset_adaptation(strategy)

Called before eval_dataset_adaptation by the BaseStrategy.

before_eval_exp(strategy)

Called before eval_exp by the BaseStrategy.

before_eval_forward(strategy)

Called before model.forward() by the BaseStrategy.

before_eval_iteration(strategy)

Called before the start of a training iteration by the BaseStrategy.

before_forward(strategy)

Called before model.forward() by the BaseStrategy.

before_train_dataset_adaptation(strategy)

Called before train_dataset_adapatation by the BaseStrategy.

before_training(strategy)

Called before train by the BaseStrategy.

before_training_epoch(strategy)

Called before train_epoch by the BaseStrategy.

before_training_exp(strategy)

Called before train_exp by the BaseStrategy.

before_training_iteration(strategy)

Called before the start of a training iteration by the BaseStrategy.

before_update(strategy)

Called before optimizer.update() by the BaseStrategy.

reset()

Resets the metric internal state.

result()

Obtains the value of the metric.

update(strategy)

update_new_classes(strategy)