class_docstr: Class for obtaining an Accuracy Matrix for the evaluation stream
class_docstr_tok: ["Class","for","obtaining","an","Accuracy","Matrix","for","the","evaluation","stream"]
docstr: Packages the metric result.
  
  :param strategy: The strategy object associated with the stream.
  :return: The metric result. As a MetricValue object.
docstr_tok: ["Packages","the","metric","result",".",":","param","strategy",":","The","strategy","object","associated","with","the","stream",".",":","return",":","The","metric","result",".","As","a","MetricValue","object","."]
code: def _package_result(
      self, strategy: "SupervisedTemplate"
  ) -> "MetricResult":
      """Packages the metric result.
  
      :param strategy: The strategy object associated with the stream.
      :return: The metric result. As a MetricValue object.
      """
      metric_value = self.result(strategy)
      plot_x_position = strategy.clock.train_iterations
      metric_name = "EvalStream/Acc_Matrix"
  
      return [
          MetricValue(self, metric_name, metric_value, plot_x_position)
      ]
  
file_path: avalanche/avalanche/evaluation/metrics/acc_matrix.py
imports: import torch
  from typing import List
  from avalanche.evaluation import PluginMetric
  from avalanche.evaluation.metric_results import MetricValue, MetricResult
  from avalanche.evaluation.metrics.accuracy import Accuracy
  from avalanche.training.templates import SupervisedTemplate
label_desc: Use image node_id 6 for calling the AccuracyMatrixPluginMetric obj's underlying member method code with example usage: obj._package_result(strategy) and returns: list