def reset(self) -> None:
        """
        Resets the weights of the regressor so that it can be refit from scratch.

        """

        def weight_reset(module):
            reset_parameters = getattr(module, "reset_parameters", None)
            if reset_parameters and callable(reset_parameters):
                module.reset_parameters()

        self.model.apply(weight_reset)

        Resets the weights of the regressor so that it can be refit from scratch.

        
art/estimators/regression/pytorch.py