Skip to main content

YAHP: Yet Another HyperParameter

YAHP introduces yet another hyperparameter management tool.

Features

  • Utilizes dataclasses to describe the data model.
  • Supports int, float, bool, str, and Enums; along with lists and nullable fields
  • Fields can be optional (with a default) or required
  • Auto-generates YAML templates, serializes the data model to YAML, and loads YAML into the data model.
  • Allows for nested dataclasses -- even with abstract classes
  • Adds an argparse CLI

Getting Started

YAHP Command Line

Whenever Hparams.create() is invoked, YAHP adds the following command line options:

  • -h, --help: Print help and exit.
  • -f, --file": Load data from this YAML file into the Hparams.
  • -s, --save_template: Generate and dump a YAML template to the specified file (defaults to stdout) and exit.
  • -i, --interactive: Whether to generate the template interactively. Only applicable if --save_template is present.
  • -c, --concise: Skip adding documentation to the generated YAML. Only applicable if --save_template is present.
  • -d, --dump: Dump the resulting Hparams to the specified YAML file (defaults to stdout) and exit.

Metadata

Release files for yahp 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yahp 0.1.3
File Size Uploaded
yahp-0.1.3.tar.gz 43.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yahp 0.1.3
File Interpreter ABI Platform
yahp-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 90.8 kB

Release files / yahp-0.1.3.tar.gz

Download URL yahp-0.1.3.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
36fae68a4991c91d44d338d1d9da91489dc8cc6966c5ade3c6644c5b0da9873d
BLAKE2b-256 checksum
How to use checksums
678644e9f3d76cea3f01fcd16c552a534d8d62ba202ec247c07b2d257d6c1641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

Release files / yahp-0.1.3-py3-none-any.whl

Download URL yahp-0.1.3-py3-none-any.whl
Size 46.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11cb2dae00a5e40953e1eca4c7a4b6f4f0522ccf2bc0837510a37f3738608883
BLAKE2b-256 checksum
How to use checksums
5532e3ca4893e4d8cd3a12b6642efc95cb745ffa0a540504893433c59439c9fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.11 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.7.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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