Table of Contents


๐ŸŽ“ Intended learning outcomes

At the end of this lesson, students are expected to:


In this lesson, we will discuss the basics of generalization which, as we learned in the last lesson, is how well an ML model is able to predict outcome values for previously unseen data.

๐Ÿฅ‘ Test data & the return of the avocado โ˜…โ˜…โ˜†

Letโ€™s return to our avocado example from the Introduction and look again at the linear regression model we fit to your 50 avocados. We went with a not-too-complex polynomial and we were pretty happy with our results. When we applied our model to test data โ€” the new unseen avocados from customers โ€” we were pleased with the performance (and so were the customers)!