Practice
1. For an A/B test aimed at increasing user engagement, which metric should the platform optimize for?
easy
Solution
Step 1: Define user engagement.
User engagement is often measured by how long users interact with the platform.Step 2: Eliminate wrong options.
CTR and Conversion Rate focus on specific actions, while Bounce Rate measures disengagement.Final Answer:
Option B -> Option BQuick Check:
Engagement = time spent. [OK]
Hint: Engagement = time spent. [OK]
Common Mistakes:
2. For a vision-language model designed to generate image captions, which metric should be prioritized to evaluate the quality of the generated captions?
easy
Solution
Step 1: Understand the task requirements
Image captioning requires evaluating the quality of generated text against reference captions.Step 2: Choose the appropriate metric
BLEU score is specifically designed to evaluate the quality of text generation tasks like translation and captioning.Final Answer:
Option B -> Option BQuick Check:
BLEU evaluates text generation quality. [OK]
Hint: BLEU evaluates text generation quality. [OK]
Common Mistakes:
3. In a pairwise learning to rank system, what is a common failure mode if the model is not performing well?
medium
Solution
Step 1: Identify the failure mode specific to pairwise ranking.
Pairwise models can fail if they don't capture the relative order of item pairs.Step 2: Eliminate wrong options.
Overfitting and inappropriate loss functions are generic issues, and pairwise doesn't consider the entire list, making C incorrect.Final Answer:
Option B -> Option BQuick Check:
Pairwise = focus on item pairs [OK]
Hint: Pairwise = focus on item pairs [OK]
Common Mistakes:
4. When implementing a 'People You May Know' feature, should you use a simple Jaccard similarity or a more complex graph embedding approach? Assume the graph is sparse and dynamic.
medium
Solution
Step 1: Analyze graph characteristics.
The graph is sparse and dynamic, requiring methods that capture complex relationships.Step 2: Evaluate options.
Jaccard similarity (A) is efficient but too simplistic for capturing complex relationships. Graph embeddings (B) are suitable as they capture more nuanced relationships. Jaccard similarity (C) does not inherently adapt to dynamic graphs. Graph embeddings (D) are not always better, but in this case, they are due to the complexity of relationships.Final Answer:
Option D -> Option DQuick Check:
Embeddings capture complex relationships. [OK]
Hint: Embeddings capture complex relationships. [OK]
Common Mistakes:
5. As the volume of emails increases 10x, which component of a spam detection system is most likely to fail first?
hard
Solution
Step 1: Consider scalability of components
Real-time inference engines often struggle with increased load due to latency constraints.Step 2: Eliminate components less affected by scale
Feature extraction (A) and data storage (D) can be scaled horizontally. Model training (B) is not real-time.Final Answer:
Option C -> Option CQuick Check:
Inference engines struggle with scale. [OK]
Hint: Inference engines struggle with scale. [OK]
Common Mistakes:
