From f2282f300ef3d557de18560fc2008abc8eea4c2e Mon Sep 17 00:00:00 2001 From: mamu Date: Tue, 28 May 2024 15:14:32 +0900 Subject: [PATCH] Directly import built-in features --- package/samplers/botorch_sampler/README.md | 4 ++-- package/samplers/botorch_sampler/__init__.py | 4 ---- package/samplers/brute_force/README.md | 5 ++--- package/samplers/brute_force/__init__.py | 4 ---- package/samplers/cmaes/README.md | 5 ++--- package/samplers/cmaes/__init__.py | 4 ---- package/samplers/gp/README.md | 5 ++--- package/samplers/gp/__init__.py | 4 ---- package/samplers/grid_search/README.md | 5 ++--- package/samplers/grid_search/__init__.py | 4 ---- package/samplers/nsgaii/README.md | 5 ++--- package/samplers/nsgaii/__init__.py | 4 ---- package/samplers/nsgaiii/README.md | 5 ++--- package/samplers/nsgaiii/__init__.py | 4 ---- package/samplers/partial_fixed/README.md | 5 ++--- package/samplers/partial_fixed/__init__.py | 4 ---- package/samplers/pycma/README.md | 4 ++-- package/samplers/pycma/__init__.py | 4 ---- package/samplers/qmc/README.md | 5 ++--- package/samplers/qmc/__init__.py | 4 ---- package/samplers/random_search/README.md | 5 ++--- package/samplers/random_search/__init__.py | 4 ---- package/samplers/tpe/README.md | 5 ++--- package/visualization/plot_contour/README.md | 4 ++-- package/visualization/plot_contour/__init__.py | 4 ---- package/visualization/plot_edf/README.md | 4 ++-- package/visualization/plot_edf/__init__.py | 4 ---- package/visualization/plot_hypervolume_history/README.md | 4 ++-- package/visualization/plot_hypervolume_history/__init__.py | 4 ---- package/visualization/plot_intermediate_values/README.md | 4 ++-- package/visualization/plot_intermediate_values/__init__.py | 4 ---- package/visualization/plot_optimization_history/README.md | 4 ++-- package/visualization/plot_optimization_history/__init__.py | 4 ---- package/visualization/plot_parallel_coordinate/README.md | 4 ++-- package/visualization/plot_parallel_coordinate/__init__.py | 4 ---- package/visualization/plot_param_importances/README.md | 4 ++-- package/visualization/plot_param_importances/__init__.py | 4 ---- package/visualization/plot_pareto_front/README.md | 4 ++-- package/visualization/plot_pareto_front/__init__.py | 4 ---- package/visualization/plot_rank/README.md | 4 ++-- package/visualization/plot_rank/__init__.py | 4 ---- package/visualization/plot_slice/README.md | 4 ++-- package/visualization/plot_slice/__init__.py | 4 ---- package/visualization/plot_terminator_improvement/README.md | 4 ++-- .../visualization/plot_terminator_improvement/__init__.py | 4 ---- package/visualization/plot_timeline/README.md | 4 ++-- package/visualization/plot_timeline/__init__.py | 4 ---- 47 files changed, 48 insertions(+), 150 deletions(-) delete mode 100644 package/samplers/botorch_sampler/__init__.py delete mode 100644 package/samplers/brute_force/__init__.py delete mode 100644 package/samplers/cmaes/__init__.py delete mode 100644 package/samplers/gp/__init__.py delete mode 100644 package/samplers/grid_search/__init__.py delete mode 100644 package/samplers/nsgaii/__init__.py delete mode 100644 package/samplers/nsgaiii/__init__.py delete mode 100644 package/samplers/partial_fixed/__init__.py delete mode 100644 package/samplers/pycma/__init__.py delete mode 100644 package/samplers/qmc/__init__.py delete mode 100644 package/samplers/random_search/__init__.py delete mode 100644 package/visualization/plot_contour/__init__.py delete mode 100644 package/visualization/plot_edf/__init__.py delete mode 100644 package/visualization/plot_hypervolume_history/__init__.py delete mode 100644 package/visualization/plot_intermediate_values/__init__.py delete mode 100644 package/visualization/plot_optimization_history/__init__.py delete mode 100644 package/visualization/plot_parallel_coordinate/__init__.py delete mode 100644 package/visualization/plot_param_importances/__init__.py delete mode 100644 package/visualization/plot_pareto_front/__init__.py delete mode 100644 package/visualization/plot_rank/__init__.py delete mode 100644 package/visualization/plot_slice/__init__.py delete mode 100644 package/visualization/plot_terminator_improvement/__init__.py delete mode 100644 package/visualization/plot_timeline/__init__.py diff --git a/package/samplers/botorch_sampler/README.md b/package/samplers/botorch_sampler/README.md index 1b7ee6fe..f0563db6 100644 --- a/package/samplers/botorch_sampler/README.md +++ b/package/samplers/botorch_sampler/README.md @@ -17,8 +17,8 @@ pip install optuna-integration botorch ## Example ```python -module = optunahub.load_module("samplers/botorch_sampler") -sampler = module.BoTorchSampler() +from optuna_integration import BoTorchSampler +sampler = BoTorchSampler() ``` ## Others diff --git a/package/samplers/botorch_sampler/__init__.py b/package/samplers/botorch_sampler/__init__.py deleted file mode 100644 index 4967cc34..00000000 --- a/package/samplers/botorch_sampler/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.integration import BoTorchSampler - - -__all__ = ["BoTorchSampler"] diff --git a/package/samplers/brute_force/README.md b/package/samplers/brute_force/README.md index 00c624d5..88d04c43 100644 --- a/package/samplers/brute_force/README.md +++ b/package/samplers/brute_force/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import BruteForceSampler def objective(trial): @@ -21,8 +21,7 @@ def objective(trial): return x**2 -mod = optunahub.load_module("samplers/brute_force") -sampler = mod.BruteForceSampler() +sampler = BruteForceSampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=10) ``` diff --git a/package/samplers/brute_force/__init__.py b/package/samplers/brute_force/__init__.py deleted file mode 100644 index aa56c5e2..00000000 --- a/package/samplers/brute_force/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import BruteForceSampler - - -__all__ = ["BruteForceSampler"] diff --git a/package/samplers/cmaes/README.md b/package/samplers/cmaes/README.md index caa0c25f..858a5c2a 100644 --- a/package/samplers/cmaes/README.md +++ b/package/samplers/cmaes/README.md @@ -18,7 +18,7 @@ pip install cmaes ## Example ```python import optuna -import optunahub +from optuna.samplers import CmaEsSampler def objective(trial): @@ -27,8 +27,7 @@ def objective(trial): return x**2 + y -mod = optunahub.load_module("samplers/cmaes") -sampler = mod.CmaEsSampler() +sampler = CmaEsSampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=20) ``` diff --git a/package/samplers/cmaes/__init__.py b/package/samplers/cmaes/__init__.py deleted file mode 100644 index bdbb6b16..00000000 --- a/package/samplers/cmaes/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import CmaEsSampler - - -__all__ = ["CmaEsSampler"] diff --git a/package/samplers/gp/README.md b/package/samplers/gp/README.md index 1f59a9aa..cba84ed1 100644 --- a/package/samplers/gp/README.md +++ b/package/samplers/gp/README.md @@ -18,7 +18,7 @@ pip install scipy pytorch ## Example ```python import optuna -import optunahub +from optuna.samplers import GPSampler def objective(trial): @@ -26,8 +26,7 @@ def objective(trial): return x**2 -mod = optunahub.load_module("samplers/gp") -sampler = mod.GPSampler() +sampler = GPSampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=100) ``` diff --git a/package/samplers/gp/__init__.py b/package/samplers/gp/__init__.py deleted file mode 100644 index 20772eb0..00000000 --- a/package/samplers/gp/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import GPSampler - - -__all__ = ["GPSampler"] diff --git a/package/samplers/grid_search/README.md b/package/samplers/grid_search/README.md index 82b628c3..8cdbd8fb 100644 --- a/package/samplers/grid_search/README.md +++ b/package/samplers/grid_search/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import GridSampler def objective(trial): @@ -23,8 +23,7 @@ def objective(trial): search_space = {"x": [-50, 0, 50], "y": [-99, 0, 99]} -mod = optunahub.load_module("samplers/grid_search") -sampler = mod.GridSampler(search_space) +sampler = GridSampler(search_space) study = optuna.create_study(sampler=sampler) study.optimize(objective) ``` diff --git a/package/samplers/grid_search/__init__.py b/package/samplers/grid_search/__init__.py deleted file mode 100644 index cde1ea87..00000000 --- a/package/samplers/grid_search/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import GridSampler - - -__all__ = ["GridSampler"] diff --git a/package/samplers/nsgaii/README.md b/package/samplers/nsgaii/README.md index 05240763..79ac7f27 100644 --- a/package/samplers/nsgaii/README.md +++ b/package/samplers/nsgaii/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import NSGAIISampler def objective(trial): @@ -21,8 +21,7 @@ def objective(trial): return x**2 -mod = optunahub.load_module("samplers/nsgaii") -sampler = mod.NSGAIISampler() +sampler = NSGAIISampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=10) ``` diff --git a/package/samplers/nsgaii/__init__.py b/package/samplers/nsgaii/__init__.py deleted file mode 100644 index 94e27c45..00000000 --- a/package/samplers/nsgaii/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import NSGAIISampler - - -__all__ = ["NSGAIISampler"] diff --git a/package/samplers/nsgaiii/README.md b/package/samplers/nsgaiii/README.md index f4813835..75202a0d 100644 --- a/package/samplers/nsgaiii/README.md +++ b/package/samplers/nsgaiii/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import NSGAIIISampler def objective(trial): @@ -21,8 +21,7 @@ def objective(trial): return x**2 -mod = optunahub.load_module("samplers/nsgaiii") -sampler = mod.NSGAIIISampler() +sampler = NSGAIIISampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=10) ``` diff --git a/package/samplers/nsgaiii/__init__.py b/package/samplers/nsgaiii/__init__.py deleted file mode 100644 index 4249a271..00000000 --- a/package/samplers/nsgaiii/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import NSGAIIISampler - - -__all__ = ["NSGAIIISampler"] diff --git a/package/samplers/partial_fixed/README.md b/package/samplers/partial_fixed/README.md index b9ae4a1b..45d25a05 100644 --- a/package/samplers/partial_fixed/README.md +++ b/package/samplers/partial_fixed/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import PartialFixedSampler def objective(trial): @@ -24,8 +24,7 @@ def objective(trial): tpe_sampler = optuna.samplers.TPESampler() fixed_params = {"y": 0} -mod = optunahub.load_module("samplers/partial_fixed") -partial_sampler = mod.PartialFixedSampler(fixed_params, tpe_sampler) +partial_sampler = PartialFixedSampler(fixed_params, tpe_sampler) study = optuna.create_study(sampler=partial_sampler) study.optimize(objective, n_trials=10) diff --git a/package/samplers/partial_fixed/__init__.py b/package/samplers/partial_fixed/__init__.py deleted file mode 100644 index 97b256e8..00000000 --- a/package/samplers/partial_fixed/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import PartialFixedSampler - - -__all__ = ["PartialFixedSampler"] diff --git a/package/samplers/pycma/README.md b/package/samplers/pycma/README.md index 49285fd0..a121cd0a 100644 --- a/package/samplers/pycma/README.md +++ b/package/samplers/pycma/README.md @@ -17,8 +17,8 @@ pip install optuna-integration cma ## Example ```python -module = optunahub.load_module("samplers/pycma") -sampler = module.PyCmaSampler() +from optuna_integration import PyCmaSampler +sampler = PyCmaSampler() ``` ## Others diff --git a/package/samplers/pycma/__init__.py b/package/samplers/pycma/__init__.py deleted file mode 100644 index 692e7b84..00000000 --- a/package/samplers/pycma/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.integration import PyCmaSampler - - -__all__ = ["PyCmaSampler"] diff --git a/package/samplers/qmc/README.md b/package/samplers/qmc/README.md index 5fdb268f..87688027 100644 --- a/package/samplers/qmc/README.md +++ b/package/samplers/qmc/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import QMCSampler def objective(trial): @@ -21,8 +21,7 @@ def objective(trial): return x**2 -mod = optunahub.load_module("samplers/qmc") -sampler = mod.QMCSampler() +sampler = QMCSampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=10) ``` diff --git a/package/samplers/qmc/__init__.py b/package/samplers/qmc/__init__.py deleted file mode 100644 index 74be1a4e..00000000 --- a/package/samplers/qmc/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import QMCSampler - - -__all__ = ["QMCSampler"] diff --git a/package/samplers/random_search/README.md b/package/samplers/random_search/README.md index a5e97792..93265a1a 100644 --- a/package/samplers/random_search/README.md +++ b/package/samplers/random_search/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import RandomSampler def objective(trial): @@ -21,8 +21,7 @@ def objective(trial): return x**2 -mod = optunahub.load_module("samplers/random_search") -sampler = mod.RandomSampler() +sampler = RandomSampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=10) ``` diff --git a/package/samplers/random_search/__init__.py b/package/samplers/random_search/__init__.py deleted file mode 100644 index e6aa2bf6..00000000 --- a/package/samplers/random_search/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.samplers import RandomSampler - - -__all__ = ["RandomSampler"] diff --git a/package/samplers/tpe/README.md b/package/samplers/tpe/README.md index 63986bbd..191fec52 100644 --- a/package/samplers/tpe/README.md +++ b/package/samplers/tpe/README.md @@ -13,7 +13,7 @@ license: 'MIT License' ## Example ```python import optuna -import optunahub +from optuna.samplers import TPESampler def objective(trial): @@ -21,8 +21,7 @@ def objective(trial): return x**2 -mod = optunahub.load_module("samplers/tpe") -sampler = mod.TPESampler() +sampler = TPESampler() study = optuna.create_study(sampler=sampler) study.optimize(objective, n_trials=10) ``` diff --git a/package/visualization/plot_contour/README.md b/package/visualization/plot_contour/README.md index acf06b87..1cd91805 100644 --- a/package/visualization/plot_contour/README.md +++ b/package/visualization/plot_contour/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_contour") -mod.plot_contour(study) +from optuna.visualization import plot_contour +plot_contour(study) ``` ## Others diff --git a/package/visualization/plot_contour/__init__.py b/package/visualization/plot_contour/__init__.py deleted file mode 100644 index a68de8e3..00000000 --- a/package/visualization/plot_contour/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_contour - - -__all__ = ["plot_contour"] diff --git a/package/visualization/plot_edf/README.md b/package/visualization/plot_edf/README.md index dc3bcca7..e81d0c10 100644 --- a/package/visualization/plot_edf/README.md +++ b/package/visualization/plot_edf/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_edf") -mod.plot_edf(study) +from optuna.visualization import plot_edf +plot_edf(study) ``` ## Others diff --git a/package/visualization/plot_edf/__init__.py b/package/visualization/plot_edf/__init__.py deleted file mode 100644 index 3d520fb9..00000000 --- a/package/visualization/plot_edf/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_edf - - -__all__ = ["plot_edf"] diff --git a/package/visualization/plot_hypervolume_history/README.md b/package/visualization/plot_hypervolume_history/README.md index c4bf3a89..d787ae4e 100644 --- a/package/visualization/plot_hypervolume_history/README.md +++ b/package/visualization/plot_hypervolume_history/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_hypervolume_history") -mod.plot_hypervolume_history(study, reference_point) +from optuna.visualization import plot_hypervolume_history +plot_hypervolume_history(study, reference_point) ``` ## Others diff --git a/package/visualization/plot_hypervolume_history/__init__.py b/package/visualization/plot_hypervolume_history/__init__.py deleted file mode 100644 index bd17ef1f..00000000 --- a/package/visualization/plot_hypervolume_history/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_hypervolume_history - - -__all__ = ["plot_hypervolume_history"] diff --git a/package/visualization/plot_intermediate_values/README.md b/package/visualization/plot_intermediate_values/README.md index 924010a0..61a6d499 100644 --- a/package/visualization/plot_intermediate_values/README.md +++ b/package/visualization/plot_intermediate_values/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_intermediate_values") -mod.plot_intermediate_values(study) +from optuna.visualization import plot_intermediate_values +plot_intermediate_values(study) ``` ## Others diff --git a/package/visualization/plot_intermediate_values/__init__.py b/package/visualization/plot_intermediate_values/__init__.py deleted file mode 100644 index 9276d6be..00000000 --- a/package/visualization/plot_intermediate_values/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_intermediate_values - - -__all__ = ["plot_intermediate_values"] diff --git a/package/visualization/plot_optimization_history/README.md b/package/visualization/plot_optimization_history/README.md index 5c1cdd28..eaa4c3db 100644 --- a/package/visualization/plot_optimization_history/README.md +++ b/package/visualization/plot_optimization_history/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_optimization_history") -mod.plot_optimization_history(study) +from optuna.visualization import plot_optimization_history +plot_optimization_history(study) ``` ## Others diff --git a/package/visualization/plot_optimization_history/__init__.py b/package/visualization/plot_optimization_history/__init__.py deleted file mode 100644 index 98014ef9..00000000 --- a/package/visualization/plot_optimization_history/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_optimization_history - - -__all__ = ["plot_optimization_history"] diff --git a/package/visualization/plot_parallel_coordinate/README.md b/package/visualization/plot_parallel_coordinate/README.md index a7271162..6597c59c 100644 --- a/package/visualization/plot_parallel_coordinate/README.md +++ b/package/visualization/plot_parallel_coordinate/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_parallel_coordinate") -mod.plot_parallel_coordinate(study) +from optuna.visualization import plot_parallel_coordinate +plot_parallel_coordinate(study) ``` ## Others diff --git a/package/visualization/plot_parallel_coordinate/__init__.py b/package/visualization/plot_parallel_coordinate/__init__.py deleted file mode 100644 index 5ca2f64b..00000000 --- a/package/visualization/plot_parallel_coordinate/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_parallel_coordinate - - -__all__ = ["plot_parallel_coordinate"] diff --git a/package/visualization/plot_param_importances/README.md b/package/visualization/plot_param_importances/README.md index 5a9d95c4..10c71c38 100644 --- a/package/visualization/plot_param_importances/README.md +++ b/package/visualization/plot_param_importances/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_param_importances") -mod.plot_param_importances(study) +from optuna.visualization import plot_param_importances +plot_param_importances(study) ``` ## Others diff --git a/package/visualization/plot_param_importances/__init__.py b/package/visualization/plot_param_importances/__init__.py deleted file mode 100644 index e4fc9d72..00000000 --- a/package/visualization/plot_param_importances/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_param_importances - - -__all__ = ["plot_param_importances"] diff --git a/package/visualization/plot_pareto_front/README.md b/package/visualization/plot_pareto_front/README.md index 6ee60e18..155db160 100644 --- a/package/visualization/plot_pareto_front/README.md +++ b/package/visualization/plot_pareto_front/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_pareto_front") -mod.plot_pareto_front(study) +from optuna.visualization import plot_pareto_front +plot_pareto_front(study) ``` ## Others diff --git a/package/visualization/plot_pareto_front/__init__.py b/package/visualization/plot_pareto_front/__init__.py deleted file mode 100644 index 400c590c..00000000 --- a/package/visualization/plot_pareto_front/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_pareto_front - - -__all__ = ["plot_pareto_front"] diff --git a/package/visualization/plot_rank/README.md b/package/visualization/plot_rank/README.md index 5fc49f16..e4580acd 100644 --- a/package/visualization/plot_rank/README.md +++ b/package/visualization/plot_rank/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_rank") -mod.plot_rank(study) +from optuna.visualization import plot_rank +plot_rank(study) ``` ## Others diff --git a/package/visualization/plot_rank/__init__.py b/package/visualization/plot_rank/__init__.py deleted file mode 100644 index 833dad7b..00000000 --- a/package/visualization/plot_rank/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_rank - - -__all__ = ["plot_rank"] diff --git a/package/visualization/plot_slice/README.md b/package/visualization/plot_slice/README.md index 9aa4528a..61007350 100644 --- a/package/visualization/plot_slice/README.md +++ b/package/visualization/plot_slice/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_slice") -mod.plot_slice(study) +from optuna.visualization import plot_slice +plot_slice(study) ``` ## Others diff --git a/package/visualization/plot_slice/__init__.py b/package/visualization/plot_slice/__init__.py deleted file mode 100644 index 69e4f27e..00000000 --- a/package/visualization/plot_slice/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_slice - - -__all__ = ["plot_slice"] diff --git a/package/visualization/plot_terminator_improvement/README.md b/package/visualization/plot_terminator_improvement/README.md index 08f46207..e91bb6a5 100644 --- a/package/visualization/plot_terminator_improvement/README.md +++ b/package/visualization/plot_terminator_improvement/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_terminator_improvement") -mod.plot_terminator_improvement(study) +from optuna.visualization import plot_terminator_improvement +plot_terminator_improvement(study) ``` ## Others diff --git a/package/visualization/plot_terminator_improvement/__init__.py b/package/visualization/plot_terminator_improvement/__init__.py deleted file mode 100644 index 5643cb69..00000000 --- a/package/visualization/plot_terminator_improvement/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_terminator_improvement - - -__all__ = ["plot_terminator_improvement"] diff --git a/package/visualization/plot_timeline/README.md b/package/visualization/plot_timeline/README.md index 7106407f..ba151882 100644 --- a/package/visualization/plot_timeline/README.md +++ b/package/visualization/plot_timeline/README.md @@ -12,8 +12,8 @@ license: 'MIT License' ## Example ```python -mod = optunahub.load_module("visualization/plot_timeline") -mod.plot_timeline(study) +from optuna.visualization import plot_timeline +plot_timeline(study) ``` ## Others diff --git a/package/visualization/plot_timeline/__init__.py b/package/visualization/plot_timeline/__init__.py deleted file mode 100644 index d0d1a711..00000000 --- a/package/visualization/plot_timeline/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from optuna.visualization import plot_timeline - - -__all__ = ["plot_timeline"]