Practice
1. In the context of Graph Neural Networks, which component is primarily responsible for aggregating information from neighboring nodes?
easy
Solution
Step 1: Identify the role of each component
The message passing mechanism is designed to aggregate information from neighboring nodes in a graph.Step 2: Eliminate wrong options
Activation functions, dropout layers, and batch normalization do not specifically aggregate information from neighboring nodes.Final Answer:
Option C -> Option CQuick Check:
Message passing aggregates neighbor info in GNNs. [check]
Hint: Message passing aggregates neighbor info in GNNs. [check]
Common Mistakes:
2. Which regularization technique is most suitable for feature selection in a linear regression model?
easy
Solution
Step 1: Identify the purpose of feature selection.
L1 Lasso regularization can shrink some coefficients to zero, effectively selecting features.Step 2: Eliminate wrong options.
L2 Ridge does not shrink coefficients to zero. Elastic Net combines L1 and L2 but is not as direct for feature selection. Dropout is not used in linear regression.Final Answer:
Option A -> Option AQuick Check:
L1 Lasso zeros coefficients for selection. [OK]
Hint: L1 Lasso zeros coefficients for selection. [OK]
Common Mistakes:
3. When choosing between LSTM and GRU for a sequence modeling task, which scenario would favor using GRU over LSTM?
medium
Solution
Step 1: Compare LSTM and GRU.
GRUs are simpler and computationally more efficient than LSTMs.Step 2: Match to scenario.
GRU is preferred when computational efficiency is a priority.Final Answer:
Option A -> Option AQuick Check:
GRU is simpler, faster than LSTM. [check]
Hint: GRU is simpler, faster than LSTM. [check]
Common Mistakes:
4. In a dataset with highly correlated features, which regularization technique is preferable and why?
medium
Solution
Step 1: Identify the issue with correlated features.
Highly correlated features can cause instability in L1 Lasso.Step 2: Choose the technique that addresses this.
Elastic Net combines L1 and L2, providing stability and feature selection.Step 3: Eliminate wrong options.
L1 Lasso struggles with multicollinearity. L2 Ridge does not select features. No regularization ignores the problem.Final Answer:
Option A -> Option AQuick Check:
Elastic Net = L1 + L2 for correlation. [OK]
Hint: Elastic Net = L1 + L2 for correlation. [OK]
Common Mistakes:
5. You are tasked with evaluating the effect size of a new feature in a model. Which approach is most appropriate for this task?
hard
Solution
Step 1: Identify the goal
Effect size measures the magnitude of a feature's impact, not just its statistical significance.Step 2: Choose the correct metric
Cohen's d is a standard measure for effect size, especially in comparing means.Final Answer:
Option D -> Option DQuick Check:
Effect size? Use Cohen's d [OK]
Hint: Effect size? Use Cohen's d [OK]
Common Mistakes:
