来源信息
- 仓库
- brycewang-stanford/Auto-Empirical-Research-Skills
- 最近来源活动
- 2026年4月3日 02:07
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 3,291
- 分支
- 432
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
菜单
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills --skill ml-experiment-tracker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
中英双语学术降 AIGC / bilingual academic de-AIGC skill. Removes AI-generated writing signatures from empirical papers in economics, management, and the social sciences — in both English and Chinese. Covers Turnitin AI, GPTZero, Originality.ai on the English side and 知网 AMLC, 万方, 维普 on the Chinese side. Uses a six-step loop (intake → audit → claim-evidence check → differentiated rewrite → five-dimension self-score → cold-reader recheck) with two pattern libraries (22 English + 17 Chinese patterns), section-by-section strategies for empirical papers, and hard protections that keep every number, coefficient, and citation intact.
Use when a research task needs reproducible Kaggle discovery, metadata inspection, bounded public-data downloads, competition or kernel discovery, model discovery, or an explicitly approved Kaggle write/delete operation through the official CLI.
正在显示 SKILL.md
基于 SOC 职业分类
| name | ml-experiment-tracker |
| description | Plan reproducible ML experiment runs with parameters and metrics tracking |
| metadata | {"openclaw":{"emoji":"🧪","category":"analysis","subcategory":"statistics","keywords":["experiment tracking","machine learning","reproducibility","hyperparameters","MLflow","model evaluation"],"source":"wentor-research-plugins"}} |
A skill for planning, executing, and tracking machine learning experiments with full reproducibility. Covers experiment design, hyperparameter management, metric logging, model versioning, and comparison across runs to support rigorous ML research.
Machine learning research involves running dozens or hundreds of experiments with varying architectures, hyperparameters, data splits, and preprocessing pipelines. Without systematic tracking, it becomes impossible to reproduce results, compare configurations, or identify which changes actually improved performance. This skill provides a structured methodology for experiment management that aligns with academic standards for reproducible ML research.
The approach is framework-agnostic but demonstrates integration with MLflow, Weights & Biases, and plain file-based logging. It emphasizes the practices needed for publications: complete hyperparameter documentation, statistical significance testing across runs, and artifact management for model checkpoints and evaluation outputs.
Before writing any training code, document the experiment plan:
# experiment_plan.yaml
experiment:
name: "transformer-sentiment-analysis-v3"
hypothesis: "Adding relative positional encoding improves F1 on long reviews (>512 tokens)"
dataset:
name: "imdb-extended"
version: "2025.1"
splits: {train: 0.8, val: 0.1, test: 0.1}
stratify_by: "label"
random_seed: 42
baselines:
- name: "bert-base-uncased"
checkpoint: "bert-base-uncased"
- name: "roberta-base"
checkpoint: "roberta-base"
variables:
independent:
- positional_encoding: ["absolute", "relative", "rotary"]
controlled:
- learning_rate: 2e-5
- batch_size: 32
- max_epochs: 10
- early_stopping_patience: 3
- optimizer: "AdamW"
- weight_decay: 0.01
metrics:
primary: "f1_macro"
secondary: ["accuracy", "precision_macro", "recall_macro", "loss"]
report_at: ["best_val", "final"]
compute:
gpus: 1
estimated_time_per_run: "45min"
total_runs: 9 # 3 encodings x 3 seeds
seeds: [42, 123, 456]
from itertools import product
def generate_experiment_grid(config: dict) -> list:
"""
Generate all experiment configurations from a factorial design.
"""
param_names = list(config.keys())
param_values = list(config.values())
runs = []
for combo in product(*param_values):
run_config = dict(zip(param_names, combo))
run_config['run_id'] = '_'.join(f"{k}={v}" for k, v in run_config.items())
runs.append(run_config)
return runs
# Example: 3 learning rates x 2 batch sizes x 3 seeds = 18 runs
grid = generate_experiment_grid({
'learning_rate': [1e-5, 2e-5, 5e-5],
'batch_size': [16, 32],
'seed': [42, 123, 456]
})
import mlflow
import json
from datetime import datetime
def start_tracked_experiment(experiment_name: str, run_config: dict):
"""
Initialize an MLflow experiment run with full configuration logging.
"""
mlflow.set_experiment(experiment_name)
with mlflow.start_run(run_name=run_config.get('run_id', None)) as run:
# Log all hyperparameters
mlflow.log_params(run_config)
# Log environment info for reproducibility
mlflow.log_param("python_version", "3.11.5")
mlflow.log_param("torch_version", "2.1.0")
mlflow.log_param("timestamp", datetime.now().isoformat())
# Log the full config as an artifact
with open("/tmp/run_config.json", "w") as f:
json.dump(run_config, f, indent=2)
mlflow.log_artifact("/tmp/run_config.json")
return run.info.run_id
def log_epoch_metrics(epoch: int, metrics: dict):
"""Log metrics for a training epoch."""
for name, value in metrics.items():
mlflow.log_metric(name, value, step=epoch)
def log_final_results(metrics: dict, model_path: str = ):
name, value metrics.items():
mlflow.log_metric(, value)
model_path:
mlflow.log_artifact(model_path)
from scipy import stats
import numpy as np
def compare_experiment_results(results: dict) -> dict:
"""
Compare experiment configurations using statistical tests.
Args:
results: Dict mapping config_name -> list of metric values across seeds
e.g., {'relative_pe': [0.87, 0.86, 0.88], 'absolute_pe': [0.84, 0.83, 0.85]}
"""
config_names = list(results.keys())
comparisons = {}
for i in range(len(config_names)):
for j in range(i + 1, len(config_names)):
name_a, name_b = config_names[i], config_names[j]
values_a, values_b = results[name_a], results[name_b]
# Paired t-test (same seeds)
t_stat, p_value = stats.ttest_rel(values_a, values_b)
# Effect size (Cohen's d)
diff = np.array(values_a) - np.array(values_b)
cohens_d = np.mean(diff) / np.std(diff, ddof=1)
comparisons[f"{name_a}_vs_{name_b}"] = {
'mean_a': np.mean(values_a),
'mean_b': np.mean(values_b),
'mean_diff': np.mean(diff),
't_statistic': round(t_stat, 4),
'p_value': round(p_value, 4),
'significant': p_value < 0.05,
'cohens_d': round(cohens_d, 3)
}
comparisons
| Configuration | F1 (mean +/- std) | Accuracy | p-value vs. baseline |
|---|---|---|---|
| Baseline (absolute PE) | 0.840 +/- 0.010 | 0.852 | -- |
| Relative PE | 0.870 +/- 0.008 | 0.881 | 0.003 |
| Rotary PE | 0.865 +/- 0.012 | 0.876 | 0.011 |
Before submitting ML results for publication, verify: