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.

๐Ÿ“ฆTraining Data1000s of examplesโš™๏ธTrainingfind the patterns๐Ÿง Modellearned 'rules'predictions๐ŸŽฏwrong predictions โ†’ adjust and try again (thousands of times)Nobody writes the rules โ€” the machine finds them by practicing on examples
The training loop โ€” the model practices on data and corrects itself thousands of times

The Vocabulary You'll See Everywhere

TermPlain-English Meaning
ModelThe thing that learned โ€” a big set of numbers that turns inputs into predictions
TrainingThe process of feeding examples in and adjusting the model to be more accurate
Training dataThe examples used to teach the model โ€” quality and quantity both matter enormously
FeaturesThe individual pieces of information the model looks at (e.g., pixel colors, word counts)
LabelThe 'correct answer' attached to a training example (e.g., 'this photo = cat')
Inference / predictionUsing the trained model on new, unseen data to get an answer
Parameters / weightsThe 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?

โญ 0 XP๐Ÿ”ฅ 0 days