Machine Learning (ML)
Machine learning is the method behind modern AI: how systems learn from data, what the three learning methods are, and where it hits its limits.
What machine learning means
In classic programming, a person writes rules: if X happens, do Y. Machine learning turns that around. An algorithm doesn't get finished rules, it gets thousands of examples and works out the rules from them itself.
The comparison with a child fits pretty well. You don't recite a list of features to teach it the difference between a dog and a cat. You show pictures and say: dog, cat, dog. At some point it recognizes the patterns by itself.
The three terms around it sit in a clear hierarchy. Artificial intelligence is the umbrella term for any machine that imitates intelligent behavior. Machine learning is a subfield of it. Deep learning in turn works with artificial neural networks and processes huge amounts of data. Large language models are one example of that, not a separate category alongside it.
What happens during training
The algorithm is just the tool, comparable to an oven. The training data is the ingredients, and the result depends on them. A very good algorithm with bad data still produces a bad model.
Training happens in two phases. In the training phase, the algorithm derives its internal weights from most of the data. A smaller part is deliberately held back, and this test data is used afterwards to check: does the model recognize patterns it has never seen, or did it just memorize the training data? The latter is called overfitting, a model that shines on old data and fails on new data.
Then comes inference, applying the model to new cases. A spam filter learns from thousands of labeled emails and applies the pattern to every new message.
The three learning methods
In supervised learning, every training example comes with the right answer, the data is labeled. An email is marked as spam, an X-ray as abnormal. Two types of tasks dominate: classification assigns a category, regression predicts a numerical value, like the price of a property. This is the most widely used method, because many companies already have labeled data.
In unsupervised learning, that label is missing. The algorithm gets raw data and looks for similarities and anomalies on its own. Clustering is typical, for example customer segments nobody defined beforehand, or anomaly detection in network traffic.
Reinforcement learning works by trial and error. An agent acts, gets a reward or a penalty and adjusts its behavior. The goal isn't the single right answer but the highest reward over many steps. This is the basis for self-driving cars and for agentic AI systems.
Where the limits are
Faulty data leads to faulty models, and no algorithm fixes that. If the training data contains biases, the model takes on the skew and makes discriminatory decisions without it being visible in the code. How data gets its quality in the first place is covered in the entry on training data.
Then there's the black box problem. With neural networks that have millions of parameters, it's often no longer possible to trace why a model decided the way it did. In lending or medical diagnosis you feel that in very practical terms.
If you're starting out yourself, pick an obvious use case rather than the most complex problem. Python is the standard language for it, scikit-learn the library for classic methods, TensorFlow and PyTorch for neural networks. Whether such systems will ever work beyond a narrow field is the debate around artificial general intelligence, and that's something fundamentally different from what runs in production today. Prompt engineering also builds on language processing.
Back to the AI and Automation Glossary.
FAQ
- Is machine learning the same as artificial intelligence?
- No, even though the terms often get used as synonyms. Artificial intelligence is the umbrella term for any machine that imitates intelligent behavior, however it does it. Machine learning is one specific method for that: systems learn from data instead of working through hard-coded rules. So a simple rule set can be AI without any machine learning behind it, but almost every capable AI in use today relies on it.
- What's the difference between supervised and unsupervised learning?
- In supervised learning, the training data already comes with the right answer, so the model learns from examples where input and output are fixed, like emails already marked as spam. In unsupervised learning, that label is missing entirely. The model gets raw data and has to find structures or groups in it on its own, without anyone saying beforehand what's right.
- Why does a machine learning model sometimes make wrong predictions?
- Usually it's not the algorithm but the training data. If the data is incomplete, outdated or skewed, the model takes on those weaknesses and reproduces them in every new prediction. Then there's overfitting: a model that has more or less memorized the training data looks strong in tests and still fails on real, new cases.

Eric Hinzpeter
Eric Hinzpeter, Senior B2B Content Strategist. He builds AI agents and marketing automation for production use and writes up what comes out of it here.
Related terms
Large Language Models
Large language models explained: how they calculate language, where they hit their limits, and why smaller models are catching up.
Training Data (AI)
AI is math, not magic, and that math is hungry. What training data is, and why its quality decides whether an AI project succeeds or fails.
Artificial General Intelligence
Artificial general intelligence is seen as the holy grail of AI research: how AGI differs from today's weak AI, and how solid the forecasts are.