diff --git a/package/samplers/mocma/README.md b/package/samplers/mocma/README.md index cba61675..4b86d467 100644 --- a/package/samplers/mocma/README.md +++ b/package/samplers/mocma/README.md @@ -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 = [] diff --git a/package/samplers/mocma/example.py b/package/samplers/mocma/example.py index f3adac6f..4bba35e1 100644 --- a/package/samplers/mocma/example.py +++ b/package/samplers/mocma/example.py @@ -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, ),