AILearn AI
LearnGlossarySources
ID/EN
Learn AI — open material for learning AIEvery lesson cites its original sources.
◎AI Foundations
  1. What is AI?
  2. Types of learning
  3. Math essentials for ML
  4. Data and features
Modules
  1. ◎ AI Foundations
  2. ∿ Classical Machine Learning
  3. ⌬ Neural Networks
  4. ↘ Training Results & Evaluation
  5. ▦ Deep Learning Architectures
  6. ✎ Large Language Models
  7. ◐ Image Generation
  8. ♪ Audio & Speech AI
  9. ◈ Multimodal, Video & 3D
  10. ↻ Reinforcement Learning
  11. ⚙ ML Development & MLOps
  12. ★ Advanced & Frontier Topics
Learn/AI Foundations

What is AI?

AI, machine learning and deep learning explained: how they nest, what a model is, how training differs from inference, and the 75-year history that got us to ChatGPT.

Beginner~14 min·6 references
Key terms
Artificial intelligence (AI)Machine learning (ML)Deep learningModelParameterHyperparameterInference

You already use AI dozens of times a day: the spam filter in your inbox, the route your maps app picks, the face unlock on your phone, product recommendations, machine translation, and chat assistants such as ChatGPT or Claude. This lesson gives you a precise vocabulary for all of it — what artificial intelligence actually means, how machine learning and deep learning fit inside it, and what people mean when they say they ‘trained a Model’.

Three nested ideas

Artificial intelligence (AI) is the broad field of building computer systems that perform tasks we would call intelligent if a human did them: perceiving, reasoning, planning, understanding language, learning and acting. The standard textbook by Russell & Norvig frames AI as the study of agents that perceive their environment and act to achieve the best expected outcome[1]. AI includes approaches that do not learn at all, such as hand-written rule systems and search algorithms (a chess engine exploring moves).

Machine learning (ML) is the subset of AI where the system improves at a task by learning patterns from data instead of following rules a programmer wrote. Deep learning (DL) is the subset of ML that uses neural networks with many layers; it powers today's image recognition, speech recognition, large language models (LLMs) and image generators[3].

≈
Like vehicles, cars and electric cars
Every electric car is a car, and every car is a vehicle — but not every vehicle is a car. Likewise: every deep learning system is machine learning, and every ML system is AI, but a hand-coded expert system is AI without being ML. LLMs and diffusion image generators are a further circle inside deep learning.
ApproachWho writes the rules?Data neededExample
Rule-based AI (symbolic)Human experts, as if-then rulesLittle or noneTax calculator, 1980s medical expert systems
Classical machine learningLearned from data, using features designed by humansHundreds to millions of rowsCredit scoring with gradient-boosted trees
Deep learningLearned from data, including the features themselvesUsually large (thousands to billions of examples)Face recognition, speech-to-text, ChatGPT

Machine learning: programs that learn from data

A classic definition (Tom Mitchell, 1997, quoted in the Deep Learning book) says: a program learns from experience E with respect to a task T and performance measure P if its performance on T, as measured by P, improves with E[6]. For a spam filter, T = labelling emails as spam or not, P = the percentage labelled correctly, and E = a collection of emails that people already marked as spam or not spam.

Traditional programming: rules + data → answers Machine learning: data + answers → rules (the model)
ML flips the direction: you supply examples with the right answers, and the algorithm finds the rules.
In words: Read the first line as “a human writes the rules, the computer applies them to data to get answers”. The second line swaps inputs and outputs: you give the computer data together with the correct answers, and it works out the rules itself. Those learned rules are what we call the Model.
Symbols(hover a symbol in the formula)
rules
the logic that turns an input into an output, e.g. “if the subject contains FREE, it is spam”. Hand-written in line 1, learned in line 2
data
the inputs: emails, photos, rows of a table (features)
answers
the outputs. In ML training they are the known correct answers, called labels
+
“together with”: both things are fed in
→
“produces”: what comes out of the process
(the model)
the learned rules are stored as numbers (parameters) inside a Model
▸Worked example
Spam filter, data = how many times “FREE” appears in an email. Traditional: you write the rule “spam if FREE appears ≥ 2 times”. New email with 3 × FREE → rule → answer: spam. ML: you give 4 labelled emails: 0 × FREE → not spam, 1 × → not spam, 3 × → spam, 4 × → spam The algorithm finds the boundary between 1 and 3 (midpoint 2): learned rule = “spam if count ≥ 2” — the same rule, but nobody wrote it. With 10,000 emails and 5,000 words the algorithm finds rules no human could write by hand.

