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.2.tar.gz (23.0 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.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: warp_tpe_sampler-0.1.2.tar.gz
  • Upload date:
  • Size: 23.0 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.2.tar.gz
Algorithm Hash digest
SHA256 3f02934da14ac3d95f4776aee5f29a9dd5d63334bee289f3dea709d434dde4a1
MD5 c43825626096b68412bea88a2b36c39c
BLAKE2b-256 40f7746d05aa237c613b3335da0c84a049311588d782dd6e95c911da6eed439b

See more details on using hashes here.

Provenance

The following attestation bundles were made for warp_tpe_sampler-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for warp_tpe_sampler-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 809dbcfe6a001b1ff1a0bd973f8d7272c07dc8d6ddb4c0cbbe47f66eab492339
MD5 c1930a048e9d929ae738cf99a511affc
BLAKE2b-256 fed9b07b291dd1b2eec737446a34e109fcaf24243ee58e35dcca78e8645f1d83

See more details on using hashes here.

Provenance

The following attestation bundles were made for warp_tpe_sampler-0.1.2-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