The complete map
How do all the pieces fit together, from neuron to chatbot?
Lesson complete
If you like:
In the first lesson, we asked you to explain to a computer how you know an email is spam. Thirty-six lessons later, you know how a chatbot writes.
No voice: the lesson advances on its own with subtitles.
The voice for this lesson is being recorded: for now it advances on its own with subtitles.
Review modeComment on this stepI finished the lesson
What you will achieve
- Walk the course’s whole path, from data to strategy, and state in one sentence the idea of each module and each lesson.
- Place the main milestones on a timeline, from the 1943 neuron to ChatGPT and agents, and explain why the takeoff came with scale.
- Use ten concrete questions with any AI team or vendor, and recognize which lesson each one comes from.
Key ideas
- The course is a single path: learning is lowering an error with data (modules 1 to 3); generating is learning how data are spread out and sampling from them (4 and 5); scale and alignment turn the model into an assistant (6 and 7); using it well is a matter of judgment (8).
- Each lesson grew out of another’s limit: XOR called for hidden layers; the short memory of networks that read in order called for attention; the base model, which only continues text, called for alignment.
- The core ideas are old: the artificial neuron dates from 1943, and backpropagation spread in 1986. What changed after 2012 was scale: massive data, GPUs, and training tricks.
- Ten questions work with any team or vendor: why AI, which data, how accurate on your cases, how it fails, where what it says comes from, what it costs, where your data goes, what it can do alone, whether it works equally for everyone, and who answers for it.
- To keep learning: review “under the hood,” read an original source, and test any system with your own cases.
What many people believe
Common belief Generative AI is a brand-new technology that appeared out of nowhere with ChatGPT.
What is true ChatGPT (2022) rests on ideas that are decades old: the neuron (1943), backpropagation (1986), attention (2014), and the transformer (2017). What was new was putting those pieces together at large scale, with massive data, GPUs, and tuning with human preferences.
Check yourself
Four questions. No grade, no account: they just show whether the idea stuck.
Under the hoodFor those who want the math and the code. You do not need it to follow the course.
The course in eight formulas
Each formula comes from a lesson; here they are simply gathered so you can see the thread.
- A model and its error (lesson 3). A line predicts , and the loss is the average of the squared errors: .
- Gradient descent (lesson 4): .
- The neuron (lesson 5): , with an activation (step, sigmoid, ReLU).
- Backpropagation (lesson 8): the chain rule, , applied from the output back to the input.
- Next piece and attention (lessons 19 and 21): and .
- Scale (lessons 24 and 25): training compute (parameters times tokens) and memory parameters × bytes per parameter.
- The cost of an answer (lesson 26): input × its price + output × its price.
- Using it with judgment (lessons 32, 34, and 35): a chain of steps, each going right with probability , succeeds end to end with ; a score’s margin shrinks like cases; risk is .
The ten questions, and what counts as a good answer
| # | Question | Lessons | Good answer | Red flag |
|---|---|---|---|---|
| 1 | Why AI and not written rules? | 1 | The rule is hard to write, there are examples with answers, and errors are tolerable | “Because everyone is using AI” |
| 2 | What data trained it, with what permission? | 1, 23 | Documented sources, licenses, and knowledge cutoff | “It’s confidential,” full stop |
| 3 | How often is it right on my unseen cases? | 10, 34 | A figure measured on your unseen cases, with its margin | Only a public benchmark or a demo |
| 4 | How does it fail, and how will I notice? | 33 | A measured error rate, types of error, and how they are checked | “It doesn’t make mistakes” |
| 5 | Where does what it says come from? | 23, 31 | It cites sources you can check and states its knowledge cutoff | Unsourced answers about your data or recent events |
| 6 | What does each full task cost? | 20, 26, 30 | A breakdown in input and output tokens per type of task | A “per user” price with no volume or tokens |
| 7 | Where does my data go? | 30, 35 | Where it is stored, for how long, and whether it is used for training, in the contract | “It’s safe,” with no contract |
| 8 | What can it do alone, and who approves? | 32, 35 | Minimal permissions, a log of every action, and human approval before anything irreversible | Full access “so it can be useful” |
| 9 | Does it work equally well for everyone? | 34, 35 | Error measured by group of people | Only the average |
| 10 | Who answers for it when it fails? | 33, 35 | An owner with a name, an incident log, and a way to correct things | “It’s the model’s fault” |
The timeline, with its sources
McCulloch and Pitts (1943), the all-or-nothing neuron; Rosenblatt (1958), the perceptron; Samuel (1959), checkers that learns; Minsky and Papert (1969), Perceptrons; Rumelhart, Hinton, and Williams (1986), backpropagation; Hochreiter and Schmidhuber (1997), LSTM; Krizhevsky, Sutskever, and Hinton (2012), AlexNet; Mikolov and colleagues (2013), word2vec; Goodfellow and colleagues (2014), GANs; Vaswani and colleagues (2017), the transformer; Brown and colleagues (2020), GPT-3; Stability AI (August 22, 2022), Stable Diffusion; OpenAI (November 30, 2022), ChatGPT; OpenAI (September 12, 2024), o1; Anthropic (November 25, 2024), MCP. Each date was verified in the lesson that tells it. The choice of milestones is this course’s: there are many others (Bahdanau and colleagues’ attention in 2014, ResNet in 2015, Ho and colleagues’ diffusion in 2020, RAG in 2020, CLIP in 2021).
In code
import math
# 1) lessons 3 and 4: fit y = w·x with gradient descent
xs, ys = [1, 2, 3, 4], [2.1, 3.9, 6.2, 7.8]
w, eta = 0.0, 0.01
for step in range(200):
grad = sum(2 * (w * x - y) * x for x, y in zip(xs, ys)) / len(xs)
w -= eta * grad
print(round(w, 3))
# 2) lesson 19: from scores to probabilities with softmax
def softmax(z, T=1.0):
e = [math.exp(v / T) for v in z]
s = sum(e)
return [round(v / s, 3) for v in e]
print(softmax([2.0, 1.0, 0.1]))
# 3) lesson 32: ten steps that each go right 95% of the time
print(round(0.95 ** 10, 3))
# 4) this lesson: how the timeline’s milestones are spread out
milestones = [1943, 1958, 1959, 1969, 1986, 1997, 2012, 2013, 2014, 2017, 2020, 2022, 2024]
before = [a for a in milestones if a < 2012]
print(2012 - 1943, len(before), 2026 - 2012, len(milestones) - len(before))
Output:
1.99
[0.659, 0.242, 0.099]
0.599
69 6 14 7
What comes next
There is no lesson thirty-eight. What follows is up to you: come back to the map when something isn’t clear, read an original source, and test whatever you use with your own cases.
Decision lens
What this idea means if your job is to decide, not to code.
- Use the ten questions as a checklist before buying or approving an AI project: ask for each answer in writing and with evidence (figures measured on your cases, contract clauses, logs), not with a demo.
- If an answer is vague (“it’s very accurate,” “your data is safe”), go back on the map to the lesson it comes from and ask the concrete question: with how many cases and what margin? where is it stored and for how long? who approves?
- When a “breakthrough” is announced, ask what changed, as in lesson thirteen: more data (whose, under which license?), more compute (at what cost?), or a better method. Each brings different costs and risks.
- Start small and measured: a reversible pilot, evaluated with your own cases (lesson 34) and with a named owner (lesson 35). Decide with numbers whether it continues.
Terms in this lesson
- Machine learning An approach in which a computer obtains the rules from examples instead of someone writing them. The term is associated with Arthur Samuel (1959).
- Model A form of rule with adjustable numbers. Once trained, it is the learned rule.
- Parameter Each of the numbers a model adjusts while training and in which it stores what it learned.
- Training data Examples, each with its correct answer, from which a model adjusts its parameters.
- Loss function A single number that summarizes how wrong a model is on its data. Training is the search for the parameters that make it as small as possible.
- Gradient descent A method that adjusts the weights step by step, always against the slope of the error (the gradient), until it reaches a bottom.
- Artificial neuron A unit of computation that multiplies each input by a weight, adds the results, adds a bias, and applies an activation function: y = f(w·x + b).
- Perceptron A model proposed by Frank Rosenblatt in 1958: threshold units connected in a network that learn from examples. In its simplest version, a neuron with a step whose weights are corrected only when it is wrong.
- XOR (exclusive or) A function that is one only when its two inputs differ. It is the classic example of a problem that is not linearly separable.
- Hidden layer A layer of neurons between input and output. It creates intermediate signals that the output combines; its values are not observed directly.
- AI winter A period of reduced funding and interest in artificial intelligence after unmet expectations. The first took place in the 1970s.
- Backpropagation An algorithm that computes the gradient of the loss with respect to every weight of a network in a single backward sweep, applying the chain rule layer by layer. It computes the blames; it does not move the weights (in the 1986 paper, the name covered the whole learning procedure).
- LSTM (long short-term memory) A recurrent cell with a memory belt (the cell state) and three learned gates, forget, input, and output, that decide what is kept, what is written, and what is read. Proposed in 1997 by Hochreiter and Schmidhuber; the forget gate was added in 2000.
- GPU Graphics processing unit: a chip with hundreds or thousands of simple cores, built to draw graphics and very efficient at multiplying matrices in parallel, the central operation of training.
- ImageNet A database of more than fourteen million images labeled by people, in more than twenty-one thousand categories. Its ILSVRC contest subset (a thousand classes, more than 1.2 million training photos) was the proving ground of computer vision.
- Deep learning Machine learning with many-layered neural networks that learn the useful features themselves, from edges to objects, from large amounts of data and compute.
- Embedding A vector of numbers, learned from data, that represents something (a word, a sentence, an image) so that similar things end up close. Each word has a row in an embedding table.
- Latent space The space of a model’s codes (“latent” means hidden): each data point is a point, and nearby points tend to be similar data. Any point can be decoded.
- GAN (generative adversarial network) A generative model made of two networks trained by competing: a generator that produces fake data and a discriminator that tries to tell it apart from real data (Goodfellow et al., 2014).
- Diffusion model A generative model that learns to undo a fixed process that mixes data with noise step by step (the forward process). It generates by starting from pure static and removing a little estimated noise, many times.
- Transformer A neural-network architecture made of a stack of blocks with the same shape. Each block combines attention (between tokens) and a network applied to each token, with residual connections and normalization. It was introduced in “Attention Is All You Need” (2017).
- Attention A mechanism by which each token decides how much to look at the others: it compares its query with everyone’s keys, turns the scores into weights with softmax, and builds its new vector as the blend of the values with those weights.
- Language model A model that, given some text (the context), gives a probability to every word or piece that can come next. It writes by adding one piece at a time.
- Token A piece of text (a word, a word fragment, a symbol, or a basic code) taken from the vocabulary. It is the unit the model reads and generates, and the unit you are billed for.
- Pretraining The first stage of training a language model: over a huge corpus, the model guesses the next piece of text again and again and adjusts its parameters to lower the error. The result is a base model.
- Base model A language model that has only gone through pretraining: it can continue texts, but it is not tuned to follow instructions or converse like an assistant.
- Knowledge cutoff The date after which the training data includes no more text. The model does not know what came later unless it is given as context, and it does not always warn that it does not know.
- Scaling law A measured regularity, not a law of nature: a model’s loss falls as a power of its parameters, its data, or its compute. On a logarithmic scale it looks like a straight line: each ×10 multiplies the loss by the same number.
- Fine-tuning Continuing to train an already pretrained model on a small set of your own examples (input and desired answer) to change its behavior, without starting from scratch.
- Alignment Techniques to get a model to do what the person intends and be helpful, honest, and harmless, not just whatever is most likely given its training text. It turns a base model into an assistant.
- Reasoning model A language model trained (mainly with reinforcement learning) to write out its own thinking, sometimes thousands of tokens long, before answering. Examples: OpenAI’s o1 (2024) and DeepSeek-R1 (2025).
- Context window The maximum number of tokens the model can read at once. The system prompt, the conversation, documents, and the answer it is writing all count. Whatever does not fit does not exist for the model.
- RAG (retrieval-augmented generation) A technique that, before generating, looks up in a collection of documents the chunks most similar to the question and includes them in the prompt, so the model answers from those sources without being retrained.
- Agent A system that puts a language model in a loop of thinking, acting, and observing: the model asks for tools, a program runs them, and the result returns to its context, until a goal is met.
- MCP (Model Context Protocol) An open standard, published by Anthropic in November 2024, for connecting AI applications to tools and data: a server offers them once and any compatible app discovers and uses them.
- Hallucination A fluent, confident answer from a model that is false or backed by no source. It follows from predicting plausible text, not from checking facts.
- Eval set (gold cases) Your own set of real cases from your work, each with the answer or criterion your experts accept, that the system has not seen. It is used to compare systems and is rerun after every change.
- Confidence interval A range of reasonable values for a quantity measured on a sample, such as a system’s true accuracy; usually at 95%. Its margin shrinks with the square root of the number of cases: four times as many cases cut it in half.
- Bias (in an AI system) An error that repeats systematically against a group of people, often inherited from the data. It is detected by measuring the error by group, not the average. Not the bias b of a model (lesson 3).
- AI governance The rules, owners, and processes through which an organization decides which uses of AI it accepts and makes sure they are followed. It starts with a usage policy, an inventory of systems, an owner for each system, and an incident log.
- Human in the loop A design in which the system stops before certain actions (irreversible ones, or those over a limit) and waits for a person’s decision: approve, correct, or reject. It costs attention and only protects if the review is real.
- Use case A specific task that AI could change, with who does it, how often, and with what data. It is compared with others by frequency, value per occurrence, and risk. “Use AI in sales” is not a use case; “answer warranty questions by email” is.
- Pilot A small-scale test of a use case, with real users, a fixed time frame, a baseline measured beforehand, and a measurable goal. It ends in a data-based decision: expand, fix, or shut down.
Full transcript
Sources
- McCulloch, W. S., Pitts, W. (1943). A logical calculus of the ideas immanent in nervous activity
- Rosenblatt, F. (1958). The perceptron: a probabilistic model for information storage and organization in the brain
- Samuel, A. L. (1959). Some Studies in Machine Learning Using the Game of Checkers
- Minsky, M., Papert, S. (1969). Perceptrons: An Introduction to Computational Geometry (1969; edición ampliada de 1988)
- Rumelhart, D. E., Hinton, G. E., Williams, R. J. (1986). Learning representations by back-propagating errors (Nature 323, 533–536)
- Hochreiter, S., Schmidhuber, J. (1997). Long short-term memory
- Krizhevsky, A., Sutskever, I., Hinton, G. E. (2012). ImageNet Classification with Deep Convolutional Neural Networks (AlexNet)
- Mikolov, T., Chen, K., Corrado, G., Dean, J. (2013). Efficient Estimation of Word Representations in Vector Space (word2vec)
- Goodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., Bengio, Y. (2014). Generative Adversarial Networks
- Bahdanau, D., Cho, K., Bengio, Y. (2014). Neural Machine Translation by Jointly Learning to Align and Translate
- He, K., Zhang, X., Ren, S., Sun, J. (2015). Deep Residual Learning for Image Recognition (ResNet)
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., Polosukhin, I. (2017). Attention Is All You Need
- Brown, T. B., Mann, B., Ryder, N., et al. (2020). Language Models are Few-Shot Learners (GPT-3)
- Ho, J., Jain, A., Abbeel, P. (2020). Denoising Diffusion Probabilistic Models
- Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (RAG)
- Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., et al. (2021). Learning Transferable Visual Models From Natural Language Supervision (CLIP)
- Stability AI (2022). Stable Diffusion Public Release (anuncio, 22 de agosto de 2022)
- OpenAI (2022). Introducing ChatGPT (30 de noviembre de 2022)
- OpenAI (2024). Learning to Reason with LLMs (presentación de o1, 12 de septiembre de 2024)
- Anthropic (2024). Introducing the Model Context Protocol (25 de noviembre de 2024)
CommentsThis lesson’s public conversation: questions, facts to check, ideas.
Comments live in GitHub Discussions, in the course’s public repository; writing one requires a GitHub account. They load from giscus.app when you open this section. The course reviewers read them, and if a change is accepted, it is applied in both languages. Open the thread on GitHub