0:00Intro: MOFUSA Tech Academy
Welcome to MOFUSA Tech Academy. Beyond learning, towards mastery.
0:09Can a computer learn from 10,000 orders?
Every day, an online shop called Brightcart receives ten thousand orders. Every order leaves a trail: what was bought, when, where it went, how long it took, whether the customer came back. Hidden in that trail are answers worth a fortune. How much will we sell tomorrow? Which customers are about to leave? Is this five-star review real, or written by a bot? No human can read ten thousand orders a day and spot these patterns. But a computer can, if it can learn. Not follow instructions. Learn. So what does it actually mean for a machine to learn?
By the end of this video you'll know, and you'll see the map of everything we're going to build together in this course.
0:59Traditional programming vs machine learning
There are two ways to make a computer do something useful. The first is the way software has been written for decades: traditional programming. A person writes the rules. "If a review contains the words free gift, mark it as spam." The computer takes those rules, applies them to data, and produces answers. This works brilliantly when we can write the rules down. But watch what happens with spam. A spammer writes "free gift" with numbers instead of letters, and our rule misses it. So we add a rule. They change again.
We add another. The rule book grows and grows, and it's never finished. Machine learning flips the machine around. Instead of giving the computer rules, we give it data and the answers. Thousands of reviews, each one already labelled spam or real. And the computer works out the rules itself. Look at the arrows. Programming: rules plus data give answers. Machine learning: data plus answers give rules. That one swap is the whole idea. The learned "rules" don't look like if-statements. They're a mathematical function, and that function is what we call a model.
2:16What a model is: parameters and cost
So what is a model? At heart, a model is a function. Something goes in, something comes out. Here's one of the simplest. In goes how much Brightcart spends on ads in a day, out comes a prediction of that day's sales. We call the prediction y-hat. The hat means it's a guess, not the true value. Inside the model are a few adjustable numbers. Think of them as dials. In this tiny model there are just two: one we'll call w, which sets how steeply sales rise with ad spend, and one we'll call b, which sets the starting level.
Together the dials draw a line through Brightcart's data. Set them badly and the line misses every point. These red bars show how far off each prediction is, and this red number combines all those misses into one score: the cost. Now watch what learning looks like. The dials turn, a little at a time, in whichever direction makes the cost smaller. The line swings into place, and the errors shrink. That's machine learning in one picture. The dials are called parameters. A model's parameters are what it learns. And learning means adjusting the parameters to make the cost as small as possible.
In formula form, this model is y-hat equals w times x, plus b. Keep an eye on the colours. Blue will always mean a weight and teal will always mean a bias, in every episode of this course. Our model has two parameters. The language models behind modern chatbots have billions. But the idea is exactly the same: dials, a cost, and a way of turning the dials downhill.
4:06Supervised, unsupervised and reinforcement learning
Machine learning comes in three main flavours, depending on what kind of information the machine gets to learn from. The first is supervised learning. Here every example comes with the right answer attached, like a student with a teacher marking the work. This photo is a kettle. This order arrived late. On this day, three hundred dollars of ads brought in seven thousand dollars of sales. The model learns to map inputs to answers, so it can give the answer for examples it has never seen. Supervised learning is the most common kind in everyday business applications.
The second is unsupervised learning. Now there are no answers at all, just data. The machine's job is to find structure on its own. Show it all of Brightcart's customers, and it might discover that they fall naturally into three groups, even though nobody told it the groups exist. It's up to us to work out what those groups mean. The third is reinforcement learning. There's no answer key here either. Instead, the machine acts, and the world responds with rewards or penalties. A delivery robot takes a wrong turn, and loses a point.
It reaches the customer's door, and gains ten. Over thousands of attempts it learns which actions lead to the most reward. This is how machines learned to play games better than humans, and as we'll see in Season 3, it's part of how chatbots learned to be helpful.
5:40Regression vs classification, and other tasks
Let's zoom into these doors, because each one leads to a family of tasks you'll master in this season. Supervised learning splits into two big jobs. If the answer is a number, it's called regression. How much will we sell tomorrow? How many minutes will this delivery take? The output can be any value on a scale. If the answer is a category, it's called classification. Will this customer stay or leave? Is this review spam or real? Is this photo a mug, a lamp or a kettle? The output is a choice from a fixed set. Unsupervised learning has its own family.
Clustering groups similar things together. Association rules find things that go together, like customers who buy bread usually buying butter. Dimensionality reduction squeezes data with many measurements into just a few, while keeping what matters. And anomaly detection spots the odd one out, like a four-hundred-and-twenty-dollar order from an account whose orders are usually around fifty. Quick check. Pause and predict. Three tasks. Predicting how many minutes a delivery will take. Deciding whether a payment is fraud.
Finding products that sell together. Which family does each belong to? The delivery time is a number, so that's regression. Fraud or not fraud is a choice between two categories, so that's classification. And products that sell together, with no labels at all, is association rules. If you got all three, you already think like a machine learning engineer.
7:25The learning loop and the test set
Whatever kind of model we build, from a straight line to a giant neural network, training follows the same loop. First, data. Second, the model makes predictions with its current parameters. Third, a cost function measures how wrong those predictions are. If you've watched our briefing on cost functions, you've already met this step. Fourth, an optimiser adjusts the parameters to bring the cost down. Then round we go again. Here are real numbers from Brightcart's tiny sales model. Before training, the cost is forty point four.
After one pass of the loop, about two. After two passes, under one. The loop is doing its job. But there's a trap here, and it catches beginners and experts alike. A model can get very good at the data it trained on and still be useless on new data, like a student who memorised last year's exam answers. So before training, we lock part of the data away. That's the test set. The model never sees it while learning. Only at the end do we unlock it and ask the honest question: how well does this work on examples it has never seen?
That's the only score that really counts, and we'll study it properly in Module 2.
8:44How a machine learning project runs
Real machine learning isn't just "train a model". Let's follow a Brightcart project from start to finish, because this loop will guide the whole course. It starts by framing the problem precisely. Not "use AI on customers", but "which customers are likely to leave in the next thirty days, so we can win them back?" That's a classification problem, with a clear measure of success. Next, collect the data: orders, website visits, support tickets. Then prepare features: turn raw records into useful numbers, like the number of days since a customer's last order.
Then train models, starting simple. Then evaluate honestly, on data locked away from training, using the right measures. Then deploy: every night, the model scores every customer, and coupons go to those at risk. And finally, monitor: customers change, seasons change, and a model that worked in spring may drift by winter. So the loop starts again. Here's what surprises most beginners: the "train the model" step is often the smallest part. Framing the problem, getting good data and evaluating honestly usually take far more effort.
That's why this course spends so much time on them.
10:04Try it yourself: name the learning type
Let's practise. Six Brightcart tasks. For each, decide which kind of learning fits. Pause whenever you like. Predicting next week's total sales in dollars. Supervised learning, and since the answer is a number, regression. Deciding whether a support message is about delivery, refunds or damage. Supervised again, and this time the answer is a category: classification, with three classes. Finding groups of customers with similar shopping habits, without any labels.
Unsupervised learning: clustering. Learning the order of addresses that gets parcels delivered fastest, by trying routes and getting feedback. Reinforcement learning. Spotting a login from an unusual country at three in the morning. Usually anomaly detection, which is unsupervised. But here's a subtle point: if Brightcart had thousands of past logins labelled "fraud" or "genuine", it could frame the same goal as supervised classification instead. The data you have shapes the method you choose. And writing a friendly reply to a customer's question.
That's generative AI: a large language model, built with deep learning, trained mostly by predicting text, the subject of Season Three. If you got most of these, you already have the mental map that experienced practitioners use when they meet a new problem.
11:38What a model can and can't learn
One more idea before we move on, and it's one of the most important in the whole course. A model can only learn patterns that are present in its data. If Brightcart's history shows that rainy days slow deliveries, a model can learn that. If the data contains no festival weeks at all, the model has no way to know how customers behave during festivals. It will simply guess, often badly. And if the data is skewed, say Brightcart only ever sent coupons to big spenders, then the data can't tell us whether coupons would work for small spenders, and a model trained on it may draw the wrong conclusion.
A model is a mirror of its data, including the gaps and the biases. Keep that in mind every time someone shows you an impressive AI result. The first question to ask is: what data did it learn from?
12:33A short history of AI
Here's the story of AI in two minutes. In nineteen fifty, Alan Turing asked whether machines could think. In nineteen fifty-six, a summer workshop at Dartmouth launched "artificial intelligence" as a field. Two years later, Frank Rosenblatt introduced the perceptron, one of the first machines that learned from examples. You'll build one in Season Two. In the seventies and eighties, much of AI meant hand-written rules, so-called expert systems, and the field went through periods of disappointment and reduced funding, often called AI winters.
From the nineties onwards, statistical machine learning flourished: support vector machines, random forests and boosting, all of which you'll master in this season. Then, in twenty twelve, a deep neural network won a major image-recognition competition by a remarkable margin, and the deep learning era took off. In twenty seventeen came the transformer, and in the twenty-twenties, large language models brought generative AI to everyone. Every one of those milestones is a location on our map.
13:45Myth vs Fact: AI vs ML vs deep learning vs GenAI
Let's clear up a myth you'll hear everywhere: that AI, machine learning, deep learning and generative AI are four names for the same thing. They're not. They fit inside each other. Artificial intelligence is the biggest circle. It's the broad goal of making machines do things that seem intelligent. That includes systems with no learning at all, like a chess program following hand-written search rules, or a route planner. Machine learning is a part of AI. It's the approach where the system learns its behaviour from data instead of being explicitly programmed: regression lines, decision trees, clustering, all of Season 1.
Deep learning is a part of machine learning. It uses neural networks with many layers, and it's behind modern speech recognition, image recognition and language models. That's Season 2. And generative AI describes what a model does: it generates new content, like text, images, audio or code. Today, almost all generative AI is built with deep learning. That's Season 3. So when someone says "AI", ask yourself which circle they really mean. Usually, it's a small one inside a big one.
15:05Where you already use machine learning
You use machine learning dozens of times a day, usually without noticing. The spam folder in your email is a classifier. The arrival time on your maps app is a regression model, updating as traffic changes. The "because you watched" row on a streaming app is a recommendation system. The message from your bank asking "was this you?" comes from anomaly detection. The little boxes your camera draws around faces come from deep learning. And the assistant that writes back to you in full sentences is generative AI. Every one of these follows the loop we just saw: data, predictions, a cost, and parameters adjusted to reduce it.
By the end of this course, you'll understand how each of them works, from the maths up.
15:55Meet Brightcart and the AI Map
Throughout this course, we'll learn with one company: Brightcart. Meera, the founder, will give us a mission at the start of every episode. Dev runs deliveries and stock. Sana runs customer support. And every dataset we use, from sales figures and delivery times to customer reviews, product photos and support tickets, comes from their shop. All the numbers are real calculations you can check yourself in the companion notebook. And this is where we're going. The AI Map. Season one, the coast: machine learning foundations, the maths and the classic algorithms.
Season two, the mountains: deep learning and neural networks, built from a single neuron. Season three, the valley: generative AI, from language models to images made from noise. Season four, the city: building real applications with today's foundation models. And season five, the harbour: retrieval, agents, fine-tuning, and running AI in production, where we finish by building Brightcart's own AI assistant. Every episode is one location on this map. Every road means one idea depends on another. And this pin is you, right now, at the very beginning.
17:19Recap
Let's recap. Traditional programming turns rules and data into answers. Machine learning turns data and answers into rules. Those learned rules live inside a model, a function with adjustable parameters. Learning means turning those parameters to reduce a cost. Machines can learn from answers, which is supervised learning; from structure, which is unsupervised; or from rewards, which is reinforcement learning. Supervised tasks predict a number, which is regression, or a category, which is classification. And the true test of any model is data it has never seen.
If you remember one sentence, make it this one: a model is a function, and learning is turning its dials to reduce the cost.
18:09Next: vectors and matrices
Mission complete. Can a computer learn from Brightcart's orders? Yes, by adjusting its parameters to make its mistakes smaller. But to do that, the machine first needs a way to hold thousands of numbers about every customer and every order at once. That's the language of vectors and matrices, and it's where we go next. See you in the next episode.