# What Is Machine Learning? How It Works, Its Types and Examples

> Source: https://sukruyusufkaya.com/en/blog/makine-ogrenmesi-nedir
> Updated: 2026-07-05T16:10:49.407Z
> Type: blog
> Category: yapay-zeka
**TLDR:** What is machine learning? Machine learning is the branch of AI that lets a computer produce predictions or decisions by learning patterns from data, rather than being explicitly programmed with rules. This guide: a clear definition, how machine learning works, supervised and unsupervised learning, model training, examples, use cases, limits and FAQs.

<tldr data-summary="[&quot;Machine learning is the branch of AI that lets a computer produce predictions by learning patterns in data rather than being explicitly programmed.&quot;,&quot;In classic programming a human writes the rules; in machine learning the rules are derived from data during model training.&quot;,&quot;Three main types: supervised learning (labeled data), unsupervised learning (unlabeled data), and reinforcement learning (reward-penalty).&quot;,&quot;Model training is a loop that aims for the model to generalize without memorizing (overfitting).&quot;,&quot;Machine learning examples are everyday: spam filters, recommendation systems, fraud detection, demand forecasting.&quot;]" data-one-line="The short answer to what is machine learning: a branch of AI that learns from data instead of hand-coded rules to produce predictions and decisions."></tldr>

What is machine learning? Machine learning is the branch of AI that lets a computer produce predictions or decisions by learning patterns in example data, rather than being explicitly programmed with rules. A programmer does not hand-code the rules; the model derives them itself from the data it is given.

This fundamentally changes how we think about software. In a classic program, a human writes the "if this happens, do that" rules; in machine learning, the system is shown enough examples and finds the rule itself. This guide answers, from a practitioner's view, what machine learning is, how it works, what types it has, what real machine learning examples look like, and where its limits lie.

<definition-box data-term="Machine Learning" data-definition="A branch of AI that lets a computer produce predictions or decisions by learning patterns in example data instead of being explicitly programmed. The rules are not hand-coded but derived from data during model training and then applied to new, unseen data. It has three main approaches: supervised, unsupervised, and reinforcement learning." data-also="Machine learning, ML, systems that learn from data, statistical learning"></definition-box>

## What Is Machine Learning and Why Does It Matter So Much?

The importance of the question "what is machine learning" comes from the fact that many problems we face today are too complex to solve by writing rules. Recognizing a person's face, transcribing speech into text, or catching fraud among millions of transactions is nearly impossible to do with hand-written rules; only systems that learn such patterns from data can capture them.

The second key reason is scalability. Once trained, a model can produce decisions far above human speed and with consistency; as data grows, it improves further through retraining. The third is adaptability: when the world changes, instead of updating rules by hand, retraining the model on new data is enough. These three properties — handling complexity, scaling, and adapting — have moved machine learning to the center of modern software.

## How Is Machine Learning Different From Classic Programming?

The clearest way to grasp the difference is to place the two approaches side by side. In classic programming, a human provides both the rules and the data; the computer produces the result. In machine learning, a human provides the data and the desired result; the computer produces the rule. This inversion sums up the entire logic of the field.

Let's make it concrete: you want to separate emails into spam and not-spam. In the classic method you write rules one by one, like "if it contains 'free', mark as spam" — but as spammers change their words, the rules quickly become obsolete. In machine learning, you label thousands of example emails as "spam" and "not spam" and show them to the model; the model learns which patterns indicate spam and extends this to new emails. The rule coming from data rather than by hand is the core difference of machine learning. To see this in a wider frame, look at the <a href="/en/blog/yapay-zeka-nedir">what is AI</a> guide.

## How Does Machine Learning Work?

Machine learning is not a single magical step but a loop. At the center of this loop is model training: the model is shown example data, makes a prediction, the prediction is compared with the true answer, and its internal parameters are adjusted to reduce the error. This step is repeated millions of times and the model gradually "improves".

