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.
📖 Full documentation on Read the Docs
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 training_cfgs import CategoricalDistribution, Config, FloatDistribution, create_study
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 = create_study(direction="minimize")
cfg.single_objective_optimization(study, train, n_trials=50)
best_cfg = cfg.best_from_optuna(study)
Docs
The full guide lives on Read the
Docs, built from the same sources
in this repo: 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.
Metadata
Release files for training-cfgs 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| training_cfgs-0.2.1.tar.gz | 30.7 kB | With provenance | Details for training_cfgs-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| training_cfgs-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for training_cfgs-0.2.1-py3-none-any.whl |
Total release size: 59.0 kB
Release files / training_cfgs-0.2.1.tar.gz
| Download URL | training_cfgs-0.2.1.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2120df94cba549e0353acc574247fd56f90f20b7a588cab5c61460d3c6719a1b
|
|
BLAKE2b-256 checksum How to use checksums |
c27c0b74c27a8cc194c7b15988d2284c325ede5e0d9bce18a1103d9934d01fa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / training_cfgs-0.2.1-py3-none-any.whl
| Download URL | training_cfgs-0.2.1-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84b723fc48c06646f86cb50a2a4196562a072dcad26b943df12d0c0c6bf61b77
|
|
BLAKE2b-256 checksum How to use checksums |
c0c480fbb2d338943c571dce37b1d8a523cad0a4f07ce440b2d65c19bd16a55e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logSecurity for training-cfgs 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for training_cfgs-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.