Save this video free

Lecture 3a

Prof. Schniter · 1:03:23 · Watch on YouTube

Lecture 3a Watch on YouTube →

Overview

Polynomial model order selection is framed as a trade-off between underfitting and overfitting, illustrated with 70 synthetic samples from a noisy cubic model. The lecture develops shuffled holdout and K-fold cross-validation, explains how NumPy and scikit-learn support the workflow, and uses standard errors and the one-standard-error rule to favor simpler models with performance close to the cross-validation minimum.

Key takeaways

Chapters

0:00 Polynomial Features Turn Degree Selection into Model Order Selection
3:30 Synthetic Data Uses 70 Uniform Inputs and a Noisy Cubic Truth
8:00 Degree 3 Fits the Truth, While Degrees 1 and 15 Misfit It
12:00 Why Interpolating Training Samples Can Hurt Generalization
16:00 Training MSE Keeps Favoring Higher Polynomial Degrees
21:30 Holdout Cross-Validation Evaluates Predictions on Unseen Samples
27:30 Shuffled K-Fold Cross-Validation Reuses Data for Training and Testing
34:00 Average K-Fold Errors, with Leave-One-Out as the K=n Limit
40:00 NumPy Polynomial Fits and scikit-learn Fold Indices Automate Validation
44:00 Standard Error Quantifies Uncertainty in Cross-Validation Averages
52:30 The One-Standard-Error Rule Prefers a Simpler Near-Minimum Model
57:00 Exam Handout and Follow-Up Help Close the Lecture

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:02 Welcome back everyone. I have the exams. I'm going to pass them out um just at the end of lecture and if you have to leave that's fine. I'll bring them next week as well. Um so we're going to start today with uh the first real machine learning lecture. I think until now we've just been doing very basic like numerical analysis that you might have seen in other classes, signal processing classes, things like that. [clears throat] So um the motivation uh for [clears throat] or at least how we're going to present this material is motivated by our polomial model that we talked about last time. So we said that in the case that

0:51 you had um a single feature. You can of course do this with multiple features too, but just for simplicity we'll talk about a single single feature. Um, you could make a model that has the intercept coefficient plus beta 1 times the raw feature x plus beta 2 * x^2 and then you could keep adding more coefficients with higher and higher powers of x. So in some sense, you know, all we're given is x and we are sort of synthetically making these new additional features by taking that x and raising it to higher powers. Um [clears throat]

1:38 and so in this case the model parameters for us are going to be all these different betas. We have a total of d + one. Um d is the degree of this polomial here. [snorts] And um and we know [clears throat] exactly how to find these betas because last time we said that we can just think of each of these as a feature. So this could be like the feature index by j= 1, j= 2 all the way to j equals d. In other

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Prof. Schniter.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.