avalanche.evaluation.metrics.loss_metrics

avalanche.evaluation.metrics.loss_metrics(*, minibatch=False, epoch=False, epoch_running=False, experience=False, stream=False) List[PluginMetric][source]

Helper method that can be used to obtain the desired set of plugin metrics.

Parameters
  • minibatch – If True, will return a metric able to log the minibatch loss at training time.

  • epoch – If True, will return a metric able to log the epoch loss at training time.

  • epoch_running – If True, will return a metric able to log the running epoch loss at training time.

  • experience – If True, will return a metric able to log the loss on each evaluation experience.

  • stream – If True, will return a metric able to log the loss averaged over the entire evaluation stream of experiences.

Returns

A list of plugin metrics.