name: plan-ml-experiment description: Plan reproducible machine-learning experiments with leakage-safe random, grouped, or chronological splits; deterministic configuration fingerprints; dataset checksums; seeds, baselines, ablations, and artifact manifests. origin: openai4s category: reproducibility capabilities: network: mode: none domains: []
Use this skill before training begins. A reproducible experiment is a falsifiable question plus immutable inputs, a leakage-safe evaluation boundary, a declared metric, and enough recorded state to rerun the comparison.
from importlib import import_module
plan = import_module("plan-ml-experiment.kernel")
splits = plan.grouped_split(patient_ids, seed=42)
manifest = plan.experiment_manifest(
config,
data_paths=["data/cohort.csv"],
seeds=[42, 43, 44],
code_revision="<git commit>",
)
Use random_split(size, ...) only when rows are genuinely independent.
grouped_split(groups, ...) keeps each group in exactly one partition.
chronological_split(timestamps, ...) orders observations without shuffling.
All return original row indices under train, validation, and test.
config_fingerprint;Determinism does not prove validity. Hardware kernels may remain nondeterministic, and repeating one biased split does not repair leakage or dataset shift. Report deviations from the plan rather than overwriting it.