Skip to content

Commit

Permalink
Merge pull request #163 from y0z/feature/autosampler
Browse files Browse the repository at this point in the history
Fix example for MO-CMA-ES
  • Loading branch information
not522 authored Oct 11, 2024
2 parents 8ff7188 + 5ce0c30 commit f806fbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/samplers/mocma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def objective(trial: optuna.Trial) -> tuple[float, float]:
return v0, v1

samplers = [
optunahub.load_local_module("samplers/mocma", registry_root="package").MoCmaSampler(popsize=100, seed=42),
optunahub.load_module("samplers/mocma").MoCmaSampler(popsize=100, seed=42),
optuna.samplers.NSGAIISampler(population_size=100, seed=42),
]
studies = []
Expand Down
2 changes: 1 addition & 1 deletion package/samplers/mocma/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def objective(trial: optuna.Trial) -> tuple[float, float]:
return v0, v1

samplers = [
optunahub.load_local_module("samplers/mocma", registry_root="package").MoCmaSampler(
optunahub.load_module("samplers/mocma").MoCmaSampler(
popsize=100,
seed=42,
),
Expand Down

0 comments on commit f806fbb

Please sign in to comment.