Optuna Worker
Project description
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.
Project details
Release history Release notifications | RSS feed
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 optuna_worker-0.1.0.tar.gz.
File metadata
- Download URL: optuna_worker-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a67a518d893c94cf3d3359c0b0f383b1c83db15d63f61347c78776ecf4d0858
|
|
| MD5 |
4cad545c0c33823ae285f6a0d812be89
|
|
| BLAKE2b-256 |
9ee983beb092cf6992f8bad62400d6fe54cd57040ce382b80e0091ab500e8e07
|
File details
Details for the file optuna_worker-0.1.0-py3-none-any.whl.
File metadata
- Download URL: optuna_worker-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b691d8385f59fdd16b904fc79e86c8e1f22193d1af2b2e559e8194894743c2f6
|
|
| MD5 |
0b446e866134c20e5bb5a2b5bfc20e3b
|
|
| BLAKE2b-256 |
297393f8bafa6bcdd74cd80c8a77348a79a6a82538196aaa0e610025e8e89fe3
|