Practice
1. For evaluating an LLM's ability to generate coherent text, which metric is most appropriate?
easy
Solution
Step 1: Identify metrics for text generation
BLEU score measures text generation quality by comparing n-grams.Step 2: Eliminate wrong options
Accuracy, precision, and recall are more suited for classification tasks, not text coherence.Final Answer:
Option C -> Option CQuick Check:
BLEU for text coherence, not classification. [OK]
Hint: BLEU for text coherence, not classification. [OK]
Common Mistakes:
2. For a real-time recommendation system, which metric should the ML platform optimize to ensure timely and relevant suggestions?
easy
Solution
Step 1: Understand the system's requirement.
Real-time systems need to provide timely responses, making latency crucial.Step 2: Eliminate wrong options.
MAE measures error, Precision and Recall focus on accuracy, not speed.Final Answer:
Option A -> Option AQuick Check:
Real-time needs low latency. [OK]
Hint: Real-time systems prioritize low latency. [OK]
Common Mistakes:
3. For a model registry focused on governance, which metric is most critical to track?
easy
Solution
Step 1: Identify governance focus
Governance in model registries is about ensuring compliance and adherence to regulations.Step 2: Eliminate wrong options
Model accuracy is incorrect as accuracy isn't a governance metric. Model deployment frequency is wrong because deployment frequency isn't about governance. Model training time is incorrect as training time isn't related to governance.Final Answer:
Option B -> Option BQuick Check:
Governance = Compliance focus [OK]
Hint: Governance = Compliance focus [OK]
Common Mistakes:
4. In a spam detection system, which feature is most likely to be effective in identifying spam emails?
easy
Solution
Step 1: Identify effective features for spam detection
Keywords like 'free', 'win', or 'prize' are often used in spam emails.Step 2: Eliminate less effective features
Email length (A) and time of day (D) are not strong indicators of spam. Sender's domain (C) can be spoofed.Final Answer:
Option B -> Option BQuick Check:
Keywords often signal spam. [OK]
Hint: Keywords often signal spam. [OK]
Common Mistakes:
5. When choosing between a Bi-Encoder and a Cross-Encoder for a semantic search task, which is more suitable for real-time retrieval and why?
medium
Solution
Step 1: Compare Bi-Encoder and Cross-Encoder
Bi-Encoders allow pre-computation of document embeddings, making them suitable for real-time retrieval.Step 2: Eliminate wrong options
Cross-Encoders evaluate pairs at query time, which is computationally expensive and not suitable for real-time retrieval.Final Answer:
Option A -> Option AQuick Check:
Bi-Encoder = pre-compute embeddings [check]
Hint: Bi-Encoder = pre-compute embeddings [check]
Common Mistakes:
