Practice
1. You notice that your YOLO model is missing small objects in images. What is the most likely cause?
medium
Solution
Step 1: Identify the problem
Missing small objects often relates to anchor box size.Step 2: Analyze options
The model's anchor boxes are too large is correct because large anchor boxes can miss small objects. The learning rate is too high affects convergence, not detection size. The batch size is too small affects training stability, not object size. The model's confidence threshold is too low would increase false positives, not miss objects.Final Answer:
Option D -> Option DQuick Check:
Small objects need small anchors [OK]
Hint: Small objects need small anchors [OK]
Common Mistakes:
2. A KNN model is performing poorly on a high-dimensional dataset. What is the most likely cause?
medium
Solution
Step 1: Consider high-dimensional effects
In high dimensions, distance metrics often become less effective.Step 2: Eliminate wrong options
The model has too few neighbors. is incorrect as increasing neighbors may not help. The dataset is too small. is wrong because size isn't the main issue. The model is overfitting due to too many neighbors. is incorrect as overfitting is less likely with many neighbors.Final Answer:
Option B -> Option BQuick Check:
High dimensions dilute distance metrics. [OK]
Hint: High dimensions dilute distance metrics. [OK]
Common Mistakes:
3. In a CI/CD pipeline for ML, when should you prefer using a canary deployment over a blue-green deployment?
medium
Solution
Step 1: Understand deployment strategies.
Canary deployment gradually rolls out changes to a small subset, while blue-green switches between two environments.Step 2: Match scenarios to strategies.
Canary is ideal for testing on a small subset (B), blue-green is for zero downtime (A) and quick rollback (D).Final Answer:
Option D -> Option DQuick Check:
Canary = gradual rollout. [OK]
Hint: Canary = gradual rollout. [OK]
Common Mistakes:
4. You need to develop a model to recommend products to users based on their past behavior. Which learning approach is most suitable?
medium
Solution
Step 1: Identify the goal.
The goal is to optimize recommendations over time based on user feedback.Step 2: Eliminate wrong options.
Supervised learning, because it can predict future purchases. is incorrect because predicting purchases doesn't optimize over time. Unsupervised learning, because it can cluster users with similar behaviors. is incorrect because clustering doesn't adapt to feedback. Supervised learning, because it can classify users into categories. is incorrect because classification doesn't optimize recommendations.Final Answer:
Option A -> Option AQuick Check:
Optimize over time -> Reinforcement learning [OK]
Hint: Optimize over time -> Reinforcement learning [OK]
Common Mistakes:
5. When should you avoid using a polynomial kernel in SVM?
medium
Solution
Step 1: Consider the computational cost of polynomial kernels
Polynomial kernels can be computationally expensive, especially with large datasets.Step 2: Eliminate wrong options
When the data is linearly separable is incorrect because a polynomial kernel can still be used but is unnecessary. When the data has non-linear patterns is incorrect because polynomial kernels are suitable for non-linear patterns. When you have a small number of features is incorrect because the number of features doesn't directly affect the choice of kernel.Final Answer:
Option A -> Option AQuick Check:
Avoid polynomial kernel for large datasets [OK]
Hint: Avoid polynomial kernel for large datasets [OK]
Common Mistakes:
