Skip to main content

Dask-Optuna

Tests Documentation Pre-commit

Dask-Optuna helps improve integration between Optuna and Dask by leveraging Optuna's existing distributed optimization capabilities to run optimization trials in parallel on a Dask cluster. It does this by providing a Dask-compatible dask_optuna.DaskStorage storage class which wraps an Optuna storage class (e.g. Optuna's in-memory or sqlite storage) and can be used directly by Optuna. For example:

import optuna
import joblib
import dask.distributed
import dask_optuna

def objective(trial):
    x = trial.suggest_uniform("x", -10, 10)
    return (x - 2) ** 2

with dask.distributed.Client() as client:
    # Create a study using Dask-compatible storage
    storage = dask_optuna.DaskStorage()
    study = optuna.create_study(storage=storage)
    # Optimize in parallel on your Dask cluster
    with joblib.parallel_backend("dask"):
        study.optimize(objective, n_trials=100, n_jobs=-1)
    print(f"best_params = {study.best_params}")

Documentation

See the Dask-Optuna documentation for more information.

License

MIT License

Metadata

Release files for dask-optuna 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dask-optuna 0.0.2
File Size Uploaded Provenance Actions
dask-optuna-0.0.2.tar.gz 26.6 kB Without provenance Details for dask-optuna-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dask-optuna 0.0.2
File Interpreter ABI Platform Actions
dask_optuna-0.0.2-py3-none-any.whl Python 3 none any Details for dask_optuna-0.0.2-py3-none-any.whl

Total release size: 35.7 kB

Release files / dask-optuna-0.0.2.tar.gz

Download URL dask-optuna-0.0.2.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
242fd77505d042315ea43cc81e604902021329378ba76aab21420df1a028fb09
BLAKE2b-256 checksum
How to use checksums
2a2278e8be7fea557a78e8323bb8af3818b07ecd364c8e4335bfbd3fb67fbf38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

Release files / dask_optuna-0.0.2-py3-none-any.whl

Download URL dask_optuna-0.0.2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a069dd4381d58bf5a66b6629378c3a2940a1392728e86f78aac9e7485eab2981
BLAKE2b-256 checksum
How to use checksums
737c75631fa55c7263334131a4e7e043e968090d7175d7b49be56d8bc0f470d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

Security for dask-optuna 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page