AI Field Guide
Topics / Foundations

How does a machine learn?

Imagine teaching a camera to sort ripe apples. The hard part is knowing which clues will still work at the next orchard.

Examples change the model

A grower labels photos “ready” or “wait.” During training, a program compares its guesses with those labels and adjusts numbers called weights to reduce its mistakes. A trained model is the result. Using it on a new photo is called inference.

The crate can fool the camera

Suppose every ripe apple in the training photos sits in a blue crate. The model might rely on the crate. A test made from nearly identical photos could look excellent. Now photograph ripe and unripe apples in both blue and brown crates. The new test helps reveal which clue the system picked up.

What a fair test needs

Keep some examples away from the training process. Test on different days and in different light. Count the fruit picked too early as well as the fruit left too long. The grower can then decide which mistakes are costly enough to need a second look.

Read the evidence

Keep reading · How chatbots write an answer