Stage 2: Data Hygiene & Leakage-Proof Splitting
Zero Leakage EnforcedEnsure train/validation/test sets are established prior to computing statistics, encodings, or missing value strategies.
AI BANNED ACTIONS (FAIL SAFES)
- BAN Calling .fit_transform() on full dataframe
- BAN Imputing missing targets with median
HUMAN VERIFICATION CHECKPOINT
- CHECK Verify test indices are persisted as test_idx.parquet
- CHECK Run shape assertion: train_X.shape[0] + test_X.shape[0] == raw.shape[0]
COPYABLE AI STAGE PROMPT
Loading stage prompt...
.cursorrules
Production-ready instructions for your IDE agent
Generating rules...
6-Stage Prompt Playbook (Step-by-step Execution)
Generating complete workflow...