Skip to main content

WarpTpeSampler: Cached TPE + embedded budget policy for Optuna

Project description

warp-tpe-sampler

WarpTpeSampler for Optuna: CachedTPESampler + embedded budget policy (refresh/freeze/random).

Install

pip install warp-tpe-sampler

Quickstart

import optuna
from warp_tpe_sampler import WarpTpeSampler, WarpTpeConfig

sampler = WarpTpeSampler(WarpTpeConfig(seed=0, n_startup_trials=20))
study = optuna.create_study(direction="minimize", sampler=sampler)

def objective(trial):
    x = trial.suggest_float("x", 0.0, 1.0)
    return (x - 0.37) ** 2

study.optimize(objective, n_trials=200, n_jobs=1)

Notes

Intended usage: n_jobs == 1.

Depends on Optuna internals; see supported Optuna versions in pyproject.toml.

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

warp_tpe_sampler-0.1.1.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

warp_tpe_sampler-0.1.1-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file warp_tpe_sampler-0.1.1.tar.gz.

File metadata

  • Download URL: warp_tpe_sampler-0.1.1.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for warp_tpe_sampler-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0641aa332d267e498dcb53807e695e03a89b6e379458e4a7b8c6188b43f5958c
MD5 5b8c267ca0a31c01c84440cc46f63a51
BLAKE2b-256 8b1ee2d2f776a7db8722a1890867fb61c8a7e33c5d4a11ac910f1fc5324ce367

See more details on using hashes here.

Provenance

The following attestation bundles were made for warp_tpe_sampler-0.1.1.tar.gz:

Publisher: publish.yml on TovarnovM/warp_tpe_sampler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file warp_tpe_sampler-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for warp_tpe_sampler-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 939490fc9d3c94c169c9faf606ab84cf2b517c6089539fc8bc704e5f580631d0
MD5 7773cbb3176ef1ce9a5d1ea55bef9f60
BLAKE2b-256 ec1b0084760868be773c3d9806010bb9468df0eb8baa7b38140adf4a58ab7db4

See more details on using hashes here.

Provenance

The following attestation bundles were made for warp_tpe_sampler-0.1.1-py3-none-any.whl:

Publisher: publish.yml on TovarnovM/warp_tpe_sampler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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