Practice
1. In the context of the bias-variance tradeoff, which of the following is a characteristic of a high-bias model?
easy
Solution
Step 1: Identify characteristics of high-bias models
High-bias models are typically simple and underfit the training data.Step 2: Eliminate wrong options
It has high flexibility and can fit the training data well. describes high-variance models. It has high variance and is sensitive to noise in the training data. is incorrect as it describes high-variance models. It performs well on both training and unseen data. is incorrect because high-bias models do not perform well on training data.Final Answer:
Option A -> Option AQuick Check:
High-bias models underfit. [OK]
Hint: High-bias models underfit. [OK]
Common Mistakes:
2. In the context of Support Vector Machines, what is the primary purpose of the margin?
easy
Solution
Step 1: Understand the role of the margin
The margin in SVM is the distance between the decision boundary and the nearest data points from either class.Step 2: Eliminate wrong options
To minimize the number of support vectors is incorrect because the number of support vectors is not minimized. To ensure the model is non-linear is incorrect because the margin itself does not ensure non-linearity. To reduce the dimensionality of the data is incorrect because the margin does not reduce dimensionality.Final Answer:
Option B -> Option BQuick Check:
Margin maximizes boundary distance [OK]
Hint: Margin maximizes boundary distance [OK]
Common Mistakes:
3. A model using RAG prompting is producing irrelevant information. What is the most likely cause?
medium
Solution
Step 1: Analyze RAG prompting
RAG relies on retrieving relevant documents to generate accurate responses.Step 2: Eliminate wrong options
The model is not trained on enough data. is incorrect as training data size is unrelated to retrieval. The prompt is too short. is incorrect because prompt length doesn't affect retrieval. The model's architecture is outdated. is unrelated to the issue.Final Answer:
Option A -> Option AQuick Check:
Irrelevant info? Check retrieval component in RAG. [OK]
Hint: Irrelevant info? Check retrieval component in RAG. [OK]
Common Mistakes:
4. A recurrent neural network is not learning effectively. The loss plateaus early during training. What is the most likely cause?
medium
Solution
Step 1: Identify symptoms of vanishing gradient.
Early plateauing of loss often indicates vanishing gradients.Step 2: Eliminate other causes.
High learning rate (A) would cause erratic loss, overfitting (B) would show low training loss, and small dataset (D) would not cause early plateau.Final Answer:
Option C -> Option CQuick Check:
Early plateau = vanishing gradient. [check]
Hint: Early plateau = vanishing gradient. [check]
Common Mistakes:
5. In a recommendation system, how would you apply feature engineering to improve the model's ability to capture user-item interactions?
hard
Solution
Step 1: Identify the need for capturing interactions.
Recommendation systems benefit from understanding user-item interactions.Step 2: Evaluate feature engineering techniques.
Collaborative filtering (A) is a model, not feature engineering. One-hot encoding (B) doesn't capture interactions. Normalizing (D) doesn't enhance interaction capture. Interaction terms (C) explicitly model user-item interactions, improving the system's ability to recommend.Final Answer:
Option A -> Option AQuick Check:
Interaction terms enhance user-item interaction capture. [OK]
Hint: Interaction terms enhance user-item interaction capture. [OK]
Common Mistakes:
