Practice
1. Which dimensionality reduction technique is most suitable for visualizing high-dimensional data while preserving local structures?
easy
Solution
Step 1: Understand the purpose of each technique
PCA is used for linear dimensionality reduction, UMAP is similar to t-SNE but faster, and LDA is for supervised dimensionality reduction.Step 2: Identify the technique that preserves local structures
t-SNE is specifically designed to preserve local structures in high-dimensional data.Final Answer:
Option A -> Option AQuick Check:
t-SNE for local structures [OK]
Hint: t-SNE for local structures [OK]
Common Mistakes:
2. A model registered in MLflow Registry is not showing the expected performance in production. What is the most likely cause?
medium
Solution
Step 1: Analyze potential causes of performance issues
Data discrepancies are a common cause of unexpected model performance.Step 2: Eliminate less likely causes
Incorrect dataset usage is more likely than versioning or packaging issues.Final Answer:
Option D -> Option DQuick Check:
Check dataset consistency [OK]
Hint: Check dataset consistency [OK]
Common Mistakes:
3. You have a model that is overfitting. Which approach is more suitable to address this issue?
medium
Solution
Step 1: Identify methods to combat overfitting
Dropout is a regularization technique that helps prevent overfitting by randomly dropping units during training.Step 2: Eliminate wrong options
Increase the model complexity by adding more layers. increases overfitting risk, Reduce the size of the training dataset. reduces data, worsening generalization, and Use a smaller learning rate. affects convergence speed, not overfitting directly.Final Answer:
Option A -> Option AQuick Check:
Dropout reduces overfitting [OK]
Hint: Dropout reduces overfitting [OK]
Common Mistakes:
4. A fine-tuned model is underperforming on a specific task despite using a well-known pretrained model. What is a likely cause?
medium
Solution
Step 1: Identify common issues in fine-tuning.
Small task-specific datasets can lead to poor adaptation of pretrained models.Step 2: Eliminate wrong options.
The pretrained model was not trained on a large enough dataset. is incorrect because the pretrained model's dataset size is not the issue. The learning rate during fine-tuning was too high, causing overfitting. is incorrect because a high learning rate typically causes instability, not overfitting. The pretrained model's architecture is incompatible with the task. is incorrect because architecture incompatibility would prevent fine-tuning altogether.Final Answer:
Option D -> Option DQuick Check:
Small dataset? Poor fine-tuning. [check]
Hint: Small dataset? Poor fine-tuning. [check]
Common Mistakes:
5. You are tasked with building a multilingual language model. Which tokenization method would best handle multiple languages with different scripts and why?
hard
Solution
Step 1: Consider the requirements for multilingual tokenization.
SentencePiece is designed to handle multiple scripts and does not rely on whitespace, making it suitable for multilingual models.Step 2: Eliminate wrong options.
BPE (A) and WordPiece (B) are less effective with diverse scripts; character-level (D) is too granular and inefficient.Final Answer:
Option B -> Option BQuick Check:
SentencePiece handles scripts without whitespace. [OK]
Hint: SentencePiece handles scripts without whitespace. [OK]
Common Mistakes:
