Practice
1. In the context of Word2Vec, which of the following best describes the purpose of the 'skip-gram' model?
easy
Solution
Step 1: Understand skip-gram model purpose
The skip-gram model in Word2Vec is designed to predict surrounding words given a target word.Step 2: Eliminate wrong options
Predicts the next word in a sequence given the previous words. describes a language model task, Clusters words into predefined categories. is about clustering, and Generates a sequence of words from a given context. is about sequence generation, none of which are the purpose of skip-gram.Final Answer:
Option D -> Option DQuick Check:
Skip-gram predicts context from target [OK]
Hint: Skip-gram predicts context from target [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. When deciding between Platt Scaling and Isotonic Regression for calibrating a model, which scenario favors Isotonic Regression?
medium
Solution
Step 1: Understand the strengths of Isotonic Regression.
Isotonic Regression is non-parametric and assumes monotonicity, making it suitable for small datasets where this assumption holds.Step 2: Evaluate each scenario.
Isotonic Regression is not ideal for overfitting (A) or binary outputs (B), and is less efficient than Platt Scaling (D).Final Answer:
Option A -> Option AQuick Check:
Isotonic = small data, monotonicity. [OK]
Hint: Isotonic = small data, monotonicity. [OK]
Common Mistakes:
4. 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:
5. In a multilingual context, how can you adapt Word2Vec embeddings to handle multiple languages effectively?
hard
Solution
Step 1: Evaluate multilingual strategies
Multilingual BERT is designed to handle multiple languages effectively, unlike Word2Vec.Step 2: Eliminate wrong options
Train separate Word2Vec models for each language and concatenate the embeddings. doesn't capture cross-lingual semantics. Use a shared vocabulary across languages and train a single Word2Vec model. is impractical due to vocabulary differences. Translate all text to a single language before training Word2Vec. loses language-specific nuances.Final Answer:
Option A -> Option AQuick Check:
Multilingual BERT for cross-language tasks [OK]
Hint: Multilingual BERT for cross-language tasks [OK]
Common Mistakes:
