Practice
Solution
Step 1: Compare Word2Vec and BERT
Word2Vec is less resource-intensive and faster than BERT, which is beneficial when resources are limited.Step 2: Eliminate wrong options
Options A, C, and D require deep contextual understanding, which BERT handles better than Word2Vec.Final Answer:
Option B -> Option BQuick Check:
Word2Vec for speed, BERT for context [OK]
Solution
Step 1: Identify overfitting causes
Overfitting can occur if the model is too complex, such as having trees with high max depth.Step 2: Eliminate wrong options
The learning rate is too low, causing the model to converge slowly. is incorrect because a low learning rate would not cause overfitting. The number of boosting rounds is too low, leading to underfitting. is incorrect because too few rounds would cause underfitting, not overfitting. The regularization parameters are set too high, restricting model complexity. is incorrect because high regularization would prevent overfitting, not cause it.Final Answer:
Option A -> Option AQuick Check:
High max depth = Overfitting risk [OK]
Solution
Step 1: Identify the key factor for online data collection
Online data collection is crucial when real-time feedback is needed to update recommendations dynamically.Step 2: Eliminate factors not specific to online collection
Options B, C, and D do not specifically require online data collection; they can be addressed with offline methods.Final Answer:
Option A -> Option AQuick Check:
Real-time needs = online collection. [OK]
Solution
Step 1: Understand dropout in RNNs
Using the same dropout mask at each time step helps maintain temporal dependencies.Step 2: Eliminate wrong options
Apply dropout to the input and output layers only. is incorrect because it doesn't address hidden state dropout. Apply dropout to the hidden states at each time step. is incorrect because applying dropout to hidden states at each time step can disrupt dependencies. Increase the dropout rate progressively over time. is incorrect because increasing dropout rate over time is not a standard practice and can lead to underfitting.Final Answer:
Option D -> Option DQuick Check:
Same mask preserves RNN dependencies. [OK]
Solution
Step 1: Identify latency reduction strategies
Reducing the number of trees and their depth directly decreases computation time per prediction.Step 2: Eliminate wrong options
Use a batch prediction approach to handle multiple requests at once. is incorrect because batch processing increases latency for individual requests. Deploy the model on a high-performance GPU server. is incorrect because LightGBM is CPU-optimized. Use a distributed computing framework to parallelize predictions. is incorrect because distributed frameworks add overhead, increasing latency.Final Answer:
Option C -> Option CQuick Check:
Fewer trees = Lower latency [OK]
