Practice
1. A neural network using ReLU activation is not learning. What could be a likely cause?
medium
Solution
Step 1: Identify ReLU-specific issues.
ReLU can suffer from the dying ReLU problem where neurons output zero for all inputs.Step 2: Evaluate each option.
High learning rate (A) and small batch size (D) are not ReLU-specific. Vanishing gradients (B) are less likely with ReLU.Final Answer:
Option A -> Option AQuick Check:
Dying ReLU: neurons stuck at zero. [OK]
Hint: Dying ReLU: neurons stuck at zero. [OK]
Common Mistakes:
2. A model trained on a dataset with engineered features is underperforming on the validation set. What is the most likely cause?
medium
Solution
Step 1: Analyze the symptoms of underperformance.
Underperformance on validation suggests overfitting or poor generalization.Step 2: Evaluate the role of feature engineering.
Over-engineered features (C) can lead to overfitting, especially if they capture noise. Normalization (B) affects convergence but not generalization directly. Model complexity (A, D) is less likely the issue if features are the focus.Final Answer:
Option B -> Option BQuick Check:
Over-engineered features often lead to overfitting. [OK]
Hint: Over-engineered features often lead to overfitting. [OK]
Common Mistakes:
3. 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:
4. You are tasked with designing a GNN for a dynamic graph where nodes and edges change over time. Which approach would best handle this scenario?
hard
Solution
Step 1: Understand the graph dynamics
Dynamic graphs require models that can adapt to changes in nodes and edges.Step 2: Evaluate each approach
Static GCNs and fixed adjacency matrices cannot adapt to changes, and RNNs are not designed for graph structures.Final Answer:
Option A -> Option AQuick Check:
Dynamic GNNs adapt to graph changes. [check]
Hint: Dynamic GNNs adapt to graph changes. [check]
Common Mistakes:
5. You are tasked with debugging a production model that suddenly started underperforming. Which approach is most effective in systematically diagnosing the issue?
hard
Solution
Step 1: Identify potential causes
Sudden performance drops often relate to changes in data or environment.Step 2: Choose a systematic approach
Checking for changes in data preprocessing is a logical first step to identify if the input data has changed.Final Answer:
Option A -> Option AQuick Check:
Sudden drop = check data changes [OK]
Hint: Sudden drop = check data changes [OK]
Common Mistakes:
