Skip to course content
Free PyTorch course

Advanced Deep Learning with PyTorch

Module 06 Knowledge Check

5 questions. Pass mark 4 out of 5. Answer every question before checking the answer key below, then retry after reading the feedback.

1. What does flattening an image before a dense layer discard?

2. A 32x32 input through Conv2d(kernel_size=3, padding=1, stride=1) produces what size?

3. How does a convolution's parameter count change with image size?

4. Which split should augmentation be applied to?

5. Accuracy is 0.85 on a three-class problem where one class has recall 0.00. What went wrong with the reporting?

---

Answer Key and Explanations

Check these only after attempting every question.

1. B — Which pixels are adjacent to which

A dense layer treats every position as unrelated, so a pattern learned in one corner tells it nothing about the same pattern elsewhere.

2. B — 32x32

out = floor((32 + 2*1 - 3)/1) + 1 = 32. Kernel 3 with padding 1 is the standard size-preserving choice.

3. C — It does not change

Parameters depend on channels and kernel size only. The same filter slides over an image of any size.

4. B — Training only

Augmenting validation makes the score depend on which random transformations were drawn, so two evaluations of the same model disagree.

5. B — Accuracy is dominated by the majority class and hid a class the model never predicts

On imbalanced data, per-class recall is the minimum reporting standard. Accuracy summarises the majority class.

Practical Check

Apply this module to your own work: complete the module activity for *Convolutional Neural Networks for Images*, then write one sentence naming what your result shows and one naming what it does not.

Strong Answer Pattern

A strong answer names the task, the evidence used, the check performed, and the remaining limitation. It avoids "proved", "guaranteed", or "always" unless the evidence genuinely supports it.