Machine learning is a way to fit a model to examples so it can make predictions or produce outputs on new inputs. A useful system depends on more than an algorithm: data quality, the objective, evaluation design and the context in which it will be used all matter.
Start with the task, not the model
Before choosing a technique, define the job. Is the system classifying an email as spam, estimating tomorrow’s energy demand, grouping similar documents or choosing an action based on feedback? A precise task gives a team something to measure. “Use AI” is not a task description. If you need the broader terminology first, start with our guide to artificial intelligence.
A model is a mathematical function that maps input information to an output. For a spam filter, the input might include features of a message and the output might be a probability that it is spam. The model contains adjustable parameters; training changes those parameters to improve performance according to a chosen objective.
A simple example: a spam filter
Imagine a mailbox with many messages that people have labeled “spam” or “not spam.” A supervised learning system receives examples and their labels. During training, it finds patterns that help predict the label. It might learn from combinations of words, sender information and other permitted features.
The intended outcome is not to memorize each old message. It is to perform well on messages the model has not seen before. That ability is called generalization. A filter that marks familiar training emails correctly but fails on new mail has learned a poor rule, even if its training score looks impressive.
Training and inference are different
Training is the process of fitting a model using data and an objective. Inference is using the resulting model to make a prediction or generate an output for a new input. In many deployed systems, inference does not update the model; training and updating happen through a separate process.
This distinction helps explain why a service may appear to “learn” from usage but not actually change its model with each interaction. A product might store feedback for later evaluation, or it might update frequently. The exact behavior depends on its design and privacy practices, so users should consult the product documentation.
Three broad learning setups
| Approach | What examples contain | Example task | | --- | --- | --- | | Supervised learning | Inputs paired with labels or target values | Classify a transaction or estimate a price | | Unsupervised learning | Inputs without supplied target labels | Find groups or unusual patterns in records | | Reinforcement learning | Actions, feedback and outcomes | Learn a policy for decisions over time |
These categories are teaching tools. Real systems can mix methods, and newer approaches such as self-supervised learning create training signals from the data itself.
Why the data and objective matter
Data represents the world a model gets to see. If important groups, situations or edge cases are missing, the system may work unevenly. Labels can be noisy or reflect past decisions rather than a neutral truth. Even a large dataset can be misleading if it was collected under conditions unlike the ones where the model will be used.
The objective matters too. Suppose a delivery company asks a system to minimize average delivery time. If it does not account for safety, accessibility or how delays affect different neighborhoods, it may optimize a narrow proxy while missing the real goal. Machine learning follows the incentives built into the measurements; it does not decide whether those measurements are fair or sufficient.
How evaluation catches mistakes
Teams commonly divide available examples into training, validation and test sets. The training set fits parameters. The validation set helps compare design choices. The test set is held back to estimate performance on new examples. Keeping these sets separate matters: if information from the test set leaks into training, the final score can look better than real-world performance.
Accuracy is not always enough. If a rare but serious event is being detected, a model that predicts “nothing happened” every time may have high accuracy and still be useless. Precision, recall, false-positive rates and the consequences of errors may matter more. Google’s Machine Learning Crash Course offers practical lessons on datasets, classification and generalization; its guide to overfitting explains why a model can fit its training data yet fail on new cases.
Common failure modes
- Overfitting: the model learns details or noise in the training set and performs poorly on new inputs.
- Data leakage: information that would not be available in real use accidentally enters training or evaluation.
- Distribution shift: real-world inputs differ from the data used to develop the model.
- Proxy failure: the measured target does not represent the outcome people actually care about.
- Automation bias: people trust a system’s output too readily because it appears technical or precise.
Monitoring after launch helps identify changes that a one-time benchmark may miss. For consequential decisions, evaluation should reflect affected people, error costs, oversight and a way to correct mistakes.
A practical checklist for judging a machine-learning claim
- What input does the model use, and what output does it produce?
- What data and labels shaped it? Are there gaps or known limitations?
- What metric was used, and does that metric fit the real task?
- Was it evaluated on separate, representative data?
- Who checks errors, and what happens when the model is wrong?
What to remember
Machine learning fits models to examples; it does not remove the need to define the task, choose useful evidence or judge the result. Ask how performance was measured and how the system behaves outside its development data. Those questions are more informative than a product’s claim that it “uses AI.”
- Google for Developers: Machine Learning Crash Course: lessons on models, data, evaluation and production systems.
- Google: Overfitting and generalization: why training performance can mislead.
- NIST AI Risk Management Framework: voluntary guidance on identifying and managing AI risks.
Aaditya Kumar · Updated October 31, 2026. This is a conceptual guide, not a model audit or endorsement of a particular product.
Start here: What artificial intelligence means →
AI-assisted tools were used in preparing this guide. The references linked above let readers check and extend the explanation. No outside subject-matter review is claimed. For consequential questions, consult current specialist sources or a qualified professional.
Aaditya Kumar · Published October 31, 2026 · Updated October 31, 2026