auditing-train-test-split

Audit train/test splits for leakage and evaluation flaws.

2|Updated May 23, 2026
One-click install
npx skills add https://github.com/rocklambros/rcs --skill auditing-train-test-split
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auditing-train-test-split
Source: https://github.com/rocklambros/rcs/tree/main/skills/ml-datasci/auditing-train-test-split
Command: npx skills add https://github.com/rocklambros/rcs --skill auditing-train-test-split

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill audits train and test splits to catch hidden leakage, misleading validation, and evaluation setups that overstate real-world performance.

Core Features & Use Cases

  • Checks for identifier leakage, target leakage, and preprocessing leakage before metrics are trusted.
  • Validates stratification for imbalanced classification and chooses the right split strategy for grouped, panel, and time-indexed data.
  • Recommends corrected splitters such as group-aware, stratified-group, time-series, walk-forward, or date-cutoff methods.
  • Helps diagnose suspiciously high accuracy or AUC, especially when multiple rows belong to the same person, customer, session, or time sequence.
  • Distinguishes supervised split audits from unsupervised clustering, where cluster stability is the better validation approach.

Quick Start

Ask the Skill to audit your split, identify any leakage or temporal violations, and recommend the correct validation strategy for your dataset.

Frequently Asked Questions about auditing-train-test-split

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect data leakage in my train-test split?

Detect data leakage in your train-test split by auditing for identifier, target, and preprocessing leakage before trusting evaluation metrics. This process checks preprocessing order and group-aware partitioning to prevent inflated model performance.

Why does my model have suspiciously high accuracy on time-series data?

Suspiciously high accuracy on time-series data often indicates temporal leakage during train-test splitting. Auditing temporal cutoffs and applying walk-forward or date-cutoff validation methods corrects this misleading evaluation.

What is the best way to split grouped or panel data without leakage?

The best way to split grouped or panel data without leakage is using group-aware partitioning. This approach ensures multiple rows belonging to the same person, customer, or session remain in the same split.

How do I validate train-test splits for imbalanced classification datasets?

Validate train-test splits for imbalanced classification datasets by checking stratification logic. This ensures minority classes are proportionally represented across splits, preventing biased evaluation metrics.

When should I use stratified-group splitters instead of random splitting?

Use stratified-group splitters instead of random splitting when your dataset contains both imbalanced classes and grouped entities. This method prevents leakage while maintaining class proportions across partitions.

Does random splitting work for time-indexed datasets?

Random splitting does not work for time-indexed datasets because it breaks temporal order and causes leakage. Auditing temporal cutoffs and applying time-series or walk-forward validation ensures realistic evaluation.