Skip to main content

OptunaHub: Feature-sharing platform for Optuna

OptunaHub

Python pypi GitHub license Codecov

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

OptunaHub is a platform for sharing algorithms in Optuna, a powerful and flexible hyperparameter 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.

pip install 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).

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.3.1.tar.gz (14.1 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.3.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for optunahub-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f9e6733267395b6989cb38b0840cacf164294025be8393d4352fcf801106fbe7
MD5 faaa31f3d14617b9a5398aa4e2f796dd
BLAKE2b-256 49a08f5e253aa5b3912f58df3037d9daab673b1217e012c514f287168b30f30f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for optunahub-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37bade84d96eb72ffe120961f332bfea5b397015c7c16186a67ebbb97343ede2
MD5 68b34c0ba4751ed786b248e938f6b285
BLAKE2b-256 5eb0c66ed1bf49feb71236ceb16095b30d7a16a59abc0c8b48226c49cedf4cf7

See more details on using hashes here.

Supported by

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