Skip to main content

Yet Another HyperParameter framework

Project description

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.

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

yahp-0.1.1.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

yahp-0.1.1-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file yahp-0.1.1.tar.gz.

File metadata

  • Download URL: yahp-0.1.1.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for yahp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 241347623ed42997e5913c6f4cb45f042ba9814d85b3168fa7ca762ad7972efa
MD5 4d0fbdb7d61c5c40a994c155bb0343b0
BLAKE2b-256 0c284e6ffd9a2a4f232446e83aa5177d294ef2385f953a78da098af347c3275a

See more details on using hashes here.

File details

Details for the file yahp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: yahp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 42.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for yahp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d797f4609b69b7c4fdb408b8a87106df6845cbe1f6ddd0da4bc0dbb7b7f496
MD5 c8fc847f6de54c9ede0f9775f4e0ab1b
BLAKE2b-256 f814a852fb490c0b3cdb0e3cfb7906056c55a3092937aecbd6e19e2bf967db1b

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