Bitpath

Lesson 1 · Unit 03

Train, validation, test

Hold rows back, and keep them truly unseen

13 exercisesabout 3 min

What you practise

  • What each set is for, k-fold cross-validation by hand, data leakage (scaling before splitting, duplicates across sets, a feature that knows the answer), time-ordered data

Try a question from this lesson

Pick one

A kNN model with k = 1 scores 100% on the 500 rows it stored. A colleague says: ship it. What is wrong with that number?

The idea

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

Three sets, three jobs

Shuffle the rows once and cut them into three parts.

Train: the model fits its weights here. Validation: you compare models and settings here. Test: touched once, at the very end, to report how the chosen model does on unseen rows.

Common cuts are 60/20/20 and 80/10/10.

11 more exercises in the app

  • 1× match the pairs
  • 1× fill the blanks
  • 3× type the answer
  • 1× order the lines
  • 4× multiple choice
  • 1× true or false

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy