def model_adaptation(self, model=None):
        """Adapts the model to the current data.

        Calls the :class:`~avalanche.models.DynamicModule`s adaptation.
        """
        if model is None:
            model = self.model

        for module in model.modules():
            if isinstance(module, DynamicModule):
                module.adaptation(self.experience)
        return model.to(self.device)
Adapts the model to the current data.

        Calls the :class:`~avalanche.models.DynamicModule`s adaptation.
        
tests/training/test_supervised_regression.py