optuna-worker
optuna-worker is a python package to help using optuna without code modification to existing ML training project, with two assumptions.
- You could pass hyperparameters to your trainer via cli arguments.
- 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
- Creates a training subprocess, passing suggested parameters via CLI arguments.
- 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)
| File | Size | Uploaded | |
|---|---|---|---|
| optuna_worker-0.1.0.tar.gz | 13.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|