Skip to main content

Optuna Worker

Project description

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.

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

optuna_worker-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

optuna_worker-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for optuna_worker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2a67a518d893c94cf3d3359c0b0f383b1c83db15d63f61347c78776ecf4d0858
MD5 4cad545c0c33823ae285f6a0d812be89
BLAKE2b-256 9ee983beb092cf6992f8bad62400d6fe54cd57040ce382b80e0091ab500e8e07

See more details on using hashes here.

File details

Details for the file optuna_worker-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for optuna_worker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b691d8385f59fdd16b904fc79e86c8e1f22193d1af2b2e559e8194894743c2f6
MD5 0b446e866134c20e5bb5a2b5bfc20e3b
BLAKE2b-256 297393f8bafa6bcdd74cd80c8a77348a79a6a82538196aaa0e610025e8e89fe3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page