Skip to main content

optuna-worker

PyPI - Version PyPI - Python Version GitHub Super-Linter Codecov Code style: black


optuna-worker is a python package to help using optuna without code modification to existing ML training project, with two assumptions.

  1. You could pass hyperparameters to your trainer via cli arguments.
  2. Metrics to be optimized are printed out as formatted logs during training.

A CLI named optuna-worker is included in this package, which runs optuna worker with a configuration yaml file.

optuna-worker run $CONFIG_FILE

All it does is simply creating a proxy objective that

  1. Creates a training subprocess, passing suggested parameters via CLI arguments.
  2. Parses metric values from stdout of the training subprocess, so that they could be reported and returned.

Details of the configuration file could be found from the documentation. You can also find working example configuration files from examples.

Installation

pip install optuna-worker

License

optuna-worker is distributed under the terms of the MIT license.

Metadata

Release files for optuna-worker 0.1.0

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

Source distribution (sdist)

Source distribution for optuna-worker 0.1.0
File Size Uploaded
optuna_worker-0.1.0.tar.gz 13.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for optuna-worker 0.1.0
File Interpreter ABI Platform
optuna_worker-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.0 kB

Release files / optuna_worker-0.1.0.tar.gz

Download URL optuna_worker-0.1.0.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2a67a518d893c94cf3d3359c0b0f383b1c83db15d63f61347c78776ecf4d0858
BLAKE2b-256 checksum
How to use checksums
9ee983beb092cf6992f8bad62400d6fe54cd57040ce382b80e0091ab500e8e07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / optuna_worker-0.1.0-py3-none-any.whl

Download URL optuna_worker-0.1.0-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b691d8385f59fdd16b904fc79e86c8e1f22193d1af2b2e559e8194894743c2f6
BLAKE2b-256 checksum
How to use checksums
297393f8bafa6bcdd74cd80c8a77348a79a6a82538196aaa0e610025e8e89fe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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