ml-experimentation
БесплатноБез исполняемых скриптовНе проверенConduct machine learning experiments from planning through evaluation and report writing. Use when running ML experiments, testing hypotheses, training…
от ericmjl★ 45 звёзд на GitHubОб этом скилле
ML Experimentation
This skill guides a hypothesis-driven ML experiment life cycle: planning, fast iteration, script execution, targeted logging, journaling, diagnostic visualization, and scientific report writing.
Usage
Use this skill when the user wants to run an ML experiment, test a model or idea, or write up experiment results. First decide: new experiment (different question → new experiment directory) or new run (same question, tweaks → new run under runs/). See references/experiment-setup.md for that disambiguation, hypothesis scoping, and the fast-iteration checklist.
Requirements
- Python 3.11+ with uv or pixi for running scripts:
uv run script.pyor, when pixi is the environment manager,pixi run python script.py(pixi readspyproject.tomlorpixi.toml). - Dependencies declared via PEP723 inline script metadata in each script (or, with pixi, in pyproject.toml / pixi.toml).
- Respect the user's training framework (PyTorch, JAX, TensorFlow, etc.). Run scripts in a GPU-enabled environment wherever possible: with uv use GPU-enabled deps (e.g. JAX GPU extras, PyTorch via
tool.uv.indexCUDA index in the script block); with pixi use a GPU-enabled environment defined in pyproject.toml or pixi.toml. Fall back to CPU only when GPU is unavailable. See references/script-patterns.md.
What It Does
- Planning – Decide new experiment (different question) vs new run (same question, tweaks). Extract one testable hypothesis, define success criteria, identify metrics to log; create experiment directory and JOURNAL.md (new experiment) or add a run under
runs/(new run). - De-risking – Keep runs under ~60 seconds; scale down data, epochs, or model size before longer runs
- Scripts – Disposable scripts with PEP723 metadata, run with
uv runorpixi run(GPU-enabled environment preferred) - Logging – Log only what the hypothesis needs; avoid verbose or redundant logs
- Journal – Read JOURNAL.md before each action; record observations, anomalies, hunches
- Plots and report – Generate plots from logged data only; write a scientific report (abstract, intro, methods, results, discussion, conclusion) with no hallucination or editorialization
How It Works
Phase 1: Experiment Planning
- New experiment vs new run: If the user is answering a different question → start a new experiment (new directory, JOURNAL.md, canonical tree). If they are tweaking to answer the same question → add a new run under the existing experiment; name it full ISO datetime + descriptive string
YYYY-MM-DDTHH-MM-SS-<descriptive-string>(e.g.runs/2025-02-03T09-00-00-retry). See references/experiment-setup.md. - Extract a single, testable hypothesis from the user’s goal. Reject vague or multi-part goals; narrow to one claim that can be verified.
- Define success and failure criteria before running anything.
- List metrics to log that map directly to the hypothesis and criteria.
- For a new experiment: Create an experiment directory and add JOURNAL.md (see Phase 5). Use the canonical tree: experiment →
runs/YYYY-MM-DDTHH-MM-SS-<descriptive-string>/→logs/,plots/,checkpoints/,data/. For a new run: Create only the new run directory underruns/(e.g.runs/2025-02-03T09-00-00-retry/) withlogs/,plots/,checkpoints/,data/.
Phase 2: De-risking Loop (Fast Iteration)
- Target: single run completes in under 60 seconds. If a run would take longer, scale down first.
- Scale down by: smaller data subset (representative, not just “first N”), fewer epochs, simpler or smaller model, or fewer evaluation steps.
- Sanity-check data loading, training loop, and evaluation on the scaled-down setup before committing to longer runs.
- If something would take > 2 minutes, find a proxy that finishes in under 1 minute.
- Before each run, verify the fast-iteration checklist in references/experiment-setup.md.
- Each run is a directory under
runs/named full ISO datetime + descriptive stringYYYY-MM-DDTHH-MM-SS-<descriptive-string>(e.g.runs/2025-02-02T14-30-00-de-risk,runs/2025-02-02T15-00-00-full,runs/2025-02-03T09-00-00-retry). Keep a running log; never overwrite an existing run. See references/experiment-setup.md for the canonical tree. - To ignore failed or irrelevant runs without deleting: list them in
IGNORED_RUNS.md(or JOURNAL.md “Ignored runs”). See references/experiment-setup.md.
Phase 3: Script Execution
- All Python scripts use PEP723 inline script metadata and are run with
uv run script.pyor, when pixi is the environment manager,pixi run python script.py(pixi usespyproject.tomlorpixi.toml). **Always run train/eval in a GPU-enabled
Установить ml-experimentation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ml-experimentation?
Conduct machine learning experiments from planning through evaluation and report writing. Use when running ML experiments, testing hypotheses, training models, or writing up results. Covers single-hypothesis scoping, fast iteration loops, targeted logging, JOURNAL.md protocol, data-backed diagnostic plots, and scientific report writing.
Как установить скилл ml-experimentation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ml-experimentation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic