Skip to content
BytePatterns

What Is Machine Learning

AI & ML: lesson 1 of 15

Learn the rule from examples instead of writing it.

Lesson 1 of 15 · 4 min

What Is Machine Learning

Step 1 of 12

Ordinary code states the rule, and the machine applies it to whatever comes in.

The Idea

Ordinary code states the rule and the machine applies it. Machine learning flips that: you supply examples paired with correct answers, and training fits a rule that reproduces them. That rule lives in numbers — parameters — not in lines anyone can read.

Real-World Example

A postal sorting centre reads handwritten postcodes. Nobody can write down what a hand-drawn seven looks like across every hand on earth. Feed the sorter millions of scanned, human-labelled envelopes and it learns the shapes anyway.

The Tradeoff

You give up readability and control. A fitted rule works only where new inputs resemble the training data, degrades quietly when the world shifts, and costs labelled data plus compute up front. When the rule is short and knowable, plain code stays cheaper, exact, and auditable.

Your turn

Put the steps in the right order.

  1. Deploy the model and watch how it behaves on live inputs
  2. Collect examples and label each one with the correct answer
  3. Train: adjust the parameters until predictions match the labels
  4. Hold back a slice of the data that training never sees

Mini quiz

1 / 3

In machine learning, where does the rule come from?