Practice
1. In the context of LSTM networks, which component is primarily responsible for deciding what information to keep or discard from the cell state?
easy
Solution
Step 1: Identify the role of each gate in LSTM.
The forget gate determines what information to discard from the cell state.Step 2: Eliminate wrong options.
The input gate decides what new information to store, the output gate decides what to output, and the activation function is not a gate.Final Answer:
Option A -> Option AQuick Check:
Forget gate discards info in LSTM. [OK]
Hint: Forget gate discards info in LSTM. [OK]
Common Mistakes:
2. When choosing between online and offline data collection for a recommendation system, which factor is most critical for deciding to use online data collection?
medium
Solution
Step 1: Identify the key factor for online data collection
Online data collection is crucial when real-time feedback is needed to update recommendations dynamically.Step 2: Eliminate factors not specific to online collection
Options B, C, and D do not specifically require online data collection; they can be addressed with offline methods.Final Answer:
Option A -> Option AQuick Check:
Real-time needs = online collection. [OK]
Hint: Real-time needs = online collection. [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 recommendation system for a video platform. Which metric would best capture user satisfaction if users tend to watch only the first few recommended videos?
hard
Solution
Step 1: Understand user behavior
Users watching only the first few videos means early precision is crucial.Step 2: Choose the metric
Precision at K directly measures the quality of the top K recommendations, aligning with user behavior.Final Answer:
Option A -> Option AQuick Check:
Precision at K focuses on top results. [OK]
Hint: Precision at K focuses on top results. [OK]
Common Mistakes:
5. You are tasked with designing a system to detect and mitigate bias in real-time predictions for a financial application. Which approach would be most effective?
hard
Solution
Step 1: Identify the need for real-time bias mitigation.
Real-time adjustments require on-the-fly techniques.Step 2: Choose the most effective approach.
Post-processing techniques (D) can adjust predictions in real-time, ensuring fairness without retraining.Final Answer:
Option A -> Option AQuick Check:
Post-processing adjusts predictions in real-time. [OK]
Hint: Post-processing adjusts predictions in real-time. [OK]
Common Mistakes:
