Skip to main content

training_cfgs

Standalone config manager migrated from svaichu/robotdataset: a fluent, self-learning Config object for training runs, with typed CLI overrides, W&B sweep export, and two-way Optuna integration — all driven by the same schema.

Install

pyyaml and optuna are core dependencies — a plain install always gets YAML config loading and Optuna support, no extras to remember:

pip install -e .          # pulls in pyyaml + optuna
pip install -e ".[dev]"   # + pytest, for running the test suite

Quick start

from optuna.distributions import CategoricalDistribution, FloatDistribution
from training_cfgs import Config

cfg = Config.from_file("config.yaml")
cfg.set_distribution("training", "learning_rate", FloatDistribution(1e-5, 1e-2, log=True))
cfg.set_distribution("training", "optimizer", CategoricalDistribution(["adam", "sgd"]))

# W&B sweep export
sweep = cfg.to_sweep()

# CLI overrides: python train.py --training.learning_rate 1e-3
cfg = Config.from_cli(default_config="config.yaml")

# Optuna search, same schema as the sweep export above
study = optuna.create_study(direction="minimize")
cfg.single_objective_optimization(study, train, n_trials=50)
best_cfg = cfg.best_from_optuna(study)

See the docs (or the hosted Read the Docs site, once connected) for the full guide: doc/basics.md (loading, CLI overrides, exporting), doc/wandb_sweeps.md (HPO bounds, W&B sweep export), doc/optuna.md (Optuna integration) — and examples/ for runnable scripts.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

training_cfgs-0.2.0.tar.gz (29.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

training_cfgs-0.2.0-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file training_cfgs-0.2.0.tar.gz.

File metadata

  • Download URL: training_cfgs-0.2.0.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for training_cfgs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 beb677d55aee9edc8d5215a811f080b68e6e4814f5492447373ed34e48af1075
MD5 9974c67d499cae26c789f579d6944495
BLAKE2b-256 d8e08e1383d471c2f6a2ea9eb652a33dd91e7fcfd0f352ae7ebc4b98c4088f29

See more details on using hashes here.

Provenance

The following attestation bundles were made for training_cfgs-0.2.0.tar.gz:

Publisher: workflow.yml on svaichu/training_cfgs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file training_cfgs-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: training_cfgs-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for training_cfgs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79d7c43e3fa7e5cf3edeb2329a79928b821c61be2bdb38d5f2b09a3941a79a7c
MD5 4e96c136ecc747c3a475d36240bfa3eb
BLAKE2b-256 86bba687c0b71e305086367b58db1f33df33138986bb927df0e6ac2652f758c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for training_cfgs-0.2.0-py3-none-any.whl:

Publisher: workflow.yml on svaichu/training_cfgs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 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