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. You notice that your LSTM model is not learning effectively and suspect vanishing gradients. What is a likely cause specific to LSTM architecture?
medium
Solution
Step 1: Identify LSTM-specific issues.
Incorrect initialization of forget gate biases can lead to vanishing gradients.Step 2: Eliminate wrong options.
Too many layers can cause vanishing gradients, but it's not LSTM-specific. High learning rates cause exploding gradients, and dropout affects overfitting, not gradient flow.Final Answer:
Option A -> Option AQuick Check:
Forget gate bias affects gradient flow. [OK]
Hint: Forget gate bias affects gradient flow. [OK]
Common Mistakes:
3. You have a model that is overfitting. Which approach is more suitable to address this issue?
medium
Solution
Step 1: Identify methods to combat overfitting
Dropout is a regularization technique that helps prevent overfitting by randomly dropping units during training.Step 2: Eliminate wrong options
Increase the model complexity by adding more layers. increases overfitting risk, Reduce the size of the training dataset. reduces data, worsening generalization, and Use a smaller learning rate. affects convergence speed, not overfitting directly.Final Answer:
Option A -> Option AQuick Check:
Dropout reduces overfitting [OK]
Hint: Dropout reduces overfitting [OK]
Common Mistakes:
4. You are designing a deep learning model for a task with highly imbalanced classes. Which approach should you take to ensure effective gradient flow and model performance?
hard
Solution
Step 1: Address gradient flow and class imbalance
Batch normalization helps stabilize learning by normalizing inputs to each layer, which can improve gradient flow and model performance.Step 2: Eliminate wrong options
Increase the batch size to include more samples. is incorrect because increasing batch size doesn't directly address gradient flow. Use a sigmoid activation function for all layers. can exacerbate vanishing gradients. Apply dropout to prevent overfitting. is more about regularization than gradient flow.Final Answer:
Option A -> Option AQuick Check:
Batch norm stabilizes learning and gradients. [OK]
Hint: Batch norm stabilizes learning and gradients. [OK]
Common Mistakes:
5. You are tasked with selecting features for a real-time prediction system with strict latency requirements. Which feature selection method is most suitable?
hard
Solution
Step 1: Consider latency constraints.
Embedded methods integrate feature selection into model training, optimizing for both accuracy and speed.Step 2: Eliminate wrong options.
Filter methods do not consider model performance. Wrapper methods and recursive feature elimination are too slow for real-time systems.Final Answer:
Option B -> Option BQuick Check:
Embedded = fast, integrated. [OK]
Hint: Embedded methods optimize speed and accuracy. [OK]
Common Mistakes:
