Practice
1. In the context of framing a business problem as an ML problem, which of the following is the most crucial first step?
easy
Solution
Step 1: Identify the core requirement
The first step in framing a business problem as an ML problem is to clearly define the business objective. Without a clear objective, the ML model cannot be aligned with business goals.Step 2: Eliminate wrong options
Selecting the right algorithm is incorrect because algorithm selection comes after defining the problem. Collecting as much data as possible is incorrect because data collection should be guided by the problem definition. Ensuring high computational resources is incorrect because computational resources are a consideration after the problem is defined.Final Answer:
Option D -> Option DQuick Check:
Start with a clear business goal. [OK]
Hint: Start with a clear business goal. [OK]
Common Mistakes:
2. In the context of model interpretability, which technique is best suited for explaining individual predictions of a complex model?
easy
Solution
Step 1: Identify the purpose of each technique.
PCA is for dimensionality reduction, K-Means for clustering, and Linear Regression for prediction, not explanation.Step 2: Match the technique to the task.
SHAP is specifically designed to explain individual predictions of complex models.Final Answer:
Option A -> Option AQuick Check:
SHAP explains individual predictions. [OK]
Hint: SHAP explains individual predictions. [OK]
Common Mistakes:
3. When training a deep neural network, which approach is more suitable to mitigate the vanishing gradient problem?
medium
Solution
Step 1: Identify methods to mitigate vanishing gradients
ReLU activation functions help mitigate the vanishing gradient problem by maintaining gradients through layers.Step 2: Eliminate wrong options
Use a very small learning rate. is incorrect because a small learning rate doesn't address vanishing gradients. Increase the number of layers. exacerbates the problem. Use L2 regularization. is unrelated to gradient flow.Final Answer:
Option D -> Option DQuick Check:
ReLU helps maintain gradients. [OK]
Hint: ReLU helps maintain gradients. [OK]
Common Mistakes:
4. You implemented stratified sampling but notice that the sample still has class imbalance. What is the most likely cause?
medium
Solution
Step 1: Identify the stratified sampling requirement.
Stratified sampling requires correct class proportion specification.Step 2: Eliminate unrelated issues.
Random Sampling (B) would not be used if stratified was intended. Data leakage (C) affects model performance, not sampling. Sample size (D) affects variability, not imbalance directly.Final Answer:
Option C -> Option CQuick Check:
Check class proportions in stratified sampling [[check]]
Hint: Check class proportions in stratified sampling [[check]]
Common Mistakes:
5. You are tasked with designing a system to detect fraudulent transactions. Which approach is most appropriate given the need for adaptability to new fraud patterns?
hard
Solution
Step 1: Consider the need for adaptability.
Fraud patterns change over time, requiring a system that can learn and adapt.Step 2: Evaluate the options for adaptability.
Only a machine learning model that can be retrained offers the necessary adaptability.Final Answer:
Option D -> Option DQuick Check:
ML adapts, rules are static. [OK]
Hint: ML adapts, rules are static. [OK]
Common Mistakes:
