Train-Test Split Game

Build reliable dataset partitions, prevent hidden leakage, preserve groups and timelines, compare distributions, and prove your model evaluation is genuinely trustworthy today in practice.

Current mission

Beginner Untimed
Customer Churn

Objective:
0
Split quality
Not audited
Best: 0
Streak: 0

Interactive dataset board

Drag records between zones. Click a record to inspect it.
Ready
Shape = class · outline = group · star = suspicious record
Select a record to see its label, group, timestamp, features, and leakage clues.

Live split snapshot

0 records
0
Training records
0
Validation records
0
Testing records
0
Unassigned records
0%
Ratio accuracy
0
Class balance
0
Group isolation
0
Temporal integrity

Leakage audit

Not run
  • Run an audit
    The detector will inspect duplicates, groups, chronology, classes, preprocessing, target leakage, ratios, and test reuse.

Model performance simulation

Training accuracy
Validation accuracy
Testing accuracy
Precision
Recall
Generalisation gap
Audit the split to simulate honest performance and compare it with leakage-inflated results.

Plotly split diagnostics

Results dashboard

MeasureResultInterpretation
StrategyRandom splitChoose a strategy matching the data structure.
Requested ratios70/15/15Target allocation configured by the player.
Actual ratios0/0/0Assign every record before final evaluation.
Leakage riskNot auditedRun the leakage detector.
Final gradeNo score is available yet.
Generate a challenge, allocate the records, and audit your decisions.

Progress and achievements

Mastery progress
No completed challenges yet.

Learning reference

Training, validation, and testing

Training data fits model parameters. Validation data supports tuning and model selection. Testing data provides one final independent estimate.

Stratified splitting

Preserve class proportions when labels are imbalanced. Stratification helps every split represent rare outcomes.

Group-based splitting

Keep every record from the same person, machine, household, document, or location inside one partition.

Time-series splitting

Train on earlier observations and evaluate on later observations. Random shuffling can leak future information backward.

Cross-validation

Rotate validation folds across the training data. Keep the final testing set outside the tuning loop.

Data leakage

Leakage occurs when training uses information unavailable at prediction time or learns directly from validation and testing records.

Safe preprocessing

Fit scaling, imputation, feature selection, encoding, and resampling on training data only. Apply learned transformations elsewhere.

Distribution shift

Feature or label distributions can change across time, regions, users, or devices. A realistic test set should reflect deployment.

Random seeds

A recorded seed makes random splits reproducible. Compare several seeds when the dataset is small or unstable.

Suspicious performance

Near-perfect validation results can signal duplicate records, target-derived features, future information, or repeated test-set tuning.

Train-Test Split Game

Related Calculators

Missing Value RescueOutlier HunterData Cleaning RaceFeature Scaling ChallengeCategorical Encoding PuzzleData Leakage DetectiveImbalanced Dataset DefenderFeature Engineering WorkshopPipeline Builder

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.