Practice
1. In the context of backpropagation, which of the following best describes the role of the chain rule?
easy
Solution
Step 1: Understand the chain rule in backpropagation
The chain rule is used to compute the gradient of the loss function with respect to each weight by propagating gradients backward through the network.Step 2: Eliminate wrong options
It updates the weights directly without considering the gradient. is incorrect because the chain rule involves gradients. It prevents the vanishing gradient problem by normalizing gradients. is incorrect because it doesn't address vanishing gradients directly. It ensures that the learning rate is adaptive for each layer. is incorrect because the chain rule is not about adaptive learning rates.Final Answer:
Option B -> Option BQuick Check:
Chain rule computes gradients for weights. [OK]
Hint: Chain rule computes gradients for weights. [OK]
Common Mistakes:
2. In the context of image segmentation, which type of segmentation assigns a unique label to each pixel of an image based on the object class it belongs to, without distinguishing between different instances of the same class?
easy
Solution
Step 1: Understand the segmentation types
Semantic segmentation labels each pixel according to the object class, without distinguishing instances.Step 2: Eliminate wrong options
Instance segmentation distinguishes between instances, panoptic combines both semantic and instance, and object detection is not segmentation.Final Answer:
Option A -> Option AQuick Check:
Semantic = Class labels only [OK]
Hint: Semantic = Class labels only [OK]
Common Mistakes:
3. In the context of fairness in machine learning, which of the following techniques is specifically designed to ensure that a model's predictions are equally accurate across different demographic groups?
easy
Solution
Step 1: Identify the technique focused on fairness.
Adversarial debiasing is specifically designed to reduce bias by ensuring equal accuracy across groups.Step 2: Eliminate wrong options.
Data augmentation (A) is for increasing data diversity, cross-validation (C) is for model validation, and gradient boosting (D) is for improving model accuracy, not fairness.Final Answer:
Option B -> Option BQuick Check:
Adversarial debiasing ensures fairness across groups. [OK]
Hint: Adversarial debiasing ensures fairness across groups. [OK]
Common Mistakes:
4. When deciding between MLflow and Weights & Biases for experiment tracking, which scenario makes MLflow a better choice?
medium
Solution
Step 1: Compare MLflow and W&B features
MLflow is often chosen for self-hosting due to its open-source nature.Step 2: Match features to scenarios
MLflow's self-hosting is ideal for environments with strict data privacy requirements.Final Answer:
Option C -> Option CQuick Check:
MLflow = Self-hosting [OK]
Hint: MLflow = Self-hosting [OK]
Common Mistakes:
5. You are working with a neural network on a dataset with features on vastly different scales. Which scaling method should you apply and why?
hard
Solution
Step 1: Consider the effect of feature scaling on neural networks.
Neural networks can benefit from standardized inputs as they handle different scales better.Step 2: Choose the appropriate scaling method.
Standardization is preferred for neural networks as it centers data and scales by variance, which helps in convergence.Final Answer:
Option B -> Option BQuick Check:
Standardize for neural networks, handles scales better. [OK]
Hint: Standardize for neural networks, handles scales better. [OK]
Common Mistakes:
