Skip to content

Commit

Permalink
fix(tune): using OptunaSearch instead
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaacoub committed Dec 6, 2023
1 parent f8f80f6 commit 7bf40ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions raytune.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
from ray.air import session
from ray.train.torch import TorchCheckpoint
from ray import tune
from ray.tune.search import ConcurrencyLimiter
from ray.tune.search.bayesopt import BayesOptSearch
from ray.tune.search.optuna import OptunaSearch


from src.utils.loader import Loader
Expand Down Expand Up @@ -45,7 +44,7 @@ def objective(config):
# Report metrics (and possibly a checkpoint) to Tune
session.report({"mean_loss": loss}, checkpoint=checkpoint)

algo = BayesOptSearch(utility_kwargs={"kind": "ucb", "kappa": 2.5, "xi": 0.0})
algo = OptunaSearch()
# algo = ConcurrencyLimiter(algo, max_concurrent=4)
search_space = {
# constants:
Expand Down

0 comments on commit 7bf40ef

Please sign in to comment.