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
- Generate a descriptive and concise name in snake_case that captures the key parameters
- Keep names under 100 characters
- Include the most important parameters that distinguish this experiment
- Use standard abbreviations where appropriate (e.g. lr for learning_rate)
- Order parameters from most to least important
Project details
Release history Release notifications | RSS feed
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)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5427b7d46461f01b64277b3ccb5c4fcc6978c385f24192fa92086cafbb1e8f35
|
|
| MD5 |
57cd9893fcc7e98370547efe3b4d32e2
|
|
| BLAKE2b-256 |
0af7c88533d2a72173562a7d1b95a44e67e8b83d27cef855ceb5f5db00471e62
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea6d92390876351e77449844d8a140bf4d84d3f37d9430629052c387ccef87c6
|
|
| MD5 |
35602e248721fbe10cdfc4f440ea0f87
|
|
| BLAKE2b-256 |
ff30d7df4d427025da5536cc74135465081eae8b12fe5ca9387e700e1f66171d
|