OptunaHub
Project description
OptunaHub
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)
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for optunahub-0.1.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 090071ca723638bd7bac897f841658fe98ea8effb577e13c39c0b7a7301a9675 |
|
MD5 | ac0f73bbda3f783dd7231884b6f7c9ac |
|
BLAKE2b-256 | cd3c6c13f43ee3281931d03cda834f59c3677da4659f05c0ee5d90be8532559f |