Week 3: Building a Real-World Housing Price Predictor
Knowledge Check — Select an answer to see immediate feedback.
Questions10
Question 1
When building a regression model for housing prices, the data pipeline typically includes a train/validation/test split. What is the purpose of the validation set, as distinct from the test set?
Question 2
Feature scaling (e.g., standardization) is an important preprocessing step for neural networks. Why does failing to scale input features often harm training?
Question 3
R-squared (R²) is a way to measure how well a regression model explains the variation in the data. If a housing price model has an R² of 0.85, what does that mean?
Question 4
Overfitting is detected by comparing performance on the training and validation sets. Which pattern most clearly signals that a model is overfitting?
Question 5
L2 regularization adds an extra penalty to the training loss that discourages the model from using very large weights. What is the practical effect of this?
Question 6
Cosine annealing adjusts the learning rate according to a smooth decreasing schedule. What is the primary motivation for reducing the learning rate during training?
Question 7
In k-fold cross-validation, the dataset is split into k equally sized folds. The model is trained k times, each time using a different fold as the validation set. What is the primary benefit of this approach over a single train/validation split?
Question 8
For a regression task like predicting housing prices, what should the output layer of a neural network look like?
Question 9
MSE and MAE are both regression metrics, but they respond differently to outliers. Which statement best captures this difference?
Question 10
Error analysis involves examining cases where a model makes the largest mistakes. What is the most useful outcome of conducting a thorough error analysis?