0
0
Computer Visionml~20 mins

Training an image classifier in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Image Classifier Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Model Choice
intermediate
2:00remaining
Choosing the right model for image classification

You want to train a model to classify images of cats and dogs. Which model architecture is best suited for this task?

AA simple linear regression model with no hidden layers
BA convolutional neural network (CNN) with several convolutional and pooling layers
CA recurrent neural network (RNN) designed for sequential data
DA k-nearest neighbors (KNN) model using raw pixel values as features
Attempts:
2 left
💡 Hint

Think about which model type is designed to capture spatial patterns in images.

Hyperparameter
intermediate
2:00remaining
Selecting the batch size for training

You are training an image classifier on a dataset of 10,000 images. Which batch size is most likely to balance training speed and model performance?

ABatch size of 32 or 64
BBatch size of 1 (stochastic gradient descent)
CBatch size of 10,000 (full batch gradient descent)
DBatch size of 5000
Attempts:
2 left
💡 Hint

Consider a batch size that allows efficient computation and stable updates.

Metrics
advanced
2:00remaining
Evaluating model accuracy on imbalanced classes

You trained an image classifier on a dataset where 90% of images are class A and 10% are class B. The model predicts class A for all images. What is the accuracy and why is it misleading?

AAccuracy is 50%, indicating random guessing
BAccuracy is 10%, showing poor performance
CAccuracy is 90%, but the model fails to detect class B images
DAccuracy is 100%, meaning perfect classification
Attempts:
2 left
💡 Hint

Think about what happens if the model always predicts the majority class.

🔧 Debug
advanced
2:00remaining
Identifying the cause of overfitting in training

You trained an image classifier and see training accuracy of 98% but validation accuracy of 60%. What is the most likely cause?

AThe model is too complex and memorizes training data instead of generalizing
BThe batch size is too large causing unstable training
CThe learning rate is too low, preventing learning
DThe dataset is too small causing underfitting
Attempts:
2 left
💡 Hint

Think about why training accuracy is high but validation accuracy is low.

🧠 Conceptual
expert
3:00remaining
Understanding transfer learning benefits

You want to train an image classifier but have only 500 labeled images. Which approach best improves model performance?

AUse a linear regression model on raw pixels
BTrain a CNN from scratch with random weights on your dataset
CUse k-means clustering to label images automatically
DUse a pretrained CNN model and fine-tune it on your dataset
Attempts:
2 left
💡 Hint

Think about how to leverage knowledge from large datasets when you have few images.