Practice
Solution
Step 1: Identify the role of each MLflow component
MLflow Registry is designed to store and manage model artifacts.Step 2: Eliminate wrong options
MLflow Tracking logs metrics and parameters, MLflow Projects handles reproducibility, and MLflow Models deals with model packaging.Final Answer:
Option A -> Option AQuick Check:
Registry = Artifacts [OK]
Solution
Step 1: Understand initialization impact
K-Means++ initialization helps in spreading initial centroids to avoid poor local minima.Step 2: Eliminate wrong options
Random initialization can lead to poor local minima. Using centroids from a previous run might not improve if the previous run was suboptimal. Initializing all centroids to the same point is clearly incorrect.Final Answer:
Option A -> Option AQuick Check:
K-Means++ spreads centroids well [OK]
Solution
Step 1: Identify the method for minimizing squared differences
Least Squares is specifically designed to minimize the sum of squared differences between observed and predicted values.Step 2: Eliminate wrong options
Gradient Descent is an optimization algorithm, Maximum Likelihood Estimation is a general statistical method, and Ridge Regression is a regularized version of least squares.Final Answer:
Option A -> Option AQuick Check:
Least Squares minimizes squared differences. [OK]
import numpy as np
from scipy.stats import norm
confidence_level = 0.95
z_score = norm.ppf((1 + confidence_level) / 2)
print(round(z_score, 2))Solution
Step 1: Calculate z-score for 95% confidence
The z-score for a 95% confidence level is calculated using the inverse of the cumulative distribution function (CDF) for a standard normal distribution.Step 2: Evaluate code output
The code correctly calculates the z-score as 1.96 for a 95% confidence interval.Final Answer:
Option C -> Option CQuick Check:
95% confidence z-score is 1.96 [OK]
Solution
Step 1: Evaluate computational needs
Semantic segmentation is generally less computationally intensive than instance or panoptic segmentation.Step 2: Eliminate wrong options
Instance segmentation is more detailed and resource-heavy, panoptic combines both, and object detection is not segmentation.Final Answer:
Option C -> Option CQuick Check:
Semantic = Less computation than instance [OK]
