AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Designing Ml Experiments

skill-umaraslam66-ml-superpowers-designing-ml-experiments · by Umaraslam66

Use when comparing model variants or configs, when a change appears to help but you are unsure the difference is real, when setting up a sweep, or when deciding whether to adopt a change

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add skill-umaraslam66-ml-superpowers-designing-ml-experiments

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-umaraslam66-ml-superpowers-designing-ml-experiments)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
28d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Designing Ml Experiments? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Designing ML Experiments

Overview

Most experiments answer nothing: they move several things at once, then measure a difference smaller than run-to-run noise.

Core principle: One question per experiment. Classify every hyperparameter before launching, and know your noise floor before calling a difference real.

Source: Google's Deep Learning Tuning Playbook (Godbole, Dahl, Gilmer, Shallue, Nado).

Classify Every Hyperparameter

Three roles. Which one a parameter takes depends on your question, not the parameter.

| Role | Meaning | Handling | |---|---|---| | Scientific | What you're measuring | Vary deliberately | | Nuisance | Must be tuned for a fair comparison | Re-tune within each scientific arm | | Fixed | Held constant to bound scope | Record as a caveat on the conclusion |

The trap: comparing architecture A vs B at one shared learning rate. LR is a nuisance parameter — re-tune it per arm, or you've measured "which architecture happens to like this LR."

> "The more a given nuisance hyperparameter interacts with the scientific > hyperparameters, the more damaging it is to fix its value."

Optimizer hyperparameters (LR, momentum, Adam betas) almost never get fixed.

Exploration Before Exploitation

> "Most of the time, our primary goal is to gain insight into the problem."

Early experiments buy understanding — which knobs matter, where performance saturates, what interacts. Validation error comes later. An experiment that lowers val loss but explains nothing is worth less than one that maps the landscape.

  • Exploring → quasi-random search. Uniform coverage, clean per-axis plots,

no bias toward particular regions.

  • Exploiting, once the space is narrowed → Bayesian optimization.

Grid search is wrong in both phases.

Know Your Noise Floor

Before adopting anything, characterize variance:

| Source | What varies | |---|---| | Trial | Same config, different seed | | Study | Different hyperparameter draws within a search | | Data | Different train/val/test splits |

Re-run your best config N times with different seeds. If the improvement sits inside that spread, you have not measured an improvement.

Adopt only when the gain outweighs the complexity it adds.

Batch Size Is Not A Quality Knob

> "The batch size should not be treated as a tunable hyperparameter for > validation set performance."

Choose it for throughput — usually the largest your hardware supports. Then re-tune learning rate, momentum, and every regularization hyperparameter, because their optima are batch-size dependent. Changing batch size restarts tuning.

> Tension with the original recipe: ml-superpowers:regularizing-a-model > lists "decrease the batch size" as a regularizer, following Karpathy (2019) — > smaller batches give noisier batch-norm statistics. The Playbook's position is > that this conflates a throughput decision with a quality one. Prefer the > Playbook: fix batch size for throughput and regularize with knobs whose > effect is legible.

Checkpoint Selection

Prefer retrospective selection over prospective early stopping: run a fixed step budget, then pick the best checkpoint from it.

Never tune max_train_steps inside a study — fix it across all trials. Then read where the best step lands:

  • First 10% → budget is too large
  • Last 25% → train longer and re-tune the decay schedule

Common Mistakes

| Mistake | Fix | |---|---| | One shared LR across compared architectures | LR is a nuisance param — re-tune per arm | | Adopting a change from a single run | Re-run N seeds. Is it outside trial variance? | | Grid search | Quasi-random while exploring; Bayesian after | | Tuning max_train_steps in the sweep | Fix it; select checkpoints retrospectively | | Batch size tuned for accuracy | Tune it for throughput, then re-tune LR and regularization | | Never recording which params were fixed | Fixed params are caveats. Write them down. |

Red Flags

  • "This config is better" from n=1
  • A comparison where only the scientific parameter was varied
  • An experiment you cannot state as a single question
  • Best value sitting at a search boundary, left unextended

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.