Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OptunaHub

Python GitHub license

NOTICE: OptunaHub is under development and all features are experimental. API may change in the future.

Python Library to use packages published in OptunaHub Registry.

Install

Install optunahub package.

pip install optunahub

Documentation

Example

import optunahub
import optuna


def objective(trial: optuna.Trial) -> float:
    x = trial.suggest_float("x", 0, 1)

    return x


if __name__ == "__main__":
    mod = optunahub.load_module("samplers/simulated_annealing")

    sampler = mod.SimulatedAnnealingSampler()
    study = optuna.create_study(sampler=sampler)
    study.optimize(objective, n_trials=20)

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

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.1.0a0.tar.gz (6.4 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.1.0a0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file optunahub-0.1.0a0.tar.gz.

File metadata

  • Download URL: optunahub-0.1.0a0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.7

File hashes

Hashes for optunahub-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 331c1c987ed7549e2f7315519cf69eac6ec73eb09ee35e41247bc70902a031db
MD5 fd24518fc525ccd33b6dc9684e0ebf4a
BLAKE2b-256 555d9e1475729029369099002028112a223d24707ab4ab73de12dcc2064494cb

See more details on using hashes here.

File details

Details for the file optunahub-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: optunahub-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.7

File hashes

Hashes for optunahub-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 090071ca723638bd7bac897f841658fe98ea8effb577e13c39c0b7a7301a9675
MD5 ac0f73bbda3f783dd7231884b6f7c9ac
BLAKE2b-256 cd3c6c13f43ee3281931d03cda834f59c3677da4659f05c0ee5d90be8532559f

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