def clone_for_refitting(self) -> "PyTorchRegressor":
        """
        Create a copy of the regressor that can be refit from scratch. Will inherit same architecture, optimizer and
        initialization as cloned model, but without weights.

        :return: new estimator
        """
        model = copy.deepcopy(self.model)
        clone = type(self)(model, self._loss, self.input_shape, optimizer=self._optimizer)
        # reset weights
        clone.reset()
        params = self.get_params()
        del params["model"]
        clone.set_params(**params)
        return clone

        Create a copy of the regressor that can be refit from scratch. Will inherit same architecture, optimizer and
        initialization as cloned model, but without weights.

        :return: new estimator
        
art/estimators/regression/pytorch.py