Skip to main content

Auto naming for experiments

Project description

AutoNaming

A Python package that provides LLM-powered naming.

Currently supports automatically naming experiments using information from parser and args (from argparse).

Implemented using APPL.

Installation

pip install autonaming

Usage

from argparse import ArgumentParser
from autonaming.exps import name_this_exp

# Create your argument parser as usual
parser = ArgumentParser()
parser.add_argument("--learning_rate", type=float, default=0.001, help="Learning rate for training")
parser.add_argument("--batch_size", type=int, default=32, help="Batch size for training")
parser.add_argument("--model", type=str, default="resnet18", help="Model architecture")

# Parse your arguments
args = parser.parse_args(["--learning_rate", "0.01", "--model", "alexnet"])

# Generate an informative name for your experiment
name = name_this_exp(parser, args, add_timestamp=True)
# Example output: alexnet_lr0.01_bs32__2024_12_11__12_34_56
# You can use this name to name your experiment directory

Instructions for naming experiments

  1. Generate a descriptive and concise name in snake_case that captures the key parameters
  2. Keep names under 100 characters
  3. Include the most important parameters that distinguish this experiment
  4. Use standard abbreviations where appropriate (e.g. lr for learning_rate)
  5. Order parameters from most to least important

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

autonaming-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autonaming-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file autonaming-0.1.0.tar.gz.

File metadata

  • Download URL: autonaming-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.1 CPython/3.13.0 Darwin/23.6.0

File hashes

Hashes for autonaming-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5427b7d46461f01b64277b3ccb5c4fcc6978c385f24192fa92086cafbb1e8f35
MD5 57cd9893fcc7e98370547efe3b4d32e2
BLAKE2b-256 0af7c88533d2a72173562a7d1b95a44e67e8b83d27cef855ceb5f5db00471e62

See more details on using hashes here.

File details

Details for the file autonaming-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: autonaming-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.20.1 CPython/3.13.0 Darwin/23.6.0

File hashes

Hashes for autonaming-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6d92390876351e77449844d8a140bf4d84d3f37d9430629052c387ccef87c6
MD5 35602e248721fbe10cdfc4f440ea0f87
BLAKE2b-256 ff30d7df4d427025da5536cc74135465081eae8b12fe5ca9387e700e1f66171d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page