diff --git a/neps/optimizers/base_optimizer.py b/neps/optimizers/base_optimizer.py index 8578b090..33f1a804 100644 --- a/neps/optimizers/base_optimizer.py +++ b/neps/optimizers/base_optimizer.py @@ -6,7 +6,6 @@ from typing_extensions import Self from contextlib import contextmanager from pathlib import Path -from neps.optimizers.ask_and_tell import AskAndTellWrapper from neps.utils.types import ConfigResult, RawConfig, ERROR, ResultDict from neps.utils.files import serialize, deserialize @@ -122,6 +121,3 @@ def using_state(self, state_file: Path) -> Iterator[Self]: def is_out_of_budget(self) -> bool: """Check if the optimizer has used all of its budget, if any.""" return self.budget is not None and self.used_budget >= self.budget - - def to_ask_and_tell(self, working_dir: Path | str) -> AskAndTellWrapper: - return AskAndTellWrapper(working_dir=Path(working_dir), optimizer=self)