Practice
Solution
Step 1: Identify the key advantage of continual learning.
Continual learning allows models to adapt immediately to new data without waiting for a retraining cycle.Step 2: Eliminate wrong options.
Reduced risk of catastrophic forgetting is incorrect because continual learning can increase the risk of catastrophic forgetting. Lower computational cost over time is incorrect because continual learning can be computationally expensive due to constant updates. Better performance on static datasets is incorrect because continual learning is not specifically better for static datasets.Final Answer:
Option D -> Option DQuick Check:
Continual learning adapts immediately. [OK]
import numpy as np
features = np.array([1, 2, 3, 4])
normalized = (features - np.mean(features)) / np.std(features)
print(normalized)Solution
Step 1: Understand the normalization process.
Normalization involves subtracting the mean and dividing by the standard deviation.Step 2: Calculate the mean and standard deviation.
Mean = 2.5, Standard deviation = 1.1180.Step 3: Apply normalization.
Normalized values are [-1.5, -0.5, 0.5, 1.5].Final Answer:
Option A -> Option AQuick Check:
Normalize: subtract mean, divide by std. [OK]
Solution
Step 1: Identify the technique that modifies the loss function.
Focal Loss is designed to focus more on hard-to-classify examples by adjusting the loss function.Step 2: Eliminate wrong options.
Oversampling and undersampling adjust the dataset, not the loss function. Cost-sensitive learning modifies the cost, not the focus on hard examples.Final Answer:
Option D -> Option DQuick Check:
Focal Loss focuses on hard examples. [OK]
Solution
Step 1: Consider resource constraints
Mobile devices require models that are both fast and lightweight.Step 2: Match model to constraints
Tiny YOLO is designed for environments with limited resources, balancing speed and size.Final Answer:
Option A -> Option AQuick Check:
Mobile = Tiny YOLO [OK]
Solution
Step 1: Determine the need for real-world user expectations.
Real-time feedback is crucial for understanding how the chatbot performs in actual user interactions.Step 2: Evaluate the effectiveness of each approach.
Offline evaluation using historical chat logs to simulate interactions. is limited by historical data and may not reflect current user needs. Offline evaluation with synthetic data to cover edge cases., while useful for edge cases, does not provide real user feedback. Online evaluation using a small subset of users to minimize risk. minimizes risk but may not provide comprehensive feedback.Final Answer:
Option C -> Option CQuick Check:
Real-time feedback needs online A/B testing. [OK]