What exactly is a model?

A model is a mathematical function that maps an input x (an email, a photo, a row of house data) to an output ŷ (spam/not spam, ‘cat’, a price). Its behaviour is controlled by numbers called [[parameter|parameters]] (often written θ, or weights w and bias b). Training means automatically adjusting the parameters so the outputs match known answers as closely as possible. A straight line ŷ = w·x + b has 2 parameters; GPT-3 has 175 billion — but the principle is the same.

ŷ = f(x; θ)
The general shape of every ML model. Training finds good θ; inference just evaluates f with θ fixed.
In words: “the prediction y-hat is the function f applied to the input x, using the parameters θ”. The semicolon separates what changes for every example (x) from what stays fixed once trained (θ). Same x with different θ gives a different prediction — that is why training is all about finding θ.
Symbols(hover a symbol in the formula)
ŷ
y-hat — the model's prediction. The hat means “estimated”; plain y is the true answer (Label (target))
f
the Model: a function, e.g. a straight line, a tree or a neural network
x
the input: one example, usually a vector of features
;
separates inputs (left) from parameters (right): “f of x, given θ”
θ
theta — all learned parameters (weights and biases): 2 numbers for a line, billions for an LLM
▸Worked example
Model f(x; θ) = w·x + b, so θ = (w, b). θ = (2, 1), x = 3 → ŷ = 2·3 + 1 = 7 θ = (0.5, 4), x = 3 → ŷ = 0.5·3 + 4 = 5.5 Same input, different θ, different prediction. If the true answer is y = 5.5, training should move θ toward (0.5, 4). At Inference θ is frozen: x = 10 → ŷ = 0.5·10 + 4 = 9.

Do not confuse parameters with [[hyperparameter|hyperparameters]]: parameters are learned by the algorithm, while hyperparameters are settings *you* choose before training (how many layers, the learning rate, how many trees). Much of practical ML is choosing good hyperparameters — later lessons give each one its own ‘what happens if I change it’ card. Once trained, using the model to make predictions on new data is called [[inference]].

  1. Collect data — examples of inputs, usually with the correct answers.
  2. Choose a model family — a line, a decision tree, a neural network…
  3. Train — an optimisation algorithm adjusts the parameters to minimise a loss function (a number measuring how wrong the predictions are).
  4. Evaluate — measure performance on data the model never saw, to check it generalises instead of memorising.
  5. Deploy & run inference — use the frozen model on new inputs, and monitor it.
python
from sklearn.linear_model import LinearRegression

# Experience E: house sizes (m²) and their known prices (million Rp)
X = [[36], [45], [60], [72], [90]]
y = [450, 560, 740, 880, 1100]

model = LinearRegression()   # model family: a straight line
model.fit(X, y)              # TRAINING: learns parameters w and b

print(model.coef_, model.intercept_)  # the learned parameters
print(model.predict([[80]]))          # INFERENCE on a new house
Training vs inference in four lines of scikit-learn: fit() learns parameters, predict() uses them.

Deep learning and why it took off

Classical ML relies on humans to design good input features (e.g. ‘number of exclamation marks’ for spam). Deep learning instead stacks many layers of simple units (neurons) so the network learns its own features directly from raw pixels, audio samples or text — edges, then shapes, then objects[3]. The ideas are old (the Perceptron dates from 1958, Backpropagation was popularised in 1986), but they only became dominant around 2012, when three things came together: big labelled datasets such as ImageNet, fast GPUs, and better training tricks. That year, AlexNet cut the ImageNet top-5 error from about 26% to about 15%, convincing the field almost overnight[5].

