Skip to content

Dataset Splitting, Cross-Validation, Data Leakage

Before any algorithm. A bad split produces a beautiful number that lies.

Level
Beginner
Lessons
2
Total time
34 min
Simulations
2
Included in Introduction to Machine Learning · $9
Tools you'll use
  • Python
  • scikit-learn
  • pandas
  • NumPy
Skills
  • Train/test split
  • Cross-validation
  • Data leakage
Try it now — free

This is the real simulation from the module. No account needed.

What you will be able to do

  • Split data without leaking the future into the past
  • Use k-fold cross-validation correctly
  • Find data leakage before it flatters your score

Syllabus

2 lessons · 34 min

Every lesson's title and summary is public. The lessons themselves open once you own the track.

Every lesson in Introduction to Machine Learning
  1. Splitting Data, and K-Fold

    18 min

    Why one split is not enough, and why k = 5 is nearly always the answer.

    Included with the track Simulation
  2. Data Leakage

    16 min

    The number-one cause of a model that shines on a laptop and fails in production. Three forms, and how to spot the symptom.

    Included with the track Simulation

Practice included

Included with the track. Quizzes are graded on the server; competitions have a live leaderboard.

  • QuizQuiz: Machine Learning Foundations
Lifetime access
$9
Buy the track
More in Introduction to Machine Learning
Module · Beginner

Getting Started

Three kinds of learning, and the two data distinctions that drive almost every later decision.

  • 2 lessons
  • 30 min
  • 2 simulations
Included in Introduction to Machine Learning· $9
Module · Beginner

Training, Evaluation, Bias–Variance, Tuning

How to train, how to measure with the right metric, and the one trade-off that explains nearly every model failure.

  • 3 lessons
  • 48 min
  • 3 simulations
Included in Introduction to Machine Learning· $9
Module · Beginner

KNN — Classifier and Regressor

The algorithm that learns nothing, and teaches a great deal precisely because of that.

  • 1 lesson
  • 16 min
  • 1 simulation
Included in Introduction to Machine Learning· $9
Module · Intermediate

SVM — Classifier and Regressor

Find the boundary with the widest gap to both classes. Simple, and very strong in high dimensions.

  • 1 lesson
  • 20 min
  • 1 simulation
Included in Introduction to Machine Learning· $9