Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Nov 22, 2024
1 parent ea70e5f commit e75c251
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/samplers/nsgaii_with_tpe_warmup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def objective(trial: optuna.Trial) -> tuple[float, float]:

package_name = "samplers/nsgaii_with_tpe_warmup"
sampler = optunahub.load_module(package=package_name).NSGAIIWithTPEWarmupSampler()
study = optuna.create_study(sampler=sampler)
study = optuna.create_study(sampler=sampler, directions=["minimize"]*2)
study.optimize(objective, n_trials=60)

```
2 changes: 1 addition & 1 deletion package/samplers/nsgaii_with_tpe_warmup/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def objective(trial: optuna.Trial) -> tuple[float, float]:

package_name = "samplers/nsgaii_with_tpe_warmup"
sampler = optunahub.load_module(package=package_name).NSGAIIWithTPEWarmupSampler()
study = optuna.create_study(sampler=sampler)
study = optuna.create_study(sampler=sampler, directions=["minimize"] * 2)
study.optimize(objective, n_trials=60)

0 comments on commit e75c251

Please sign in to comment.