def __init__(self, classes=None):
        """
        Creates an instance of the MinibatchClassAccuracy metric.
        """
        super().__init__(
            reset_at="iteration",
            emit_at="iteration",
            mode="train",
            classes=classes,
        )

        Creates an instance of the MinibatchClassAccuracy metric.
        
avalanche/evaluation/metrics/class_accuracy.py