25 multiple-choice on overfitting, metrics, loss functions and the FastAI DataBlock API, plus 5 short-answer questions.
Select the single best answer for each question. Each question is worth 1 mark.
Overfitting occurs when:
The primary purpose of a validation set is to:
In FastAI, the DataBlock API is used to:
Which of the following is an example of a classification task?
The difference between a training set and a test set is:
Cross-entropy loss is most suitable for:
A learning rate that is too small causes:
RandomSplitter(valid_pct=0.2) in FastAI:
Accuracy as a metric is defined as:
Supervised learning differs from unsupervised learning in that:
Which of the following is NOT a common data augmentation technique for images?
Batch size determines:
A model with 99% training accuracy and 55% validation accuracy is most likely:
In the FastAI DataBlock, blocks= specifies:
aug_transforms() in FastAI provides:
A categorical variable in machine learning is:
Which loss function is appropriate for multi-class classification?
Image normalisation in deep learning typically involves:
In the DataBlock API, get_items is responsible for:
item_tfms in FastAI applies transforms:
For images organised into class-named folders, which FastAI shortcut is most convenient?
Underfitting is best identified when:
What does a softmax output layer produce?
Which of the following best describes a regression task?
Increasing batch size generally:
Answer each question in 2–4 sentences. Precise technical language is expected. Code snippets are welcome where relevant.
Explain the difference between overfitting and underfitting. How can each be detected using training and validation metrics?written
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
What is cross-entropy loss? Why is it preferred over mean squared error for classification tasks?written
Describe what item_tfms and batch_tfms do in the FastAI DataBlock API and at what stage of the pipeline each is applied.written
What is data augmentation? Give three specific examples of image augmentation techniques and explain why each helps improve model generalisation.written
Complete all 30 questions then click Submit. Your MCQ score (25/25) will be shown. Short answers are marked separately.