EPFL · CS-233 Introduction to Machine Learning
What comes up in the EPFL CS-233 Machine Learning exam?
Cortex sorted all 130 questions from 4 finals (2019, 2020, 2021 and 2024) by topic. The exam is broad: 28 topics, and the top ten make up 68% of the questions.
- Finals analysed
- 4
- Years
- 2019 → 2024
- Questions
- 130
- Topics
- 28
The topics, ranked by weight
Weight is the share of the 130 questions that tested the topic. The finals count says how many of the 4 papers had at least one.
Logistic regression
9.2%in 4 of 4 finalsHow it’s askedWrite the cross-entropy loss, compute its value on a few points, and say what happens on linearly separable data.
Common trapOn separable data with no regularisation, the weights grow without bound: training accuracy reaches 100% but the loss never reaches zero.
K-means clustering
8.5%in 4 of 4 finalsHow it’s askedRun the assignment and update steps by hand, compare two clusterings by their distortion, and pick a feature space (polar coordinates, for example) where the clusters become separable.
Common trapChoosing K by the lowest objective: it always drops as K grows, down to zero with one point per cluster.
SVMs: hard and soft margin
8.5%in 3 of 4 finalsHow it’s askedSay how C changes the margin and the training accuracy, and write the equation of the decision boundary.
Common trapGetting the direction of C backwards: a larger C penalises violations more, so the margin narrows and training accuracy rises.
CNNs: convolution, output sizes and training
7.7%in 4 of 4 finalsHow it’s askedCompute output sizes and parameter counts layer by layer, and say what to change when the input image grows.
Common trapLeaving out the bias or the input channels when counting the parameters of a convolution layer.
Linear regression and least squares
6.9%in 4 of 4 finalsHow it’s askedWrite the least-squares objective and its closed form, then use a fitted line as a threshold classifier.
Common trapWith perfectly correlated features, XᵀX is singular and the closed form has no unique solution.
Principal component analysis (PCA)
6.9%in 4 of 4 finalsHow it’s askedChoose the number of components from the explained variance, and link PCA to a linear autoencoder or to the SVD.
Common trapRunning PCA on features with different scales without standardising them first: the largest-scale feature takes the first component.
Generalisation, overfitting and regularisation
5.4%in 4 of 4 finalsHow it’s askedRead training and validation curves, name the failure, and pick a remedy such as L2, dropout or more data.
Common trapAdding regularisation to a model that underfits: it makes the error worse, not better.
k-nearest neighbours
5.4%in 4 of 4 finalsHow it’s askedSketch the 1-NN or 2-NN regression curve, choose k from a validation error, and compare distance metrics.
Common trap1-NN always has zero training error, so its training error says nothing about the choice of k.
The other 20 topics
- MLPs: architecture and forward pass5.4%in 3 of 4 finals
- Gradient descent and optimisation4.6%in 2 of 4 finals
- Kernel trick and feature expansion4.6%in 4 of 4 finals
- Evaluation metrics and class imbalance3.1%in 3 of 4 finals
- Kernel ridge regression3.1%in 3 of 4 finals
- Learning paradigms3.1%in 2 of 4 finals
- Data preprocessing and normalisation2.3%in 1 of 4 finals
- Activation functions1.5%in 2 of 4 finals
- Autoencoders1.5%in 1 of 4 finals
- Data augmentation1.5%in 1 of 4 finals
- Fisher LDA1.5%in 2 of 4 finals
- Kernel SVMs1.5%in 2 of 4 finals
- Linear decision boundaries1.5%in 1 of 4 finals
- Loss functions1.5%in 2 of 4 finals
- Bag-of-words features0.8%in 1 of 4 finals
- Deep learning frameworks0.8%in 1 of 4 finals
- Model selection and cross-validation0.8%in 1 of 4 finals
- Ridge regression0.8%in 1 of 4 finals
- Self-attention0.8%in 1 of 4 finals
- Spectral clustering0.8%in 1 of 4 finals
Year by year
Number of questions each final gave to the 8 biggest topics.
| Topic | 2019 | 2020 | 2021 | 2024 |
|---|---|---|---|---|
| Logistic regression | 1 | 1 | 6 | 4 |
| K-means | 2 | 3 | 4 | 2 |
| SVMs | 6 | 4 | 1 | 0 |
| CNNs | 3 | 5 | 1 | 1 |
| Linear regression | 2 | 1 | 3 | 3 |
| PCA | 2 | 4 | 1 | 2 |
| Generalisation and overfitting | 1 | 2 | 1 | 3 |
| K-nearest neighbours | 1 | 3 | 2 | 1 |
What the questions look like
| Form | Share of questions |
|---|---|
| Open questionA short derivation, a computation or a sentence of explanation. | 57% |
| Multiple choiceOne answer among several, often on the effect of a hyperparameter. | 43% |
Each question is sorted by the form Cortex noted while reading the paper.
How to revise, from the data
- Cover the whole syllabus. The questions spread over 28 topics, and the biggest one is only 9.2% of them.
- Start with the 8 topics that came up in all 4 finals: logistic regression, k-means, CNNs, linear regression, PCA, generalisation and overfitting, k-nearest neighbours and the kernel trick.
- Train on open questions as much as on multiple choice: open questions are 57% of the paper.
- Make the quick computations automatic. CNNs came up in every final, mostly as parameter counts and output sizes, and loss values are asked by hand.
Questions
What comes up most in the CS-233 exam?
Logistic regression (9.2% of questions), then k-means (8.5%), SVMs (8.5%) and CNNs (7.7%). Together they make up 34% of the 130 questions in 4 finals from 2019 to 2024.
Which topics come up in every CS-233 final?
8 topics came up in all 4 finals: logistic regression, k-means, CNNs, linear regression, PCA, generalisation and overfitting, k-nearest neighbours and the kernel trick.
What do the CS-233 exam questions look like?
By share of questions: open question 57%, multiple choice 43%.
How many past exams is this based on?
4 finals (2019, 2020, 2021 and 2024), 130 questions in total, analysed by Cortex. Last analysis: September 2026.
Can I get the same for my own course?
Yes. The free What’s on my exam? tool runs the same count on your own past papers, and Cortex then builds mock exams in your course’s format.
How these numbers were counted
Cortex read each of the 4 finals, split it into questions and linked each question to one topic of the course. A topic’s weight is its share of all 130 questions, the same count Cortex uses to rank a syllabus. No exam statement is reproduced: the descriptions on this page were written for it. Last analysis: September 2026.