Practice
import numpy as np
x = np.array([1, 2, 3])
y = np.array([4, 5, 6])
result = np.dot(x, y)
print(result)What does this code output?Solution
Step 1: Understand np.dot behavior
np.dot for 1D arrays computes the dot product, which is a scalar.Step 2: Calculate the dot product
1*4 + 2*5 + 3*6 = 32.Final Answer:
Option C -> Option CQuick Check:
np.dot 1D arrays = scalar [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 constraint.
Cannot alter training data, need fairness in predictions.Step 2: Choose the suitable technique.
Post-processing techniques adjust predictions to ensure fairness without altering the model or data.Final Answer:
Option D -> Option DQuick Check:
Post-processing adjusts predictions, not data. [OK]
Solution
Step 1: Understand MLflow's capabilities
MLflow alone does not track data lineage; integration is needed.Step 2: Evaluate options for lineage tracking
Integrating with a dedicated lineage tool provides comprehensive tracking.Final Answer:
Option B -> Option BQuick Check:
Lineage needs integration [OK]
Solution
Step 1: Determine system requirements
Autonomous vehicles need both object detection and detailed scene understanding.Step 2: Evaluate segmentation approaches
Semantic lacks instance detail, instance lacks semantic context, object detection is not segmentation.Final Answer:
Option B -> Option BQuick Check:
Panoptic = Comprehensive scene understanding [OK]
