Skip to main content

OptunaHub

Project description

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. If you would like to register your package in OptunaHub, please contribute by creating a pull request to the optunahub-registry repository.

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)

Project details


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.0b0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

optunahub-0.1.0b0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optunahub-0.1.0b0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for optunahub-0.1.0b0.tar.gz
Algorithm Hash digest
SHA256 32046082cd94385e44be8c776fabb2028c5d42472498a359f22ba4272c57166e
MD5 2d2ef99502bb616e2f350c9c52781269
BLAKE2b-256 b3a3505f2b1d883b7022b84fa5f17b23af2398d9c7c99612e9dd1d37291f265f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optunahub-0.1.0b0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for optunahub-0.1.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 09f63bf60d657d1eba45a7ccc53d30c6c3637ea4d73a38ada40feaa55129e3aa
MD5 bda868444b81f91d9f7bbb9e0ffde473
BLAKE2b-256 a2b43807c3613013d4688b90b00dd03b57b1da1721be25c50ddb7be238625e7b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page