Part 02

How does Machine Learning work?

What machine learning actually is, how computers learn from data, and the three main types explained without jargon.

Start with a story

A child learns what a dog is by seeing hundreds of dogs — big ones, small ones, fluffy ones, smooth ones. No one hands them a rulebook. After enough examples, they can identify a dog they’ve never seen before.

Machine learning is the same idea, applied to computers.

The core shift

Traditional programming works like this:

Rules + Data → Answers

Machine learning flips it:

Data + Answers → Rules (discovered automatically)

You don’t write the rules. You feed the system enough labelled examples and let it discover the patterns.

Three types of machine learning

Supervised learning

You provide labelled examples: “this email is spam / this email is not spam.” The system learns to classify new emails it’s never seen.

Used for: image classification, fraud detection, medical diagnosis.

Unsupervised learning

No labels. The system finds structure on its own.

Give it a million customer records and it discovers natural groupings — without you telling it what to look for.

Used for: customer segmentation, anomaly detection, compressing data.

Reinforcement learning

The system learns by trial and error. Good moves earn rewards. Bad moves earn penalties.

Used for: game-playing AI (AlphaGo, chess engines), robot control, recommendation tuning.

The key constraint: data

Every ML system is only as good as its training data. A model trained on biased data will produce biased outputs. A model trained on too little data will be unreliable.

This is why the next part is about data — it’s the most important ingredient in any ML system.

Next part coming soon

Come back to read all parts in the series.

← Back to series