def clone_for_refitting(self) -> "ScikitlearnClassifier":
        """
        Create a copy of the classifier that can be refit from scratch.

        :return: new estimator
        """
        import sklearn

        clone = type(self)(sklearn.base.clone(self.model))
        params = self.get_params()
        del params["model"]
        clone.set_params(**params)
        return clone

        Create a copy of the classifier that can be refit from scratch.

        :return: new estimator
        
art/estimators/classification/scikitlearn.py