def base_estimator_(self):
        """Attribute for older sklearn version compatibility."""
        error = AttributeError(
            f"{self.__class__.__name__} object has no attribute 'base_estimator_'."
        )
        raise error
Attribute for older sklearn version compatibility.
imblearn/ensemble/_bagging.py