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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0641aa332d267e498dcb53807e695e03a89b6e379458e4a7b8c6188b43f5958c
|
|
| MD5 |
5b8c267ca0a31c01c84440cc46f63a51
|
|
| BLAKE2b-256 |
8b1ee2d2f776a7db8722a1890867fb61c8a7e33c5d4a11ac910f1fc5324ce367
|
Provenance
The following attestation bundles were made for warp_tpe_sampler-0.1.1.tar.gz:
Publisher:
publish.yml on TovarnovM/warp_tpe_sampler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
warp_tpe_sampler-0.1.1.tar.gz -
Subject digest:
0641aa332d267e498dcb53807e695e03a89b6e379458e4a7b8c6188b43f5958c - Sigstore transparency entry: 850024528
- Sigstore integration time:
-
Permalink:
TovarnovM/warp_tpe_sampler@2bf51e112bf68ed1c0c8c7b95294eb53be91b52b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TovarnovM
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2bf51e112bf68ed1c0c8c7b95294eb53be91b52b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file warp_tpe_sampler-0.1.1-py3-none-any.whl.
File metadata
- Download URL: warp_tpe_sampler-0.1.1-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
939490fc9d3c94c169c9faf606ab84cf2b517c6089539fc8bc704e5f580631d0
|
|
| MD5 |
7773cbb3176ef1ce9a5d1ea55bef9f60
|
|
| BLAKE2b-256 |
ec1b0084760868be773c3d9806010bb9468df0eb8baa7b38140adf4a58ab7db4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
warp_tpe_sampler-0.1.1-py3-none-any.whl -
Subject digest:
939490fc9d3c94c169c9faf606ab84cf2b517c6089539fc8bc704e5f580631d0 - Sigstore transparency entry: 850024532
- Sigstore integration time:
-
Permalink:
TovarnovM/warp_tpe_sampler@2bf51e112bf68ed1c0c8c7b95294eb53be91b52b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/TovarnovM
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2bf51e112bf68ed1c0c8c7b95294eb53be91b52b -
Trigger Event:
workflow_dispatch
-
Statement type: