Module quiz
ML foundations quiz
25 questions across 2 lessons. Choose an answer, check it, and read why each option is right or wrong.
Checking answers needs JavaScript. You can still read every question and option below.
Keyboard: arrow keys move between options. Space or Enter selects the focused option.
The learning problem: generalization, bias-variance and regularization12 questions
ObjectiveFrame a task as supervised learning, and explain why we minimise empirical risk on training data as a stand-in for expected risk on unseen data.
ObjectiveState the job of the train, validation and test sets, and name the leaks that make a reported score too optimistic.
ObjectiveDiagnose high bias or high variance from train and validation error and from learning curves, and pick the fix that matches.
ObjectiveExplain how an L2 or L1 penalty changes the fitted weights, why only L1 gives exact zeros, and how the strength lambda trades variance for bias.
Linear models, loss functions and gradient descent13 questions
ObjectiveDerive the gradient (p - y) x of the log loss for logistic regression, and explain why cross-entropy rather than squared error is paired with a sigmoid.
ObjectiveSolve linear regression with the normal equation and with gradient descent, and say when each is the right tool and what collinear features do.
ObjectiveChoose a loss for a task (squared error, absolute error, Huber, cross-entropy, hinge) by what it penalises, and predict how each reacts to an outlier or a confident mistake.
ObjectiveExplain how the learning rate, batch size, momentum, Adam and feature scaling change a gradient descent run, and diagnose a run that diverges, crawls or oscillates.
Boss challenge: Generalization, linear models and gradient descent
A longer check of the whole module. It is optional, and nothing else on the site depends on it.
- 10 questions, taken from the lesson quizzes above.
- Pass mark: 7 correct of 10.
- You can try it as many times as you like.
- A correct answer is kept, so a pass can build up across several tries.
- If you miss some, you get links to the lesson sections to read again.
Checking answers needs JavaScript. You can still read every question and option below.
Keyboard: arrow keys move between options. Space or Enter selects the focused option.