AI & ML Beginner By Samson Tanimawo, PhD Published Jan 7, 2025 8 min read

What Is Machine Learning? A Beginner's Guide

Machine learning is software that gets better with examples, not by a human rewriting its rules. Once you see that distinction, every ML concept lines up behind it.

The one-sentence definition

Machine learning is software that improves at a task by seeing examples, instead of by a human writing more rules. That single sentence is the whole field in a sentence. Everything else (neural networks, gradient descent, transformers) is machinery for how that improvement happens.

The word “learning” here is doing a lot of work. The program doesn’t understand in any human sense. It adjusts numbers inside itself until its outputs match the examples it was trained on. Those numbers, once tuned, can then be applied to new inputs.

Regular programming vs machine learning

In regular programming, a human writes rules (if this, then that), and the computer follows them. The computer is a tireless but unthinking executor.

In machine learning, the human writes the shape of the solution (a model architecture), feeds it pairs of inputs and the desired outputs, and lets an optimiser find numeric weights that make the model produce the right outputs. The human specifies the target; the machine finds the recipe.

This flips the expensive part of the work. In regular programming, expressing the logic is expensive and running it is cheap. In ML, running the training is expensive (sometimes astronomically so), but expressing the logic is often just a few dozen lines.

The three flavours you’ll hear about

Ninety-five percent of practical ML falls into one of three categories. Learn these three words and you can read almost any ML job description.

A newer fourth category, self-supervised learning, is what powers the big language models of today: the “label” is predicting the next word in a sentence, which is free to generate at internet scale.

A simple mental example

Imagine you want a program that can look at photos of fruit and answer “is this an apple?” The classical approach is to write rules: colour between these ranges, roughly spherical, stem on top. You’d spend a week writing rules and the program would still fail on dim lighting or unusual angles.

The ML approach: collect 5,000 photos, half labelled apple and half not, and train a small image classifier. No rules about colour or shape. The model learns the rules on its own by minimising its error on the training photos. It ends up much better than the hand-written version, and you never had to specify what an apple looks like.

Where ML already touches your life

Each one is a supervised learning model trained on examples you and millions of other users generated by using the product.

When NOT to use machine learning

ML is not a hammer for every problem. Before you reach for it, ask three questions:

What to learn next, this week

Pick one. Do it end to end, badly, this week. That’s the only path that works.

One hands-on weekend teaches more than a month of passive reading. The field rewards builders.