Modern Deep Learning Foundations
- Labs
- 6
Run, inspect, and compare
Follow the three guided moves above. Change one variable at a time so every visual change has a clear cause.
Compare runs instead of trusting one result
Explain what happened, then transfer it
Use the displayed Bias squared, Variance, noise, train MSE, and held-out MSE to explain the observed fit.
Use at least one value or visible change from the experiment.Describe how you would choose model capacity and regularization when the true data-generating function is unknown.
Name the new context and the design choice you would make.- Defines a validation or resampling procedure
- Separates bias, variance, and noise
- Chooses capacity and L2 using unseen data
- Explains how stability will be monitored
Generalization and Regularization
Use the experiment to see how model capacity and regularization change training fit, held-out error, bias, and variance together.
What to change
Move polynomial degree and L2 regularization separately. Resample the data to check whether the same conclusion survives a different training set.
What to compare
Compare training MSE with held-out MSE. A widening gap is evidence of overfitting; high values for both can indicate underfitting.
What to conclude
Prefer the simplest configuration that performs consistently on unseen data, not the configuration with the lowest training error.
GENERALIZATION FAQ
What is generalization?
Generalization is a model’s ability to perform well on new observations that were not used to fit it.
How can I recognize overfitting?
Training error becomes very small while held-out error stays high or rises, and results change substantially after resampling.
How can I recognize underfitting?
Both training and held-out errors remain high because the model is too restricted to capture the useful pattern.
What does L2 regularization do?
It penalizes large coefficients, reducing model sensitivity and often improving stability on unseen data.
Is the lowest held-out error always best?
Not by itself. Confirm that the result is stable across multiple samples or validation folds and is operationally meaningful.
Why resample the observations?
Resampling reveals whether a result reflects a durable pattern or one fortunate split of the data.
What is the bias–variance trade-off?
More flexibility can reduce bias but increase sensitivity to the sample; regularization can reduce variance at the cost of some bias.
How should the final model be selected?
Use repeated validation, uncertainty, simplicity, and deployment constraints—not training performance alone.