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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beb677d55aee9edc8d5215a811f080b68e6e4814f5492447373ed34e48af1075
|
|
| MD5 |
9974c67d499cae26c789f579d6944495
|
|
| BLAKE2b-256 |
d8e08e1383d471c2f6a2ea9eb652a33dd91e7fcfd0f352ae7ebc4b98c4088f29
|
Provenance
The following attestation bundles were made for training_cfgs-0.2.0.tar.gz:
Publisher:
workflow.yml on svaichu/training_cfgs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
training_cfgs-0.2.0.tar.gz -
Subject digest:
beb677d55aee9edc8d5215a811f080b68e6e4814f5492447373ed34e48af1075 - Sigstore transparency entry: 2341334544
- Sigstore integration time:
-
Permalink:
svaichu/training_cfgs@ab9297f8e08937c3283f84179571a2e59c8d6ee0 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/svaichu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@ab9297f8e08937c3283f84179571a2e59c8d6ee0 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79d7c43e3fa7e5cf3edeb2329a79928b821c61be2bdb38d5f2b09a3941a79a7c
|
|
| MD5 |
4e96c136ecc747c3a475d36240bfa3eb
|
|
| BLAKE2b-256 |
86bba687c0b71e305086367b58db1f33df33138986bb927df0e6ac2652f758c3
|
Provenance
The following attestation bundles were made for training_cfgs-0.2.0-py3-none-any.whl:
Publisher:
workflow.yml on svaichu/training_cfgs
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
training_cfgs-0.2.0-py3-none-any.whl -
Subject digest:
79d7c43e3fa7e5cf3edeb2329a79928b821c61be2bdb38d5f2b09a3941a79a7c - Sigstore transparency entry: 2341334564
- Sigstore integration time:
-
Permalink:
svaichu/training_cfgs@ab9297f8e08937c3283f84179571a2e59c8d6ee0 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/svaichu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@ab9297f8e08937c3283f84179571a2e59c8d6ee0 -
Trigger Event:
release
-
Statement type: