def __init__(self):
        """
        Creates an instance of the RunningEpochR2 metric.
        """

        super(RunningEpochR2, self).__init__(
            reset_at="epoch", emit_at="iteration", mode="train"
        )

        Creates an instance of the RunningEpochR2 metric.
        
avalanche/evaluation/metrics/r2.py