Skip to main content

OptunaHub: A Platform for Black-Box Optimization

OptunaHub

Python pypi GitHub license Codecov

:link: OptunaHub | :page_with_curl: Docs | :book: Tutorials | :question: FAQ | Optuna.org

OptunaHub is a platform for black-box optimizaiton. On the basis of Optuna, a powerful and flexible black-box optimization framework, OptunaHub provides implementations of state-of-the-art optimization algorithms and visualization of optimization results for analysis. You can also publish your algorithm implementation on the platform and make it available to Optuna users around the world.

This is the repository of the optunahub Python Library to use packages published in OptunaHub. If you would like to register your package in OptunaHub, please contribute by creating a pull request to the optunahub-registry repository.

:loudspeaker: News

Installation

OptunaHub is available at the Python Package Index. Linux, macOS, and Windows platforms are supported.

pip install optunahub

It is also available at conda-forge.

conda install -c conda-forge optunahub

Example

You only need to search for the desired function on the OptunaHub website and call the optunahub.load_module function in your code to incorporate it.

import optuna
import optunahub


def objective(trial: optuna.Trial) -> float:
  x = trial.suggest_float("x", -5, 5)
  y = trial.suggest_float("y", -5, 5)
  return x**2 + y**2


module = optunahub.load_module(package="samplers/auto_sampler")
study = optuna.create_study(sampler=module.AutoSampler())
study.optimize(objective, n_trials=10)

print(study.best_trial.value, study.best_trial.params)

Contribution

Any contributions to OptunaHub are more than welcome!

OptunaHub is composed of the following three related repositories. Please contribute to the appropriate repository for your purposes.

  • optunahub (this repository)
    • The python library to use OptunaHub. If you find issues and/or bugs in the optunahub library, please report it here via Github issues.
  • optunahub-registry
    • The registry of the OptunaHub packages. If you are interested in registering your package with OptunaHub, please contribute to this repository. For general guidelines on how to contribute to the repository, take a look at CONTRIBUTING.md.
  • optunahub-web
    • The web frontend for OptunaHub. If you find issues and/or bugs on the website, please report it here via GitHub issues.

License

MIT License (see LICENSE).

Citation

Please cite the OptunaHub paper with the following format when you use it in your project:

@article{ozaki2025optunahub,
  title={{OptunaHub}: A Platform for Black-Box Optimization},
  author={Ozaki, Yoshihiko and Watanabe, Shuhei and Yanase, Toshihiko},
  journal={arXiv preprint arXiv:2510.02798},
  year={2025}
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optunahub-0.4.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

optunahub-0.4.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file optunahub-0.4.1.tar.gz.

File metadata

  • Download URL: optunahub-0.4.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for optunahub-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f6bfed96896c995518b263c8e5f628ec6727323488b2e74bc9c588cd7cc323aa
MD5 9dcac1c37aefde7acd202931a4a72520
BLAKE2b-256 6c3729edc543fff0efdce54f44d8c701d9ca039deabfa6b0310e0da0c424096b

See more details on using hashes here.

File details

Details for the file optunahub-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: optunahub-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for optunahub-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b319f7e39c69b416883c5dfd28afa5ef6bddedc63454032721d2f30ddf4197
MD5 1a4033c86c8e568efef50e0b34b77315
BLAKE2b-256 967ea6c75714e5fcef22629f76509d61cfdd365a87500ec38218a1da2239548b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page