Skip to content

Commit

Permalink
remove nevergradsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
erwulff committed Feb 8, 2024
1 parent e2ac610 commit b8e7f3a
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions mlpf/raytune/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from ray.tune.search.bayesopt import BayesOptSearch
from ray.tune.search.bohb import TuneBOHB
from ray.tune.search.hyperopt import HyperOptSearch
from ray.tune.search.nevergrad import NevergradSearch
from ray.tune.search.skopt import SkOptSearch

# from ray.tune.search.hebo import HEBOSearch # HEBO is not yet supported
Expand Down Expand Up @@ -60,18 +59,6 @@ def get_raytune_search_alg(raytune_cfg, seeds=False):
mode=raytune_cfg["default_mode"],
convert_to_python=True,
)
if raytune_cfg["search_alg"] == "nevergrad":
print("INFO: Using bayesian optimization from nevergrad")
import nevergrad as ng

return NevergradSearch(
optimizer=ng.optimizers.BayesOptim(
pca=False,
init_budget=raytune_cfg["nevergrad"]["n_random_steps"],
),
metric=raytune_cfg["default_metric"],
mode=raytune_cfg["default_mode"],
)
# HEBO is not yet supported
# if (raytune_cfg["search_alg"] == "hebo") or (raytune_cfg["search_alg"] == "HEBO"):
# print("Using HEBOSearch")
Expand Down

0 comments on commit b8e7f3a

Please sign in to comment.