May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
This idea carries a full system design question on its own. Each walks through the full answer.
AI Engineering · Data Engineering For Ml
Free preview: the first part of this 24-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI courseread the rest of this lesson in
Generative AI and Agentic AI Engineering
Unlock this lesson and the 208 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI coursein Data Engineering For Ml
This lesson is part of the AI Engineering course. Unlock the full course, a separate one-time payment, for lifetime access.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime AccessFoundation lessons of this course are free, no payment needed. Try them now
Imagine two ways to find out about the roads before you drive to work. The first is the morning paper. It is printed once, in the night, from everything the reporters learned during the day before. It is cheap, it is complete, and it is right about yesterday. The second is the traffic report on the radio. Someone reads it out every few minutes, from calls that come in while you listen. It needs people on duty all day and all night, it is never finished, and it can tell you that a bridge closed ten minutes ago.
For some questions the paper is all you need: which roads are usually busy on a Monday, or how long some roadworks will last. For others only the radio will do: is the bridge open right now? Paying a radio station to tell you about next month's roadworks is waste. Reading last night's paper to find out whether the bridge is open right now is no use at all.

A program that learns from examples, which the rest of this course calls a model, has exactly this choice for every number it reads. Take a bank's check on card payments. Here is a made-up example: a card is used in Lagos, and ninety seconds later the same card is used in Toronto.
A program can stop the second payment if it looks at one number: how many times was this card used in the last five minutes? But that number has to be current, this minute. Say it was worked out by a job that ran at 2 AM. Then it still says whatever it said at 2 AM. The payment goes through, and the money is gone. Nothing in the program was wrong. The number it read was old.
Now take a program that guesses which customers will cancel next month, from what they did over the last 90 days. Does it matter whether its numbers are two seconds old or eight hours old? Not at all. Working them out once a night, in one big run, is far cheaper than updating them every time a customer does anything.
Same company, opposite needs. This lesson measures that choice on real data, and the answer turns out to depend less on the program than on each number it reads.