Boss lesson · Unit 03
Choose a model
From a baseline to one honest test score
What you practise
- A baseline first, hyperparameter search on validation data only, reading a validation curve, the test set touched once, a pipeline with a leak found and fixed
Try a question from this lesson
Pick one
In a churn dataset 80% of customers stay. Your first model is 82% accurate. How good is that?
Correct answer
Barely better than always answering "stay"
Why
Always predicting the majority class scores 80% with no model at all, so 82% is a gain of two points. Every result needs a baseline next to it; without one, a number cannot be called good or bad.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
Parameters and hyperparameters
Parameters are what training sets: the weights of a regression, the splits of a tree.
Hyperparameters are what you set before training: k in kNN, the depth of a tree, lambda in ridge. You choose them by trying several values and comparing scores on validation data, never on training data, which always prefers the most flexible setting.
11 more exercises in the app
- 2× type the answer
- 5× multiple choice
- 1× match the pairs
- 2× order the lines
- 1× fill the blanks
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.