<howto-steps data-name="The lifecycle of a machine learning model" data-description="The core steps from raw data to a working prediction model." data-steps="[{&quot;name&quot;:&quot;Define the problem and data&quot;,&quot;text&quot;:&quot;Clarify what you want to predict and collect relevant, clean data.&quot;},{&quot;name&quot;:&quot;Prepare and split the data&quot;,&quot;text&quot;:&quot;Clean the data, select features, and split into training and test/validation sets.&quot;},{&quot;name&quot;:&quot;Train the model&quot;,&quot;text&quot;:&quot;During model training the model adjusts its parameters to reduce prediction error.&quot;},{&quot;name&quot;:&quot;Validate and evaluate&quot;,&quot;text&quot;:&quot;Measure performance on data the model has not seen; check whether it memorized.&quot;},{&quot;name&quot;:&quot;Deploy and monitor&quot;,&quot;text&quot;:&quot;Move the model to production, continuously monitor real-world performance, and retrain when needed.&quot;}]"></howto-steps>

The most critical point in this loop is this: the model is trained not to memorize the training data but to generalize from it. A good model is one that predicts correctly even on data it has never seen. That is why splitting data into training and validation is an indispensable discipline of machine learning. To see the computational logic behind the model in more depth, the <a href="/en/blog/algoritma-nedir">what is an algorithm</a> guide is complementary.

## What Are the Types of Machine Learning?

Machine learning is not a single method but three main approaches that differ by the nature of the data and the way of learning. The first step to solving a problem correctly is seeing which type fits it.

<comparison-table data-caption="The three main types of machine learning and their core differences" data-headers="[&quot;Type&quot;,&quot;Data&quot;,&quot;Goal&quot;,&quot;Typical example&quot;]" data-rows="[{&quot;feature&quot;:&quot;Supervised learning&quot;,&quot;values&quot;:[&quot;Labeled (input + correct answer)&quot;,&quot;Predict the correct output from input&quot;,&quot;Spam detection, price prediction&quot;]},{&quot;feature&quot;:&quot;Unsupervised learning&quot;,&quot;values&quot;:[&quot;Unlabeled&quot;,&quot;Discover hidden structure and groups&quot;,&quot;Customer segmentation&quot;]},{&quot;feature&quot;:&quot;Reinforcement learning&quot;,&quot;values&quot;:[&quot;Interaction with an environment + reward&quot;,&quot;Find the best strategy by trial and error&quot;,&quot;Games, robotics, recommendation optimization&quot;]}]"></comparison-table>

### Supervised Learning

Supervised learning is the most common and mature type. Here every training example contains both the input and the correct answer (label); the model learns the relationship from input to correct answer. Predicting a house price from square meters and location, or classifying an image as "cat" or "dog", are supervised learning problems.

Supervised learning splits into two sub-groups: if the output is a continuous number it is regression (for example price), and if the output is a category it is classification (for example spam/not-spam). The strength of supervised learning is that it achieves very high accuracy when labeled data is available; its biggest cost is preparing that labeled data.

### Unsupervised Learning

Unsupervised learning works without labels. The model is given only data, and its task is to find the hidden structures in that data on its own. Its best-known application is clustering: grouping similar examples together. Segmenting an e-commerce site's customers by their purchasing behavior is a typical unsupervised learning scenario.

The value of unsupervised learning is that it surfaces patterns no one defined in advance. Its downside is that the result can be hard to interpret: the model finds groups, but answering "why is this group meaningful" is left to a human.

### Reinforcement Learning

Reinforcement learning works with a different logic from the other two: the model interacts with an environment, takes actions, and receives a reward or penalty based on the outcome of those actions. Over time, it learns by trial and error the strategy that maximizes total reward. Instead of a labeled dataset, there is a goal and a feedback signal.

This approach stands out in game-playing systems, robotic control, and the optimization of recommendation flows. Its strength is that it works on problems requiring dynamic decisions rather than static data; its difficulty is designing the right reward function and needing a large number of trials. In most enterprise scenarios supervised learning is tried first; reinforcement learning is reserved for sequential decision problems.

## Model Training and Overfitting

