Practice
1. In the context of anomaly detection, which of the following best describes the primary advantage of using an Isolation Forest over an Autoencoder?
easy
Solution
Step 1: Understand the strengths of Isolation Forests.
Isolation Forests are known for their simplicity and interpretability, as they isolate anomalies by randomly selecting a feature and then randomly selecting a split value between the maximum and minimum values of that feature.Step 2: Eliminate wrong options.
Isolation Forests require labeled data for training. is incorrect because Isolation Forests do not require labeled data. Isolation Forests can handle high-dimensional data better than Autoencoders. is incorrect because Autoencoders are generally better suited for high-dimensional data. Isolation Forests are more suitable for detecting anomalies in time-series data. is incorrect because Isolation Forests are not inherently designed for time-series data.Final Answer:
Option D -> Option DQuick Check:
Isolation Forests = simplicity and less feature engineering [OK]
Hint: Isolation Forests = simplicity and less feature engineering [OK]
Common Mistakes:
2. In the context of intent classification, which of the following techniques is most suitable for handling imbalanced datasets?
easy
Solution
Step 1: Identify the challenge of imbalanced datasets.
Imbalanced datasets can lead to biased models that favor the majority class.Step 2: Evaluate each option.
Use a simple logistic regression model: Logistic regression without addressing imbalance will likely be biased. Use a linear SVM without any modifications: Linear SVM also suffers from imbalance without adjustments. Ignore the imbalance and focus on feature engineering: Ignoring imbalance is not a solution. Apply SMOTE (Synthetic Minority Over-sampling Technique): SMOTE is specifically designed to handle imbalance by generating synthetic samples.Final Answer:
Option A -> Option AQuick Check:
SMOTE for imbalance handling. [OK]
Hint: SMOTE is key for imbalanced datasets. [OK]
Common Mistakes:
3. In a spam detection system, which feature is most likely to be effective in identifying spam emails?
easy
Solution
Step 1: Identify effective features for spam detection
Keywords like 'free', 'win', or 'prize' are often used in spam emails.Step 2: Eliminate less effective features
Email length (A) and time of day (D) are not strong indicators of spam. Sender's domain (C) can be spoofed.Final Answer:
Option B -> Option BQuick Check:
Keywords often signal spam. [OK]
Hint: Keywords often signal spam. [OK]
Common Mistakes:
4. What is a likely failure mode if a spam detection system is not robust to adversarial attacks?
medium
Solution
Step 1: Understand adversarial attack impacts
Adversarial attacks often aim to bypass detection, leading to false negatives.Step 2: Eliminate unrelated failure modes
False positives (B) are less likely from adversarial attacks. Overfitting (C) and underfitting (D) are unrelated to adversarial robustness.Final Answer:
Option D -> Option DQuick Check:
Adversarial attacks increase false negatives. [OK]
Hint: Adversarial attacks increase false negatives. [OK]
Common Mistakes:
5. As a content-based filtering system scales to 10x more items, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Analyze scaling impact
Scaling to more items increases the demand for computing and updating item embeddings, making it a potential bottleneck.Step 2: Eliminate wrong options
A: User profile storage scales with users, not items. C: Recommendation generation is more affected by user scale. D: Interaction logging is more about user activity than item count.Final Answer:
Option A -> Option AQuick Check:
More items strain embedding computation. [OK]
Hint: More items strain embedding computation. [OK]
Common Mistakes:
