🌍 Machine Learning · flashcards

Machine Learning Project: Image Classification Flashcards

50 question-and-answer cards covering Project: Image Classification as it is examined in Machine Learning. 24 of them are printed below, taken from across the deck — no signup, no paywall on the preview.

50Cards in deck
24Free preview
13Syllabus topics
~152Chars per answer
FreePrice

24 sample cards from the Project: Image Classification deck

Sampled from the end of the deck, so these are different cards from the ones shown on the syllabus page.

  1. What problem do residual (skip) connections in ResNet solve?

    They mitigate the vanishing-gradient/degradation problem in very deep networks by letting gradients flow through identity shortcuts, learning $F(x)+x$ instead of $F(x)$ alone.

  2. When compiling the model, what three things must you specify?

    The loss function, the optimizer, and the evaluation metric(s).

  3. Which loss is used for multi-class single-label classification, and write its formula for one example.

    Categorical cross-entropy: $$L = -\sum_{i=1}^{C} y_i \log(\hat{y}_i)$$ where $y_i$ is the one-hot target and $\hat{y}_i$ the predicted probability for class $i$.

  4. Which activation is used on the output layer for multi-class classification, and write its formula.

    Softmax: $$\hat{y}_i = \frac{e^{z_i}}{\sum_{j=1}^{C} e^{z_j}}$$ which turns logits into a probability distribution summing to 1.

  5. Which output activation and loss are used for binary or multi-label classification?

    Sigmoid activation per output unit with binary cross-entropy loss: $$L = -[y\log\hat{y} + (1-y)\log(1-\hat{y})]$$

  6. What is the Adam optimizer and why is it popular?

    An adaptive optimizer combining momentum and per-parameter adaptive learning rates (RMSProp-style); it converges fast and works well with default settings across many tasks.

  7. Write the basic gradient descent parameter update rule with learning rate $\eta$.

    $$\theta \leftarrow \theta - \eta \nabla_{\theta} L$$

  8. What is the learning rate and what happens if it is too high or too low?

    The step size for parameter updates. Too high causes divergence or oscillation; too low causes very slow convergence and risk of getting stuck.

  9. Define batch size, epoch, and iteration in training.

    Batch size = number of samples per gradient update; epoch = one full pass over the training set; iteration = one gradient update (one batch). Iterations per epoch $= \lceil N / \text{batch size} \rceil$.

  10. What is the ReLU activation and why is it commonly used in hidden layers?

    $$\text{ReLU}(x) = \max(0, x)$$ It is cheap, non-saturating for positive inputs, and reduces vanishing gradients compared to sigmoid/tanh.

  11. While monitoring training, how do you diagnose overfitting from the loss curves?

    Training loss keeps decreasing while validation loss stops decreasing and starts rising; the train/validation gap widens.

  12. What is early stopping?

    A regularization technique that halts training when the validation metric stops improving for a set number of epochs (patience), restoring the best weights to avoid overfitting.

  13. What is dropout and how does it regularize a network?

    During training it randomly zeroes a fraction $p$ of unit activations each step, preventing co-adaptation of neurons and acting like training an ensemble, which improves generalization.

  14. What is batch normalization and what benefit does it give during training?

    It normalizes layer inputs per mini-batch to zero mean and unit variance (then scales/shifts), stabilizing and speeding training and allowing higher learning rates.

  15. What is a learning-rate schedule, and give one common example.

    A rule that changes the learning rate during training; examples include step decay, exponential decay, cosine annealing, and reduce-on-plateau (lower LR when validation stalls).

  16. What distinguishes underfitting from overfitting?

    Underfitting = high error on both train and validation (model too simple/undertrained); overfitting = low train error but high validation error (model memorizes noise).

  17. Why do you evaluate on the validation set during training?

    To estimate generalization on unseen data, guide hyperparameter tuning and model selection, and detect overfitting without touching the test set.

  18. Define accuracy, precision, and recall using TP, TN, FP, FN.

    $\text{Accuracy}=\frac{TP+TN}{TP+TN+FP+FN}$, $\text{Precision}=\frac{TP}{TP+FP}$, $\text{Recall}=\frac{TP}{TP+FN}$.

  19. Write the F1-score formula and state what it balances.

    $$F_1 = 2\cdot\frac{\text{Precision}\cdot\text{Recall}}{\text{Precision}+\text{Recall}}$$ It is the harmonic mean of precision and recall, useful for imbalanced classes.

  20. What is a confusion matrix and what does it reveal in multi-class classification?

    A table of predicted vs. actual classes; its diagonal shows correct predictions and off-diagonal cells reveal which classes are confused with which.

  21. What does the test set evaluation tell you that the validation set cannot?

    An unbiased estimate of real-world generalization, because the test set was never used for fitting or hyperparameter tuning, unlike the validation set.

  22. List three common deployment methods for an image classification model.

    Cloud/REST API server (e.g., TensorFlow Serving), on-device/edge deployment (e.g., TensorFlow Lite, Core ML), and batch/offline inference. Browser deployment via TensorFlow.js is another option.

  23. What is model quantization and why is it used for edge deployment?

    Reducing weight/activation precision (e.g., float32 to int8) to shrink model size and speed up inference with minimal accuracy loss, enabling deployment on resource-limited devices.

  24. In 'Monitor and Maintain', what is model/data drift and how do you respond?

    Drift is when input data distribution or label relationships change over time, degrading accuracy; respond by monitoring live metrics, collecting new labeled data, and retraining/redeploying the model.

What this deck covers

The Project: Image Classification deck follows the Machine Learning Project: Image Classification syllabus — 6 chapters and 13 topics — so questions land on material that is genuinely examinable rather than trivia around it. That works out to roughly 8.3 cards per chapter.

Answers are written to be recallable, not just readable — averaging about 152 characters, which is long enough to carry the reasoning and short enough to say out loud.

A deck like this earns its keep on the second and third pass. Read the syllabus first so you know the shape of the subject, then use the cards to find the specific facts that have not stuck.

Project: Image Classification flashcards FAQ

How many Project: Image Classification flashcards are in this Machine Learning deck?

50 cards. This page previews 24 of them, sampled evenly across the deck so you can judge the difficulty before installing anything.

Are these Machine Learning flashcards free?

Yes. The preview here is free to read with no signup, and the full 50-card deck is free inside the Examius app.

What do the Project: Image Classification cards cover?

They follow the Machine Learning Project: Image Classification syllabus — 6 chapters and 13 topics — so the questions track what is actually examinable.

How should I use these flashcards?

Read the syllabus first so you know the shape of the subject, then drill the deck. Examius schedules each card with spaced repetition, so cards you keep missing come back sooner and ones you know drift further apart.