A short history of AI

YearMilestone
1950Alan Turing asks whether machines can think and proposes the ‘imitation game’ (Turing test)[2].
1955–56McCarthy, Minsky, Rochester & Shannon's Dartmouth proposal coins the term ‘artificial intelligence’; the workshop runs in summer 1956[4].
1958Rosenblatt's perceptron: the first trainable artificial neuron.
1970s–80sExpert systems boom; funding cuts lead to ‘AI winters’.
1986Backpropagation popularised for training multi-layer networks.
1997IBM Deep Blue beats world chess champion Kasparov (search, not learning).
2012AlexNet wins ImageNet with a GPU-trained CNN — the deep learning era begins[5].
2016AlphaGo defeats Go champion Lee Sedol (deep learning + reinforcement learning + search).
2017The Transformer architecture (‘Attention Is All You Need’).
2020sLarge language models, diffusion image generators, multimodal assistants.
i
Narrow AI vs general AI
Every deployed system today is a form of narrow AI: very good at the tasks it was trained for, often brittle outside them. Artificial general intelligence (AGI) — a system matching humans across virtually all cognitive tasks — is a research goal and a topic of active debate, not a settled technology. Treat strong claims in either direction with healthy scepticism.
!
Common misconceptions
‘AI = ChatGPT.’ Chatbots are one small (if visible) corner; most deployed AI is quiet prediction — fraud scores, recommendations, demand forecasts. ‘The model understands like a human.’ A model reproduces statistical patterns from its training data; it can be confidently wrong. ‘More data always fixes it.’ Biased, noisy or leaked data makes models worse no matter how much of it you have.
▸Go deeper: Turing's 1950 paper

Turing considered the question ‘Can machines think?’ too vague and replaced it with a game: an interrogator chats by text with a human and a machine and must tell which is which. If the machine is mistaken for the human about as often as a person would be, it ‘passes’[2]. The paper also answers nine objections (theological, mathematical, ‘Lady Lovelace's objection’ that machines only do what we tell them…) and, remarkably, its final section, ‘Learning Machines’, proposes building a ‘child machine’ and educating it rather than programming adult intelligence directly — essentially the machine learning programme.

The 1955 Dartmouth proposal opened with the conjecture that ‘every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it’ — and optimistically asked for a two-month, ten-person study[4]. The gap between that optimism and reality is a recurring theme of AI history.

Next, we look at the different *kinds* of learning — supervised, unsupervised, self-supervised and reinforcement — which differ in what feedback signal the model gets.

Quiz

1.
Which statement about AI, ML and deep learning is correct?
2.
In machine learning, what does the training algorithm produce?
3.
Your phone's photo app labels a new picture as ‘beach’. Which phase is this?
4.
Which document coined the term ‘artificial intelligence’?
5.
Why did deep learning suddenly dominate around 2012?
Score: 0/5

References

  1. [1]
    Artificial Intelligence: A Modern Approach (4th ed.)
    BookRussell & Norvig2020aima.cs.berkeley.edu
    Definition of AI as rational agents.
  2. [2]
    Computing Machinery and Intelligence
    PaperTuring1950doi.org
    The imitation game and ‘Learning Machines’.
  3. [3]
    Deep learning
    PaperLeCun, Bengio & Hinton2015doi.org
    Nature review of deep learning and representation learning.
  4. [4]
    A Proposal for the Dartmouth Summer Research Project on Artificial Intelligence
    PaperMcCarthy, Minsky, Rochester & Shannon1955jmc.stanford.edu
  5. [5]
    ImageNet Classification with Deep Convolutional Neural Networks
    PaperKrizhevsky, Sutskever & Hinton2012proceedings.neurips.cc
  6. [6]
    Deep Learning — Chapter 5: Machine Learning Basics
    BookGoodfellow, Bengio & Courville2016deeplearningbook.org
    Mitchell's T/P/E definition of learning.
Next →
Types of learning