Practice
1. In the context of gradient boosting, which of the following is a key advantage of using XGBoost over traditional boosting methods?
easy
Solution
Step 1: Identify XGBoost's unique features
XGBoost is known for its regularization capabilities, which help prevent overfitting.Step 2: Eliminate wrong options
XGBoost uses bagging to improve model accuracy. is incorrect because XGBoost does not use bagging; it uses boosting. XGBoost is designed to handle missing data by default. is incorrect because while XGBoost can handle missing data, this is not its key advantage over traditional boosting. XGBoost uses a single decision tree for predictions. is incorrect because XGBoost uses an ensemble of trees, not a single tree.Final Answer:
Option D -> Option DQuick Check:
XGBoost = Regularization advantage [OK]
Hint: XGBoost = Regularization advantage [OK]
Common Mistakes:
2. When designing a CNN for image classification, why might you choose to use a smaller receptive field in the initial layers?
medium
Solution
Step 1: Understand receptive fields
Smaller receptive fields in initial layers help capture fine-grained local features, which are crucial for understanding detailed patterns.Step 2: Eliminate wrong options
To capture more global features early on is incorrect because global features are captured in deeper layers. To reduce the computational cost of the network is incorrect as smaller receptive fields don't necessarily reduce computational cost. To increase the depth of the network without increasing parameters is incorrect because depth and parameters are not directly related to receptive field size.Final Answer:
Option C -> Option CQuick Check:
Smaller fields capture local details. [OK]
Hint: Smaller fields capture local details. [OK]
Common Mistakes:
3. When choosing between SHAP and LIME for model interpretability, which scenario makes SHAP a better choice?
medium
Solution
Step 1: Compare SHAP and LIME.
SHAP provides consistent and accurate explanations for complex models, while LIME is faster but less accurate for non-linear models.Step 2: Match the scenario to the technique.
SHAP is preferred for complex, non-linear models due to its accuracy and consistency.Final Answer:
Option D -> Option DQuick Check:
SHAP excels with complex, non-linear models. [OK]
Hint: SHAP excels with complex, non-linear models. [OK]
Common Mistakes:
4. A model is showing unexpectedly high validation accuracy but low test accuracy. What is the most likely cause?
medium
Solution
Step 1: Diagnose the issue
High validation accuracy but low test accuracy suggests the validation set may not be representative.Step 2: Eliminate wrong options
The model is underfitting the training data. would affect both validation and test accuracy, The test set is too similar to the training set. would not cause low test accuracy, and The model has too many parameters. would affect both validation and test accuracy similarly.Final Answer:
Option D -> Option DQuick Check:
Small validation set = misleading accuracy [OK]
Hint: Small validation set = misleading accuracy [OK]
Common Mistakes:
5. When considering scaling laws in Transformer models, which approach is more effective for improving model performance under a fixed computational budget?
medium
Solution
Step 1: Understand scaling laws
Scaling laws suggest that increasing dataset size often yields better performance improvements than increasing model size under a fixed budget.Step 2: Eliminate wrong options
Increasing the number of layers and B are incorrect because they increase computational cost without necessarily improving performance as effectively as more data. Increasing the learning rate is incorrect because it can lead to instability rather than improved performance.Final Answer:
Option A -> Option AQuick Check:
More data often beats bigger models. [OK]
Hint: More data often beats bigger models. [OK]
Common Mistakes:
