实验设计
未发现用户侧风险
实验设计
设计可复现的机器学习实验的最佳实践。在计划消融实验、基线或对照实验时使用。
文件预览
1 个文件
SKILL.md
1.1 KB · 可预览
--- name: experimental-design description: Best practices for designing reproducible ML experiments. Use when planning ablations, baselines, or controlled experiments. metadata: category: experiment trigger-keywords: "experiment,ablation,baseline,control,hypothesis,reproducib" applicable-stages: "9,10,12" priority: "2" version: "1.0" author: researchclaw references: "Bouthillier et al., Accounting for Variance in ML Benchmarks, MLSys 2021" --- ## Experimental Design Best Practice 1. ALWAYS include meaningful baselines (not just random): - At least one classical method baseline - At least one recent SOTA method baseline - A simple-but-strong baseline (e.g., linear probe, k-NN) 2. Use MULTIPLE random seeds (minimum 3, ideally 5) 3. Report mean +/- std across seeds 4. Design ablations that isolate EACH key component: - Remove one component at a time - Each ablation must be meaningfully different from baseline 5. Control variables: change only ONE thing per comparison 6. Use standard splits (train/val/test) — never test on training data 7. Report wall-clock time and memory usage alongside accuracy
SKILL.md
元数据
| name | experimental-design |
|---|---|
| description | 设计可复现的机器学习实验的最佳实践。在计划消融实验、基线或对照实验时使用。 |
| metadata | { "category": "实验设计", "trigger-keywords": "实验,消融,基线,对照,假设,可复现", "applicable-stages": "9,10,12", "priority": "2", "version": "1.0", "author": "researchclaw", "references": "Bouthillier 等,考虑机器学习基准中的方差,MLSys 2021" } |
实验设计最佳实践
- 始终包含有意义的基线(不仅仅是随机基线):
- 至少一个经典方法基线
- 至少一个最近的SOTA方法基线
- 一个简单但强力的基线(例如,线性探针,k-NN)
- 使用多个随机种子(最少3个,理想为5个)
- 报告不同种子下的均值 ± 标准差
- 设计消融实验以隔离每个关键组件:
- 每次移除一个组件
- 每个消融必须与基线有意义的区别
- 控制变量:每次比较只改变一个因素
- 使用标准划分(训练/验证/测试)——绝不在训练数据上测试
- 报告运行时间和内存使用情况,以及准确率