Skip to content
Agentmart
Submit a tool

experiment-dse

Design-space exploration — systematic hyperparameter sweep over a search space defined by an `experiment-plan`.

Skill by Shiien

IndexedMIT★ 7
Write a review

Chalk Labs

Need help deploying experiment-dse?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/shiien-experiment-dse

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Design-space exploration — systematic hyperparameter sweep over a search space defined by an `experiment-plan`. Picks search strategy (grid / random / Bayesian-inspired sequential), generates a config list as YAML, coordinates batched execution via `experiment-run`, and produces a DSE report at `experiments/dse/{name}/report.md` with best config, sensitivity analysis, and a landscape visualization. Triggers on "DSE", "parameter sweep", "grid search", "explore hyperparameters", "tune", "sweep", "超参搜索". Chains downstream of `experiment-plan` and upstream of `experiment-run` (invoked per-config).

Use cases: documents, design, data

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/experiment-dse

What's inside

Skill name
experiment-dse
Description
Design-space exploration — systematic hyperparameter sweep over a search space defined by an `experiment-plan`. Picks search strategy (grid / random / Bayesian-inspired sequential), generates a config list as YAML, coordinates batched execution via `experiment-run`, and produces a DSE report at `experiments/dse/{name}/report.md` with best config, sensitivity analysis, and a landscape visualization. Triggers on "DSE", "parameter sweep", "grid search", "explore hyperparameters", "tune", "sweep", "超参搜索". Chains downstream of `experiment-plan` and upstream of `experiment-run` (invoked per-config).
License
MIT
Instructions
159 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# experiment-dse

**Trigger**: User asks to sweep, tune, or explore a hyperparameter space, typically with an existing `experiment-plan` or a set of parameters + ranges. For launching a single committed config use `experiment-run`; for designing the overall experiment spec first use `experiment-plan`; for post-sweep analysis of the winning config's final numbers use `experiment-analyze`.

**Process**:

### 1. Define the search space

- If `experiments/{exp_name}/plan.md` exists, pull the variables table — parameters flagged with ranges (not single values) are the DSE axes.
- Otherwise, ask the user to enumerate each parameter as one of:
  - **Continuous** with range + sampling prior (`lr ∈ [1e-5, 1e-2]`, log-uniform)
  - **Discrete ordinal** (`batch_size ∈ {16, 32, 64, 128}`)
  - **Categorical** (`optimizer ∈ {AdamW, SGD+M, Lion}`)
