def __init__(self):
        """Creates an instance of the task-aware R2 metric."""
        self._mean_R2 = defaultdict(R2)
        """
        The mean utility that will be used to store the running R2
        for each task label.
        """
Creates an instance of the task-aware R2 metric.
avalanche/evaluation/metrics/r2.py