ml-experiment-standards

Solid

Always invoke for training, validating, tuning, benchmarking, or claiming readiness of a predictive model. Covers leakage audits, spatial and grouped splits, metrics, reproducibility, and honest reporting. Invoke especially when spatial dependence, split design, or deployment geography is unknown; uncertainty is a reason to use this skill. Do not trigger for descriptive EDA or non-predictive statistical inference.

AI & Automation 3 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# ML Experiment Standards Purpose: every ML job (quick prototypes included) is reproducible, leakage-free, and metric-justified. These are not optional polish; every skipped item typically returns as "the model collapsed in production" or "the result didn't replicate". ## 1. EDA comes first Before any model, produce and show: distributions, missingness rates, outliers, target balance, salient correlations. Metric and loss choice depend on this information; a model recommendation without EDA is a guess. ## 2. Leakage audit At every split decision, answer explicitly (and write the answer as a code comment): "Does the training set contain indirect information about any test sample?" | Data type | Correct split | Why | |---|---|---| | Independent samples | Stratified k-fold | Preserves class ratios | | Time series | TimeSeriesSplit / walk-forward | Future must not leak into past | | **Spatial data** | Spatial block CV — see `references/spatial-cv-protocol.md` | Neighbors are near-duplicates | | Grouped data (patient, parcel, scene) | GroupKFold | A group must not straddle the split | - Scalers/encoders/imputers are **fit on train only**; the clean path is `sklearn.pipeline.Pipeline` — CV then fits correctly by construction. - Target-derived features (target encoding etc.) must be computed out-of-fold, and shown to be. The spatial protocol in `references/spatial-cv-protocol.md` is the single canonical source for this repo — other skills link here; do not restate it. #...

Details

Author
muend
Repository
muend/geoai-skills
Created
1 weeks ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category