Model training may sound like a single operation, but its success depends largely on striking a balance: the model should be neither too simple nor too complex. A too-simple model cannot learn the data well enough (underfitting); a too-complex model memorizes the data but cannot generalize.

<callout-box data-variant="warning" data-title="Great in training, poor in reality">

Overfitting is machine learning's most insidious trap. The model looks almost perfect on the training data but fails on new data — because it memorized the examples, not the pattern. That is why evaluating a model only by its training performance is misleading.

</callout-box>

The way to guard against this trap is disciplined model training: splitting data into training and validation, not keeping the model more complex than necessary, and using techniques like regularization. The real goal of model training is not to get the highest training score but to produce a model that predicts reliably on unseen data.

## Machine Learning Examples: Applications From Daily Life

Machine learning examples are far closer than most people think; every day you interact with dozens of machine learning systems without noticing. Here are common examples that make the field concrete:

- **Recommendation systems:** The "you might also like" suggestions on video, music, and shopping platforms are a mix of unsupervised and supervised techniques that learn from your past behavior.
- **Spam and fraud detection:** Email spam filters and banks' suspicious-transaction alerts are classification models that catch unusual patterns.
- **Demand and sales forecasting:** In retail and logistics, regression models predict future demand from past sales data to inform stock and pricing decisions.
- **Image and speech recognition:** Systems that tag objects in photos or transcribe speech to text; most of these are based on <a href="/en/blog/derin-ogrenme-nedir">deep learning</a>.
- **Language and text processing:** Tasks like translation, sentiment analysis, and automatic summarization sit at the intersection of <a href="/en/blog/dogal-dil-isleme-nedir">natural language processing</a> and machine learning.

The common thread of these examples is this: in none of them were all the rules written by hand. Each is a system that improves over time by learning from data.

## Türkiye and Sector Use

Machine learning is not an abstract future for organizations in Türkiye but a present-day competitive tool. It produces concrete value in areas like credit risk scoring and fraud detection in banking, demand forecasting and personalization in retail, predictive maintenance (predicting before a failure occurs) in manufacturing, and image-assisted diagnosis in healthcare.

<stat-callout data-value="World #1" data-context="According to We Are Social's &quot;Digital 2026&quot; data, Türkiye ranks first in the world in the share of web traffic referred from generative AI tools; this shows that AI and machine learning adoption in the country&quot; data-outcome=&quot;is rising fast and that investing in systems that learn from data is becoming increasingly critical for organizations." data-source="{&quot;label&quot;:&quot;Euronews TR / Digital 2026&quot;,&quot;url&quot;:&quot;https://tr.euronews.com/next/2026/01/04/turkiye-chatgpt-trafiginde-yuzde-9449luk-oranla-dunya-birincisi&quot;,&quot;date&quot;:&quot;2026-01&quot;}"></stat-callout>

A critical point to watch in the Türkiye context is KVKK (the data protection law). In any system that performs model training with customer data, the purpose of processing personal data, how it is stored, and how the model's output affects a person must be planned from the start. A well-built machine learning project designs technical success together with legal compliance; for an enterprise roadmap you can start with <a href="/en/consulting">AI consulting</a>.

## The Relationship Between Machine Learning, Deep Learning, and AI

These three terms are often confused, but there is a clear nesting between them. Artificial intelligence is the broadest concept: machines exhibiting intelligent behavior. Machine learning is the sub-branch of AI that learns from data. Deep learning is the subset of machine learning that uses multi-layer artificial neural networks.

The practical distinction is this: every deep learning system is machine learning, and every machine learning system is AI — but not the reverse. A rule-based expert system is AI but not machine learning because it does not learn from data. Classic machine learning relies on human-designed features, while deep learning derives those features from raw data itself. That is why deep learning stands out in complex domains like image, sound, and language. To clarify these layers, the <a href="/en/blog/derin-ogrenme-nedir">what is deep learning</a> guide, and for the basis of modern language models the <a href="/en/blog/llm-nedir">what is an LLM</a> guide, are complementary.

## How Do You Start a Machine Learning Project?

