Practice
1. In the context of data labeling strategies, which method is best suited for generating large amounts of labeled data quickly but with potentially lower accuracy?
easy
Solution
Step 1: Understand the methods.
Human annotation is accurate but slow. Weak supervision uses heuristics or external data sources to generate labels quickly but may be less accurate.Step 2: Eliminate wrong options.
Programmatic labeling is similar to weak supervision but often requires more setup. Active learning involves human input and is not as fast.Final Answer:
Option A -> Option AQuick Check:
Weak supervision = fast, less accurate [OK]
Hint: Weak supervision = fast, less accurate [OK]
Common Mistakes:
2. In a dataset with highly imbalanced classes, which sampling strategy is most appropriate to ensure each class is represented proportionally in the sample?
easy
Solution
Step 1: Identify the need for proportional representation.
In imbalanced datasets, it's crucial to maintain class proportions to avoid bias.Step 2: Eliminate inappropriate strategies.
Random Sampling (A) doesn't guarantee class proportions. Reservoir Sampling (C) is for streaming data, not class balance. Weighted Sampling (D) adjusts for importance, not proportions.Final Answer:
Option A -> Option AQuick Check:
Stratified = Proportional representation [OK]
Hint: Stratified = Proportional representation [OK]
Common Mistakes:
3. 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:
4. A model shows a high ROC-AUC but performs poorly on the minority class. What is the most likely cause?
medium
Solution
Step 1: Analyze the metrics
ROC-AUC can be misleading in imbalanced datasets as it doesn't focus on the minority class.Step 2: Eliminate wrong options
Overfitting (A) and underfitting (D) are not directly related to the discrepancy between ROC-AUC and minority class performance. High bias (C) would affect overall performance, not just minority class.Final Answer:
Option A -> Option AQuick Check:
ROC-AUC can mislead in imbalanced datasets. [OK]
Hint: ROC-AUC can mislead in imbalanced datasets. [OK]
Common Mistakes:
5. You need to track the lineage of a model from data ingestion to deployment using MLflow. Which approach best achieves this?
hard
Solution
Step 1: Understand MLflow's capabilities
MLflow alone does not track data lineage; integration is needed.Step 2: Evaluate options for lineage tracking
Integrating with a dedicated lineage tool provides comprehensive tracking.Final Answer:
Option B -> Option BQuick Check:
Lineage needs integration [OK]
Hint: Lineage needs integration [OK]
Common Mistakes:
