Practice
Solution
Step 1: Identify the type of drift.
Covariate drift refers to changes in the distribution of input features.Step 2: Eliminate wrong options.
Label drift involves changes in the distribution of the output labels. Concept drift involves changes in the relationship between inputs and outputs. Feature drift is not a standard term.Final Answer:
Option C -> Option CQuick Check:
Covariate drift = input feature change [OK]
import numpy as np
business_goals = np.array(['increase sales', 'reduce churn', 'improve satisfaction'])
ml_problems = np.array(['classification', 'regression', 'clustering'])
result = np.char.add(business_goals, ml_problems)
print(result)Solution
Step 1: Understand the operation
The np.char.add function concatenates corresponding elements of two arrays element-wise.Step 2: Eliminate wrong options
['increase sales', 'reduce churn', 'improve satisfaction'] and C are incorrect because they ignore the concatenation operation. Throws an error due to incompatible types is incorrect because np.char.add handles string arrays correctly.Final Answer:
Option A -> Option AQuick Check:
np.char.add concatenates strings element-wise. [OK]
Solution
Step 1: Consider overfitting risks.
Oversampling can lead to overfitting by duplicating minority samples.Step 2: Evaluate undersampling.
Undersampling reduces the majority class, lowering overfitting risk while balancing classes.Final Answer:
Option A -> Option AQuick Check:
Undersampling reduces overfitting risk. [OK]
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]
Solution
Step 1: Consider the task requirements
Complex spatial hierarchies require the ability to learn multiple levels of abstraction, which deep networks are better suited for.Step 2: Eliminate wrong options
A shallow network because it trains faster. is incorrect because training speed is not the primary concern. A shallow network because it requires less data. is incorrect because data requirements depend on the task complexity. A deep network because it always generalizes better. is incorrect because deep networks do not always generalize better.Final Answer:
Option C -> Option CQuick Check:
Deep networks for complex hierarchies. [OK]
