From 5ce0c30b73b8871234155b0c7adf410f39c09008 Mon Sep 17 00:00:00 2001 From: y0z Date: Thu, 10 Oct 2024 19:59:18 +0900 Subject: [PATCH] Fix example. --- package/samplers/mocma/README.md | 2 +- package/samplers/mocma/example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, ),