Machine Learning, FoundationsLesson 18 of 92

Module 2 · Linear models and the machinery of fitting

Making a straight-line model bend

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 9 of 10 in this chapter

This chapter’s goalFit and diagnose a linear or logistic model end to end: compute its loss by hand on a handful of rows, tune the learning rate from the shape of the loss curve, state what a coefficient does and does not mean in the units of the data, and explain what ridge and lasso penalties change about the fitted parameters.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch1:58Not available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Linear in the parameters, not in the data

The word “linear” in linear regression refers to the parameters, not the features. y = w1*x + w2*x^2 + b is still a linear model: it is linear in w1 and w2, which is what the normal equation and the convexity require. The fact that it draws a parabola is irrelevant to the fitting machinery.

This is more useful than it sounds, because it means you can give a linear model any shape you like by manufacturing columns.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the How a Language Model Actually Works exam.

Stuck on something?Ask Funke, your AI tutor

How to cite: Addaly (2026) ‘Making a straight-line model bend’, in Machine Learning, Foundations. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/machine-learning-foundations/making-a-linear-model-curve (Accessed: 29 November 2026).