class_docstr: All metrics used in CLEAR paper.
  More information can be found at:
  https://clear-benchmark.github.io/
class_docstr_tok: ["All","metrics","used","in","CLEAR","paper",".","More","information","can","be","found","at",":","https",":","\/\/clear-benchmark.github.io\/"]
docstr: Upper trianglar average
  Evaluate generalization to all future task
docstr_tok: ["Upper","trianglar","average","Evaluate","generalization","to","all","future","task"]
code: def forward_transfer(self, matrix):
      """
      Upper trianglar average
      Evaluate generalization to all future task
      """
      r, _ = matrix.shape
      res = [matrix[i, j] for i in range(r) for j in range(i + 1, r)]
      return sum(res) / len(res)
  
file_path: avalanche/avalanche/benchmarks/classic/clear.py
imports: from pathlib import Path
  from typing import Sequence, Union, Any, Optional
  from avalanche.benchmarks.datasets.clear import _CLEARImage, _CLEARFeature, SEED_LIST, CLEAR_FEATURE_TYPES, _CLEAR_DATA_SPLITS
  from avalanche.benchmarks.scenarios.deprecated.generic_benchmark_creation import create_generic_benchmark_from_paths, create_generic_benchmark_from_tensor_lists
label_desc: Use image node_id 6 for calling the CLEARMetric obj's underlying member method code with example usage: obj.forward_transfer(matrix) and returns: unknown