The fastest way to learn machine learning is to start not with the most advanced model but with the clearest problem. A solid start is less about the technical choice and more about asking the right question: "What do I want to predict, and which decision will that prediction improve?" If you cannot answer this clearly, it is too early to build a model.

If the answer is clear, the practical order is this: start with a small but real dataset, set a baseline with a simple model, and increase complexity only if that baseline is not enough. Most experienced practitioners invest first in data quality and the measurability of the problem rather than rushing to the most expensive model. On the enterprise side, the biggest risk is not technical but solving the wrong problem; that is why the first pilot should be narrow, measurable, and tied to business value. For those who want a step-by-step path, the <a href="/en/learn">learning center</a> offers a hands-on route; for an enterprise roadmap, <a href="/en/consulting">AI consulting</a> and structured <a href="/en/training">trainings</a> are the starting point.

## The Limits of Machine Learning and Common Mistakes

Machine learning is powerful but not magic; its success is bounded by the right problem and the right data. The most common mistakes are:

- **Bad or biased data:** The model also learns the biases in the data. A model trained on incomplete or biased data can produce unfair decisions. The "garbage in, garbage out" principle applies here.
- **Overfitting:** Evaluating a model only by its training performance leads to a system that fails in the real world.
- **Wrong problem choice:** Not every problem is solved with machine learning. If a simple, stable rule suffices, building a model adds needless complexity.
- **Set-and-forget:** The real world changes; a model's performance can decline over time (data drift). An unmonitored model can quietly drift into error.

The common root of these mistakes is treating machine learning like a "magic box". In reality, value comes not so much from the model as from a correct problem definition, clean data, and honest evaluation.

## Frequently Asked Questions

### Are machine learning and artificial intelligence the same thing?

No. Artificial intelligence is a broader umbrella concept; machine learning is its most common sub-branch. Every machine learning system is AI, but not every AI is machine learning. Rule-based systems are also AI but do not learn from data.

### What is the difference between machine learning and deep learning?

Deep learning is the subset of machine learning that uses multi-layer artificial neural networks. Classic machine learning usually relies on human-designed features; deep learning learns the features from raw data itself. In complex domains like vision and language, deep learning stands out.

### What is the difference between supervised and unsupervised learning?

Supervised learning works with labeled data: the correct answer of each example is known and the model learns this mapping. Unsupervised learning works with unlabeled data and aims to discover hidden structures or groups (clusters) in the data on its own.

### How much data does machine learning need?

There is no exact number; it depends on the complexity of the problem, the number of features, and the type of model. A simple classification may work with a few hundred examples, while deep learning usually needs far more. The quality and representativeness of the data matter as much as its quantity.

### Is math required to learn machine learning?

For basic application you can start with ready-made libraries, but to truly understand models and debug errors, a foundation in probability, linear algebra, and statistics is very valuable. Conceptual intuition matters more than memorizing formulas.

### What is overfitting and why is it a problem?

Overfitting is when a model memorizes the training data instead of general patterns. Such a model looks great in training but fails on new data. Holding out validation data, simplifying the model, and regularization reduce this risk.

## In Short: What Is Machine Learning?

In short, the answer to what is machine learning is: a branch of AI that produces predictions and decisions by learning from data instead of hand-written rules. Its three main types — supervised learning, unsupervised learning, and reinforcement learning — solve different problems; its success depends on the discipline of model training, the quality of the data, and avoiding overfitting. Machine learning examples are part of daily life, from spam filters to recommendation systems. For the basics see the <a href="/en/blog/yapay-zeka-nedir">what is AI</a> and <a href="/en/blog/derin-ogrenme-nedir">what is deep learning</a> guides, for hands-on learning visit the <a href="/en/learn">learning center</a>, and for an enterprise project start with <a href="/en/consulting">AI consulting</a> or join the <a href="/en/training">trainings</a>.

<!-- INTERNAL LINK DEBT: /en/blog/pekistirmeli-ogrenme-nedir, /en/blog/denetimli-ogrenme-nedir, /en/blog/overfitting-nedir, /en/blog/yapay-sinir-agi-nedir, /en/blog/veri-bilimi-nedir once published. -->