# 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.

EPFL · CS-233 Introduction to Machine Learning · Page: https://cortexexam.com/epfl-cs-233-exam
Last analysis: September 2026

## 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.

| # | Topic | Weight | Finals |
|---|---|---|---|
| 1 | Logistic regression | 9.2% | 4 of 4 |
| 2 | K-means clustering | 8.5% | 4 of 4 |
| 3 | SVMs: hard and soft margin | 8.5% | 3 of 4 |
| 4 | CNNs: convolution, output sizes and training | 7.7% | 4 of 4 |
| 5 | Linear regression and least squares | 6.9% | 4 of 4 |
| 6 | Principal component analysis (PCA) | 6.9% | 4 of 4 |
| 7 | Generalisation, overfitting and regularisation | 5.4% | 4 of 4 |
| 8 | k-nearest neighbours | 5.4% | 4 of 4 |
| 9 | MLPs: architecture and forward pass | 5.4% | 3 of 4 |
| 10 | Gradient descent and optimisation | 4.6% | 2 of 4 |
| 11 | Kernel trick and feature expansion | 4.6% | 4 of 4 |
| 12 | Evaluation metrics and class imbalance | 3.1% | 3 of 4 |
| 13 | Kernel ridge regression | 3.1% | 3 of 4 |
| 14 | Learning paradigms | 3.1% | 2 of 4 |
| 15 | Data preprocessing and normalisation | 2.3% | 1 of 4 |
| 16 | Activation functions | 1.5% | 2 of 4 |
| 17 | Autoencoders | 1.5% | 1 of 4 |
| 18 | Data augmentation | 1.5% | 1 of 4 |
| 19 | Fisher LDA | 1.5% | 2 of 4 |
| 20 | Kernel SVMs | 1.5% | 2 of 4 |
| 21 | Linear decision boundaries | 1.5% | 1 of 4 |
| 22 | Loss functions | 1.5% | 2 of 4 |
| 23 | Bag-of-words features | 0.8% | 1 of 4 |
| 24 | Deep learning frameworks | 0.8% | 1 of 4 |
| 25 | Model selection and cross-validation | 0.8% | 1 of 4 |
| 26 | Ridge regression | 0.8% | 1 of 4 |
| 27 | Self-attention | 0.8% | 1 of 4 |
| 28 | Spectral clustering | 0.8% | 1 of 4 |

### Logistic regression

How it’s asked: Write the cross-entropy loss, compute its value on a few points, and say what happens on linearly separable data.

Common trap: On separable data with no regularisation, the weights grow without bound: training accuracy reaches 100% but the loss never reaches zero.

### K-means clustering

How it’s asked: Run 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 trap: Choosing K by the lowest objective: it always drops as K grows, down to zero with one point per cluster.

### SVMs: hard and soft margin

How it’s asked: Say how C changes the margin and the training accuracy, and write the equation of the decision boundary.

Common trap: Getting 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

How it’s asked: Compute output sizes and parameter counts layer by layer, and say what to change when the input image grows.

Common trap: Leaving out the bias or the input channels when counting the parameters of a convolution layer.

### Linear regression and least squares

How it’s asked: Write the least-squares objective and its closed form, then use a fitted line as a threshold classifier.

Common trap: With perfectly correlated features, XᵀX is singular and the closed form has no unique solution.

### Principal component analysis (PCA)

How it’s asked: Choose the number of components from the explained variance, and link PCA to a linear autoencoder or to the SVD.

Common trap: Running PCA on features with different scales without standardising them first: the largest-scale feature takes the first component.

### Generalisation, overfitting and regularisation

How it’s asked: Read training and validation curves, name the failure, and pick a remedy such as L2, dropout or more data.

Common trap: Adding regularisation to a model that underfits: it makes the error worse, not better.

### k-nearest neighbours

How it’s asked: Sketch the 1-NN or 2-NN regression curve, choose k from a validation error, and compare distance metrics.

Common trap: 1-NN always has zero training error, so its training error says nothing about the choice of k.

## 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 question | 57% |
| Multiple choice | 43% |

## How to revise, from the data

1. Cover the whole syllabus. The questions spread over 28 topics, and the biggest one is only 9.2% of them.
2. 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.
3. Train on open questions as much as on multiple choice: open questions are 57% of the paper.
4. 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?](https://app.cortexexam.com/whats-on-my-exam) tool runs the same count on your own past papers, and [Cortex](https://app.cortexexam.com) 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.

- Free tool, for your own past papers: https://app.cortexexam.com/whats-on-my-exam
- Mock exams in your course’s format: https://app.cortexexam.com
- All analysed courses: https://cortexexam.com/exams
