CP3501 · Week 2 ML Fundamentals & DataBlock API Quiz
0 / 30
Week 2  ·  Assessment Quiz

ML Fundamentals & DataBlock API

25 multiple-choice on overfitting, metrics, loss functions and the FastAI DataBlock API, plus 5 short-answer questions.

📋 30 questions total ⭐ 30 marks 🕐 No time limit 🔒 Answers not revealed
PART A

Multiple Choice  (25 marks)

Select the single best answer for each question. Each question is worth 1 mark.

Q1

Overfitting occurs when:

Q2

The primary purpose of a validation set is to:

Q3

In FastAI, the DataBlock API is used to:

Q4

Which of the following is an example of a classification task?

Q5

The difference between a training set and a test set is:

Q6

Cross-entropy loss is most suitable for:

Q7

A learning rate that is too small causes:

Q8

RandomSplitter(valid_pct=0.2) in FastAI:

Q9

Accuracy as a metric is defined as:

Q10

Supervised learning differs from unsupervised learning in that:

Q11

Which of the following is NOT a common data augmentation technique for images?

Q12

Batch size determines:

Q13

A model with 99% training accuracy and 55% validation accuracy is most likely:

Q14

In the FastAI DataBlock, blocks= specifies:

Q15

aug_transforms() in FastAI provides:

Q16

A categorical variable in machine learning is:

Q17

Which loss function is appropriate for multi-class classification?

Q18

Image normalisation in deep learning typically involves:

Q19

In the DataBlock API, get_items is responsible for:

Q20

item_tfms in FastAI applies transforms:

Q21

For images organised into class-named folders, which FastAI shortcut is most convenient?

Q22

Underfitting is best identified when:

Q23

What does a softmax output layer produce?

Q24

Which of the following best describes a regression task?

Q25

Increasing batch size generally:

PART B

Short Answer  (5 marks — marked by lecturer)

Answer each question in 2–4 sentences. Precise technical language is expected. Code snippets are welcome where relevant.

Q26

Explain the difference between overfitting and underfitting. How can each be detected using training and validation metrics?written

Your answer
0 / 700
Q27

What is the DataBlock API in FastAI? Describe its key components (blocks, get_items, splitter, get_y, item_tfms, batch_tfms) and what each does.written

Your answer
0 / 700
Q28

What is cross-entropy loss? Why is it preferred over mean squared error for classification tasks?written

Your answer
0 / 700
Q29

Describe what item_tfms and batch_tfms do in the FastAI DataBlock API and at what stage of the pipeline each is applied.written

Your answer
0 / 700
Q30

What is data augmentation? Give three specific examples of image augmentation techniques and explain why each helps improve model generalisation.written

Your answer
0 / 700

Complete all 30 questions then click Submit. Your MCQ score (25/25) will be shown. Short answers are marked separately.

MCQ Score
0 / 25
✏️ Your 5 short-answer responses are recorded for your lecturer.
Full total: MCQ + short-answer marks = / 30