AI Foundations ยท 1.2
๐ How Machines Learn
The training loop that turns data into 'intelligence'โฑ ~2 min
๐ฒLearning to ride a bike, not reading a manual
Nobody learns to ride a bike from a written manual. You try, you wobble, you fall, you adjust, you try again โ until your body just 'knows' it. Machine learning works the same way: the model makes a guess, sees how wrong it was, adjusts slightly, and repeats thousands of times until it's good.
The Core Idea: Learn From Examples
Instead of a human writing every rule, you give the machine a big pile of examples and let it find the pattern. Show it enough photos labeled 'cat' and 'dog', and it figures out โ on its own โ what makes a cat look like a cat. The 'learning' is the machine slowly adjusting its internal numbers to make fewer mistakes.
The Vocabulary You'll See Everywhere
| Term | Plain-English Meaning |
|---|---|
| Model | The thing that learned โ a big set of numbers that turns inputs into predictions |
| Training | The process of feeding examples in and adjusting the model to be more accurate |
| Training data | The examples used to teach the model โ quality and quantity both matter enormously |
| Features | The individual pieces of information the model looks at (e.g., pixel colors, word counts) |
| Label | The 'correct answer' attached to a training example (e.g., 'this photo = cat') |
| Inference / prediction | Using the trained model on new, unseen data to get an answer |
| Parameters / weights | The internal numbers the model adjusts during training โ big models have billions |
Why Data Quality Is Everything
๐ Security'Garbage in, garbage out' is the iron law of ML. A model can only learn from what it's shown. If your training data is biased, incomplete, or wrong, the model will confidently reproduce those flaws โ and it can't tell you it's wrong. This is why data quality matters more than clever algorithms.
โ
FactA famous cautionary tale: a model trained to spot skin cancer in photos learned to flag rulers instead โ because in its training photos, cancerous moles were more often photographed next to a ruler for scale. The model found a real pattern in the data, just not the one anyone wanted. This is why understanding your data matters.
๐ง Quick Checkfirst try = +5 XP
In machine learning, where does the 'intelligence' come from?
๐ฎ Practice what you learned
โญ 0 XP๐ฅ 0 days