Skip to main content

OptunaHub: A Platform for Black-Box Optimization

OptunaHub

Python pypi GitHub license

: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{ozaki2026optunahub,
  title={{OptunaHub}: A Platform for Black-Box Optimization},
  author={Ozaki, Yoshihiko and Watanabe, Shuhei and Yanase, Toshihiko},
  journal={Journal of Machine Learning Research},
  volume={27},
  number={203},
  pages={1--10},
  year={2026},
  url={https://www.jmlr.org/papers/v27/25-2424.html}
}

Release files for optunahub 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for optunahub 0.5.0
File Size Uploaded
optunahub-0.5.0.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for optunahub 0.5.0
File Interpreter ABI Platform
optunahub-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 26.7 kB

Release files / optunahub-0.5.0.tar.gz

Download URL optunahub-0.5.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8b8033c2c5e01b4ba623ab4e26ef3a81e8b92e874c02a0252d3347cc8ed07e77
BLAKE2b-256 checksum
How to use checksums
2dfd03787e6a2f1b359edefba15d8cde9292d9eb64a7869643396d682429c2b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Release files / optunahub-0.5.0-py3-none-any.whl

Download URL optunahub-0.5.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
407df709bab1a4f2009883fbcb33e15fc9832c9b40b263cdb3ce8e89163a79e6
BLAKE2b-256 checksum
How to use checksums
c036d0d8f91fad43a047f9f8b599d29c3cb5c65e6011a82dd49cd22047965c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page