Practice
Solution
Step 1: Understand self-attention's role
Self-attention allows the model to weigh the importance of different words in a sequence, capturing dependencies regardless of their position.Step 2: Eliminate wrong options
To reduce the dimensionality of input data is incorrect because self-attention does not reduce dimensionality. To encode positional information of words in a sequence is incorrect as positional encoding handles positional information. To improve the model's ability to generalize to unseen data is incorrect because self-attention focuses on sequence dependencies, not generalization.Final Answer:
Option A -> Option AQuick Check:
Self-attention captures word dependencies. [OK]
Solution
Step 1: Understand the context.
In medical diagnosis, missing a positive case (false negative) can be critical.Step 2: Choose the metric that minimizes false negatives.
Recall focuses on minimizing false negatives.Final Answer:
Option C -> Option CQuick Check:
Recall minimizes false negatives. [OK]
Solution
Step 1: Analyze the impact of standardization on model performance.
Standardization centers data around zero, which can affect models sensitive to feature means.Step 2: Identify the potential issue.
Some models may perform poorly if they rely on the original mean of the data.Final Answer:
Option A -> Option AQuick Check:
Model sensitive to mean? Standardization affects it. [OK]
Solution
Step 1: Identify NDCG sensitivity
NDCG is sensitive to the position of relevant results; irrelevant results at the top lower the score.Step 2: Eliminate wrong options
Normalization affects comparability, not score; incorrect ideal DCG or log base would affect all results, not just NDCG.Final Answer:
Option D -> Option DQuick Check:
Top irrelevant results lower NDCG. [OK]
Solution
Step 1: Consider latency and calibration.
Real-time systems require low latency, favoring pre-trained models.Step 2: Evaluate each approach.
Batch processing (A) and online learning (B) introduce latency. Pre-trained models (C, D) are faster, but Platt Scaling (C) is more efficient than Isotonic Regression (D).Final Answer:
Option A -> Option AQuick Check:
Pre-trained + Platt = fast calibration. [OK]
