Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
Remove max_concurrency from BOHB kwargs (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yard1 committed Sep 23, 2021
1 parent c7f2d75 commit dc71398
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tune_sklearn/tune_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,14 +731,8 @@ def _tune_run(self, config, resources_per_trial, tune_params=None):
elif self.search_optimization == "bohb":
if override_search_space:
search_space = self._get_bohb_config_space()
if self.seed:
warnings.warn("'seed' is not implemented for BOHB.")
if "max_concurrent" not in search_kwargs and isinstance(
self.n_jobs, int) and self.n_jobs > 0:
search_kwargs["max_concurrent"] = self.n_jobs
search_algo = TuneBOHB(space=search_space, **search_kwargs)
# search_algo = TuneBOHB(
# space=search_space, seed=self.seed, **search_kwargs)
search_algo = TuneBOHB(
space=search_space, seed=self.seed, **search_kwargs)
run_args["search_alg"] = search_algo

elif self.search_optimization == "optuna":
Expand Down

0 comments on commit dc71398

Please sign in to comment.