Skip to content

Commit

Permalink
fix: Revert change from seperate feature
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Jun 10, 2024
1 parent 7cd316c commit 2f89a32
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions neps/optimizers/base_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit 2f89a32

Please sign in to comment.