# Machine Learning Basics

> What machine learning is, and how a model learns rules from examples. What features, labels and weights are, shown with house prices.

**Course:** [Machine Learning](https://learn.benibix.com/learn/ai-machine-learning)  
**Time:** 11 min

**After this lesson you can:**

- Say what machine learning is
- Point to the features and the label in a table
- Explain what training changes in a model

## What machine learning is, and how it learns

Machine learning is a way to build AI where the computer learns rules from examples. Nobody types the rules in. Arthur Samuel made the name popular in 1959, with a program that got better at checkers by playing. Today it sorts spam, sets prices and spots fraud.

The examples are the training data. In a table, each row is one example: one house, one email, one payment. Each column the model reads is a feature, like a house's size or its distance to town. The column it learns to guess is the label, like the price the house sold for.

Inside, a model is a set of numbers called parameters. A simple price model might have just two: a base price and a price per square metre. Training starts them at any value. It nudges them, row by row, until the guesses match the labels as closely as it can.

The nudging needs a way to say how wrong a guess was. If the model says 300,000 euros and the house sold for 340,000, it is 40,000 off. Training adds up those misses over every row, then moves the parameters to shrink the total. That loop is the whole of learning.

AI is the big field, and machine learning is the part that learns from data. Deep learning is the part of it that uses networks with many layers. Every deep learning model is machine learning. Not every AI program is, because some still run on rules written by hand.

The data sets the limit. A model can only learn patterns that are in its rows. If every house in the data is in one city, its guesses for another city are poor. If the labels are wrong, it learns the wrong lesson, and learns it well.

This course covers how models learn, the main kinds, and the classic ways to build one. It stops at building. How to score a model in depth, and how to run one for real users, are subjects of their own. People often rush to the model. Most of the work, and most of the wins, are in the data.

![A table of four houses. The first three columns, size, rooms and distance to town, are marked features, what the model reads. The last column, price, is marked the label, the answer. The first house is 85 square metres with 3 rooms, 2 km from town, and sold for 310,000 euros.](https://learn.benibix.com/diagrams/ml-features-labels.svg)

### Example: Emma prices flats

Emma has 2,000 past flat rentals. Each row has the size, the floor and the street, plus the rent it got.

Training finds a base rent and a price for each extra square metre. For a new 60 square metre flat, the model guesses 1,200 euros a month.

**Words in this lesson:** [Machine Learning](https://learn.benibix.com/term/ai/machine-learning), [Training Data](https://learn.benibix.com/term/ai/training-data), [Feature (Machine Learning)](https://learn.benibix.com/term/ai/feature), [Label (Machine Learning)](https://learn.benibix.com/term/ai/label), [Model Parameter](https://learn.benibix.com/term/ai/model-parameter)

**Question:** What does a machine learning model learn from?

**Answer:** Examples, most often with the right answers. The model finds the rules in rows of examples. People supply the data, and often the labels, but not the rules.

---

Source: https://learn.benibix.com/learn/ai-machine-learning/machine-learning-basics
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
