Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…timization into botorch
  • Loading branch information
FilippoAiraldi committed Jun 17, 2024
2 parents 570229b + 83ea1c1 commit 3b58e13
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions benchmarking/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def run_problem(
seed: int,
csv: str,
device: str,
n_init: int | None = None,
callback: Callable[[SyntheticTestFunction], str] | None = None,
n_init: Optional[int] = None,
callback: Optional[Callable[[SyntheticTestFunction], str]] = None,
) -> None:
"""Solves the given problem with the given method, and writes the results to csv."""
# set hyperparameters
Expand Down Expand Up @@ -315,9 +315,9 @@ def run_benchmark(
seed: int,
csv: str,
device: str,
n_init: int | None = None,
setup_callback: Callable[[], None] | None = None,
save_callback: Callable[[SyntheticTestFunction], str] | None = None,
n_init: Optional[int] = None,
setup_callback: Optional[Callable[[], None]] = None,
save_callback: Optional[Callable[[SyntheticTestFunction], str]] = None,
) -> None:
"""Sets default values and then runs the given benchmarks"""
filterwarnings("ignore", "Optimization failed", module="botorch")
Expand Down Expand Up @@ -348,9 +348,9 @@ def run_benchmarks(
n_jobs: int,
csv: str,
devices: list[torch.device],
n_init: int | None = None,
setup_callback: Callable[[], None] | None = None,
save_callback: Callable[[SyntheticTestFunction], str] | None = None,
n_init: Optional[int] = None,
setup_callback: Optional[Callable[[], None]] = None,
save_callback: Optional[Callable[[SyntheticTestFunction], str]] = None,
) -> None:
"""Runs the benchmarks for the given problems, methods and horizons, repeated per
the number of trials, distributively across the given devices."""
Expand Down

0 comments on commit 3b58e13

Please sign in to comment.