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.3.tar.gz (43.8 kB view hashes)

Uploaded Source

Built Distribution

yahp-0.1.3-py3-none-any.whl (46.9 kB view hashes)

Uploaded Python 3

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