AI Literacy · Hands-on Lab

Teach a Line to Predict

Five minutes, no math. Drive the simplest machine-learning model yourself and feel what 'training' means.

You just saw learning as data → patterns → prediction. Here is the smallest possible version of that idea, and you get to run it. The task: teach a straight line to predict a number — say, a house price from its size — by finding the line that sits closest to every data point.

Nudge the line by hand first, then press Train and watch the model do the same search automatically, shrinking its error step by step until the line settles into the best fit.

What's next

Predicting a number is one flavor of learning. Next you'll meet the other — sorting things into groups — and the rest of what it takes to think like the engineer behind these systems: AI as an Engineer.

Test your understanding

Prof is ready

Prof will ask you questions about regression, fitting a line, prediction from data — not explain it. You'll be surprised what you don't know until you have to say it.

Finished this lesson?

Read through the lesson first (0/20s).