- **Objective function**: exactly one primary metric to optimize + direction (max / min). Secondaries are reported but do not drive search.
- **Constraints**:
  - Hard budget (max GPU-hours total / max wall-clock)
  - Hard per-config limits (memory ceiling, per-run wall-clock for early-stop)
  - Soft thresholds (minimum acceptable primary metric — below this, don't bother running secondaries)

If the search space is too large for the budget, trim **before** any runs — either reduce ranges, drop parameters to ablation-only, or promote the search to `experiment-plan` if structural changes are needed. Do not start a sweep that can only cover 5% of the space — the result will be misleading.

### 2. Choose search strategy

Pick by space size and prior knowledge, not reflex. Grid search is the default lazy choice and is almost always wrong at scale.

| Strategy | Fits when | Budget needed |
|---|---|---|
| **Grid** | ≤ 50 configs total, no prior on which axes matter | #configs = ∏ axis_sizes |
| **Random** | > 50 configs, high-dim space, unknown sensitivity | 30–100 configs typical |
| **Bayesian-inspired sequential** | Expensive per-config (≥ 4 GPU-h), smooth objective | 20–60 configs, iterative |
| **Latin hypercube / Sobol** | Need uniform coverage with fewer samples than random | 20–50 configs |
| **Successive halving / Hyperband** | Each config has an early-progress signal (loss curve) | High-throughput early eval + long final |

Justify the choice in one sentence in the report header. If Bayesian-inspired, state which surrogate heuristic (EI-like pick of best-margin neighbors, UCB with tunable c, etc.) — no black-box "we used Bayesian" claims.

### 3. Generate config list

Emit a single YAML file at `experiments/dse/{name}/configs.yaml`:

```yaml
dse_name: "{name}"
strategy: "random"          # grid | random | bayes | lhs | hyperband
seed: 42                    # for reproducibility of the sampler itself
plan_ref: "experiments/{exp_name}/plan.md"
objective:
  metric: "val/accuracy"
  direction: "max"
constraints:
  max_total_gpu_h: 200
  max_per_config_gpu_h: 6
  early_stop:
    metric: "val/loss"
    patience_epochs: 3
configs:
  - name: "dse-001"
    params: {lr: 0.001, hidden: 256, dropout: 0.1, optimizer: "AdamW"}
  - name: "dse-002"
    params: {lr: 0.01, hidden: 512, dropout: 0.2, optimizer: "AdamW"}
  # ...
```

- `name` is sequential within this sweep — `{dse_name}-{NNN}`.
- Every `params` dict must be a superset of the plan's controlled variables; only the DSE axes differ.
- For Bayesian-inspired / sequential: emit only the first batch (typically 5–10 configs) and regenerate after results land.

### 4. Execute iteratively

For each batch:

1. Dispatch each config via `experiment-run` (passing `--exp-group {dse_name}` so downstream tooling can group results).
2. Poll via `experiment-monitor` or wait on completion.
3. Collect completed configs into `experiments/dse/{name}/results.csv` with schema: `name, {all params}, {primary metric}, {secondary metrics}, status, wall_clock, gpu_h`.
4. **Early-stop underperformers**: if a config's val metric at 20% of training is ≥ 2σ below current-best-at-same-fraction, kill it and mark `status: early_stopped`. This is the biggest budget-saver; don't skip it unless the metric is too noisy at checkpoint granularity.
5. For sequential strategies: inspect `results.csv`, pick next configs from the surrogate's most-promising region, return to step 3.
6. Stop when any triggers: budget exhausted / no improvement over last B batches (B = 3 default) / user halt.

### 5. Analyze + report

After the sweep concludes, produce `experiments/dse/{name}/report.md`:

```markdown
---
dse_name: "{name}"
plan_ref: "experiments/{exp_name}/plan.md"
strategy: "{strategy}"
configs_completed: N
configs_early_stopped: M
total_gpu_h: {T}
best_config: "{name of winning config}"
best_{metric}: {value}
baseline_{metric}: {value, from plan.md}
---

## Setup
{search space, strategy justification, constraints, any mid-sweep changes}

## Best Configuration
- **Config**: `{name}`
- **Params**: {full param dict}
- **Primary metric**: {value} ({Δ} vs baseline)
- **Secondary metrics**: {table}

## Sensitivity Analysis
For each DSE axis:
- **{param}**: {low / medium / high} sensitivity — {evidence: range of primary metric as param varies with others fixed at best}
- Ranked bar chart: `experiments/dse/{name}/figures/sensitivity.pdf` (via `paper-assets` figure mode)

## Search Landscape
- 2D projections onto the top-2 most sensitive axes (pairplot or heatmap)
- Trajectory (for sequential strategies): primary metric vs config index
- `experiments/dse/{name}/figures/landscape.pdf` (via `paper-assets` figure mode)

## Pareto Frontier (if applicable)
{primary metric vs cost / secondary, with non-dominated configs marked}

## Recommendations
1. **Promote** `{best_config}` to `experiment-run` for full-scale final runs with seeds.
2. **Drop** {list of parameters with negligible sensitivity} from future sweeps.
3. **Narrow** ranges on {list of parameters where optimum is at a boundary — extend the range next sweep}.

From Shiien/Self-Evolved-Research-Framework, MIT.

More from Shiien/Self-Evolved-Research-Framework

Signals

Stars
7
Forks
1
Open issues
0
Last commit (this folder)
Jul 13, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Shiien

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get experiment-dse running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying experiment-dse?

CallGet help
Cite this page

experiment-dse skill. Agent Mart. https://agentmart.dev/skills/shiien-experiment-dse (last updated 2026-10-24)