What Is Machine Learning? ML vs Deep Learning — Day 1

Conceptual illustration of house, email and coloured-shape example cards beside a flowing teal pattern.
Conceptual illustration: machine learning learns patterns from examples.

INGOAMPT · Machine learning in 80 days / Day 1

Day 1 of 80 · Beginner foundations

What is machine learning?

Machine learning uses examples to learn patterns. A trained model can then use those patterns to estimate a value, recognise a category or generate content.

Start with an email filter. Follow one simple calculation. See where deep learning fits.

Conceptual illustration of house, email and coloured-shape example cards beside a flowing teal pattern.
Conceptual illustration: learning patterns from familiar examples.
Jump to a section

Start with a familiar example

Consider an email filter. Instead of writing a rule for every spam message, you can train a model using emails labelled “spam” or “not spam”. It then predicts a category for a new email.

The same broad idea appears in price prediction and recommendations. For example, Netflix describes models that learn from interactions to personalise recommendations.

Where does deep learning fit?

Deep learning (DL) uses neural networks with multiple layers. The layers can learn useful representations of data, such as visual patterns in an image or relationships in text.

Think of three nested groups: AI contains machine learning, and machine learning contains deep learning. CNNs, RNNs and transformers are examples of neural-network architectures you will meet later in the series.

These are mathematical models inspired partly by ideas about neurons. Their performance still depends on the data, design choices and evaluation.

Nested boxes show deep learning inside machine learning, which is inside artificial intelligence.
Read the groups from outside in: AI contains ML, and ML contains deep learning.

See how a model makes a prediction

A prediction you can calculate

Imagine a deliberately simplified model that estimates a home’s price using only its area. The values below are made up for this lesson; they are not a property valuation.

One linear model has this form. In Google’s linear regression guide, the weight controls how much the input affects the prediction, while the bias is a fixed offset.

ŷ = w × x + b

ŷ — prediction
The price the model estimates.
x — input
The home’s area: 80 m².
w — weight
Our example uses 3,000 euros per square metre.
b — bias
Our example adds a fixed 20,000 euros.

Substitute the values, one step at a time:

  1. Multiply the weight by the area: 3,000 × 80 = 240,000 euros.
  2. Add the bias: 240,000 + 20,000 = 260,000 euros.

In a real training process, the model fits its weights and bias using examples. Area is a feature; the known sale price is the training label.

A real housing problem needs more information and careful testing. The point here is to connect an input, learned parameters and an output.

Predicted price: €260,000

Three ways to learn from experience

A useful first question is: what information tells the model how to learn? These three common setups give different answers.

1. Supervised: learn with answers

The training examples include a target answer, called a label. A house-price dataset might pair each home’s details with its known sale price.

Regression predicts a number, such as a price. Classification predicts a category, such as spam or not spam.

Methods include linear regression, logistic regression, support vector machines and neural networks. Spam filtering, fraud detection and price prediction are familiar applications.

2. Unsupervised: discover structure

The examples have no supplied target label for the task. You might explore groups of customers with similar shopping patterns without telling the model which groups to find.

K-means and hierarchical clustering group similar examples. PCA creates a smaller representation of variation in the data.

The groups still need interpretation. Recommendation and anomaly-detection systems may combine several learning approaches.

3. Reinforcement: learn through actions

An agent acts in an environment and receives rewards. Through interaction, it learns a policy: a way to choose actions that aims to maximise cumulative reward.

A game-playing agent can learn from the consequences of its moves. Q-learning, deep Q-networks and policy-gradient methods are examples; robotic control is another application.

The reward and environment matter. A successful game or simulation result does not establish safe real-world performance.

These setups can overlap in a larger system. Generative models may combine self-supervised training with later supervised or reinforcement-learning stages.

From examples to a useful model

  1. Prepare. Define the task and gather relevant examples. Decide what the inputs and targets mean.
  2. Train. Fit the model using training data. Many methods adjust parameters to reduce a loss: a measure of prediction error.
  3. Evaluate. Test with held-out examples. Fit preprocessing on the training data, then apply the same transformation to held-out examples.
  4. Predict. Apply the trained model to new inputs. This stage is called inference.

Training and inference are different activities. A deployed model does not necessarily learn from every new request; updating it requires an explicit retraining or online-learning process.

Good training scores are only part of the picture. Poor labels, unrepresentative data, leakage, overfitting and changing conditions can weaken predictions on new examples.

When might you use deep learning?

Deep learning belongs inside ML. The practical comparison is between different methods you could choose for a task.

On a small screen, swipe the table sideways to compare methods.

