Practice
1. In the context of slice-based evaluation, which of the following is a key benefit?
easy
Solution
Step 1: Understand slice-based evaluation
Slice-based evaluation focuses on analyzing model performance on specific data subsets.Step 2: Eliminate wrong options
It reduces the overall training time of the model. is incorrect as slice-based evaluation doesn't affect training time. It automatically tunes hyperparameters for better performance. is incorrect because it doesn't involve hyperparameter tuning. It ensures the model is robust to adversarial attacks. is incorrect as it doesn't directly address adversarial robustness.Final Answer:
Option D -> Option DQuick Check:
Slice-based evaluation identifies weak data subsets. [OK]
Hint: Slice-based evaluation identifies weak data subsets. [OK]
Common Mistakes:
2. In a CI/CD pipeline for ML, which component is responsible for automatically retraining models when new data is available?
easy
Solution
Step 1: Identify the role of each component.
Version control manages code, CI server automates testing, model registry stores models, data pipeline handles data flow.Step 2: Eliminate wrong options.
Version control (A) and CI server (B) don't handle data. Model registry (C) stores models, not data. Data pipeline (D) triggers retraining with new data.Final Answer:
Option B -> Option BQuick Check:
Data pipeline triggers retraining. [OK]
Hint: Data pipeline triggers retraining. [OK]
Common Mistakes:
3. When choosing between K-Means and Gaussian Mixture Models (GMM) for clustering, which scenario favors K-Means?
medium
Solution
Step 1: Compare K-Means and GMM
K-Means assumes spherical clusters with similar variance, while GMM can handle different shapes and densities.Step 2: Identify the scenario
Clusters with similar variance and spherical shape describes clusters with similar variance and spherical shape, which is ideal for K-Means.Final Answer:
Option D -> Option DQuick Check:
K-Means loves spherical, similar variance clusters [OK]
Hint: K-Means loves spherical, similar variance clusters [OK]
Common Mistakes:
4. In a real-time system where predictions need to be made quickly, which approach to linear regression is more suitable and why?
hard
Solution
Step 1: Consider real-time constraints
Stochastic Gradient Descent (SGD) updates weights after each data point, allowing for faster, more frequent updates suitable for real-time systems.Step 2: Eliminate wrong options
Batch Gradient Descent (A) is too slow for real-time, Least Squares (C) is not iterative, and Mini-batch (D) is a compromise but not as fast as SGD.Final Answer:
Option A -> Option AQuick Check:
SGD updates weights after each data point. [OK]
Hint: SGD updates weights after each data point. [OK]
Common Mistakes:
5. You are tasked with evaluating the effect size of a new feature in a model. Which approach is most appropriate for this task?
hard
Solution
Step 1: Identify the goal
Effect size measures the magnitude of a feature's impact, not just its statistical significance.Step 2: Choose the correct metric
Cohen's d is a standard measure for effect size, especially in comparing means.Final Answer:
Option D -> Option DQuick Check:
Effect size? Use Cohen's d [OK]
Hint: Effect size? Use Cohen's d [OK]
Common Mistakes:
