def _validate_estimator(self):
        """Validate the estimator created in the ENN."""
        self.nn_ = check_neighbors_object(
            "n_neighbors", self.n_neighbors, additional_neighbor=1
        )
        self.nn_.set_params(**{"n_jobs": self.n_jobs})
Validate the estimator created in the ENN.
imblearn/under_sampling/_prototype_selection/_edited_nearest_neighbours.py