Typical tradeoffs, rather than rules for every model
QuestionConventional ML examplesDeep neural networks
Which methods?Linear models, decision trees and SVMs.Multilayer networks, including CNNs, RNNs and transformers.
How are inputs represented?Often use selected or engineered features.Can learn layered representations; preparation and design still matter.
How much data?Often useful baselines for small or medium tabular datasets.Large models trained from scratch often need substantial data. Pretrained models can be adapted.
What about training costs?Many methods train on CPUs; cost depends on the problem.Large-scale training often uses accelerators and can be expensive.
How easy is interpretation?Small trees and simple linear models may be easier to inspect; complex ensembles can be difficult.Often harder to interpret. Explanation tools give partial views.

Conventional methods often work well with structured tables. Deep networks are widely used for images, audio and text, and also with structured data.

Either approach may meet a real-time target. Measure accuracy, latency and memory use on the intended hardware; choose the model that fits the task’s constraints.

Check the idea with three examples

Name the learning setup, then open the answer.

Known house prices → estimate the price of another home

Supervised learning, usually regression. Labelled examples are available and the target is a number.

Shopping patterns → explore groups without supplied group labels

Unsupervised learning, such as clustering. The groups need interpretation after the model finds them.

Game moves and rewards → learn which action to choose

Reinforcement learning. The agent interacts with an environment and uses its reward signal.

Remember: start with the task and the training signal. Then choose a model and test whether it works on new examples.

Questions beginners often ask

What is machine learning in simple terms?

Machine learning trains models to find patterns in examples. A trained model can use those patterns to make predictions or generate content.

Is deep learning the same as machine learning?

Deep learning is one approach within machine learning. It uses neural networks with multiple layers; other ML methods include linear models, trees and support vector machines.

What is the difference between regression and classification?

Regression predicts a numerical value, such as a price. Classification predicts a category, such as spam or not spam.

What is a feature, and what is a label?

A feature is an input used by a model, such as a home’s area. A label is the target answer supplied for supervised training, such as a known sale price.

Does a model keep learning after it is deployed?

Not necessarily. Inference uses the trained model; learning from new data requires an explicit update, retraining or online-learning process.

Do I need a GPU for every machine-learning project?

No. Many conventional methods train on CPUs. Large deep networks often use accelerators, while the hardware needed for inference depends on the model and the task.

Optional: connect the basics to research

Explore these historical examples after the foundations. The dates describe the original research or launch, rather than current product availability.

Open the research and application reading list
Selected research and launch examples, with original sources
ExampleWhat to explore
Quantum CNNs · 2018/2019Quantum circuits inspired by convolutional architectures; a specialised research setting.
Dissipative quantum networks · 2020Quantum neural-network training, not a general replacement for classical ML.
Diffusion image models · 2020–2023Denoising diffusion, latent diffusion underlying Stable Diffusion, and DALL·E 3’s improved caption training.
Reasoning language models · 2024/2025Historical releases of o1 and o3; examples of reinforcement-learning-based reasoning training.
NVIDIA Cosmos · 2025World generation and physical-AI development, including video and world-state models.
Generative AI and RLHF · 2022InstructGPT illustrates learning from human demonstrations and preference feedback.
Vision Transformers · 2020Applying transformers to image patches.
Efficient attention · 2019/2023Sparse Transformers and FlashAttention-2 tackle different computation and memory concerns.
Liquid networks · 2020/2021Continuous-time recurrent-network dynamics.
Federated learning · 2016/2017Learning from decentralised data through model updates.
Explainable AI · 2016LIME’s local explanations; explanations are not a complete reliability test.
Diffusion world models · 2024DIAMOND’s Atari research connects diffusion modelling and reinforcement learning.
Amazon Nova · 2024The original Micro, Lite, Pro, Canvas and Reel announcement; launch context, not a current availability claim.
AlphaProof · 2024Formal mathematical reasoning and reinforcement learning.
NVIDIA DLSS 4 · 2025Neural rendering and multi-frame generation.
Language-model agents · 2022/2023ReAct studies interleaving language-model reasoning and actions.

Earlier study material

View the original reference graphic
Earlier reference table of machine-learning techniques and applications, including deep learning, AutoML, reinforcement learning and computer vision.
Original study graphic. It brings together techniques and applications with some broad simplifications; use the lesson’s sourced explanations for their limits.

Next: take the idea into an iOS project

Day 2 explores frameworks for iOS development. Start with Apple’s machine-learning resources or the official MLX website when choosing tools for an Apple-silicon project.

Explore INGOAMPT’s iOS apps for examples of our own products.

You Can Also Learn Deep Learning in 80 Days Inside the iOS App Continue this roadmap in a focused mobile study experience with offline access, flashcards, notes, and progress tracking.
Open on the App Store