Practice
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]
Solution
Step 1: Understand the purpose of pretraining.
Pretraining allows the model to learn general features from a large dataset.Step 2: Eliminate wrong options.
Pretraining ensures the model learns task-specific features from the start. is incorrect because pretraining focuses on general, not task-specific, features. Pretraining reduces the need for any further training on the task-specific dataset. is incorrect because fine-tuning is still necessary. Pretraining is only useful for models with a large number of parameters. is incorrect because pretraining is beneficial regardless of model size.Final Answer:
Option A -> Option AQuick Check:
Pretrain for general features, fine-tune for specific tasks. [check]
Solution
Step 1: Identify the risk of leakage in time series data
In time series, using future data for training can cause leakage.Step 2: Evaluate each option
Use all available historical data for training and testing. risks leakage by using future data, Randomly shuffle the data before splitting into training and testing sets. ignores temporal order, Include recent news articles as features in both training and testing sets. might introduce leakage if news is not time-appropriate.Final Answer:
Option C -> Option CQuick Check:
Chronological split prevents leakage in time series [OK]
Solution
Step 1: Identify LSTM-specific issues.
Incorrect initialization of forget gate biases can lead to vanishing gradients.Step 2: Eliminate wrong options.
Too many layers can cause vanishing gradients, but it's not LSTM-specific. High learning rates cause exploding gradients, and dropout affects overfitting, not gradient flow.Final Answer:
Option A -> Option AQuick Check:
Forget gate bias affects gradient flow. [OK]
Solution
Step 1: Identify MAPE's limitations.
MAPE is undefined for zero or near-zero actual values.Step 2: Eliminate wrong options.
Options A and C are generic issues not specific to MAPE. The dataset has a high variance in target values. does not directly affect MAPE's calculation.Final Answer:
Option A -> Option AQuick Check:
MAPE fails with zero values. [OK]
