Skip to content
seekho.
← How AI Models Are Trained: A Visual Guide to Building Models from Scratch

Key words and examples

Every key word in this course in everyday language, and every real-world example with its picture. Use it to look things up or to revise.

🔑 Key words (63)

63 of 63 words

Accuracy
The share of all answers that are rightFrom: Judging a Classifier: Accuracy, Precision and Recall
Activation
A simple rule that bends the total, such as ReLU or sigmoid.From: Neurons, Weights and Activations
Attention weight
How much one word looks at another. All weights add up to 1From: Attention and Transformers in Pictures
Backpropagation
Passing the blame back from the loss to every knob.From: Backpropagation Without the Fear
Base model
A model that has already learned general patternsFrom: Fine-Tuning an Existing Model Instead of Starting Over
Baseline
A very simple guess to compare against, like always saying noFrom: Evaluating, Saving and Sharing a Model
Batch
The group of examples used to make one step.From: Making Training Work: Learning Rate, Batches and Epochs
Bias
A knob that moves the total up or down.From: Neurons, Weights and Activations
Bias (b)
A starting amount added to every flatFrom: A Model Is a Formula with Knobs
Bigram model
Looks at one letter and guesses the next letterFrom: Lab: Build a Tiny Text Generator
Confusion matrix
A small table of the four counts of right and wrongFrom: Judging a Classifier: Accuracy, Precision and Recall
Cross-entropy loss
Minus the log of the chance given to the real next tokenFrom: Predicting the Next Token
Dot product
Multiply matching numbers and add them up, to see how alike two lists areFrom: Tokens and Embeddings
Early stopping
Stop training when the validation error starts to riseFrom: Overfitting and Underfitting
Embedding
A short list of learned numbers for one tokenFrom: Tokens and Embeddings
Epoch
One full pass through all the training data.From: Making Training Work: Learning Rate, Batches and Epochs
Error
The guess minus the real answer for one exampleFrom: Measuring Mistakes: The Loss
Feature
A column the model is allowed to see, like a flat's sizeFrom: Data, Features and Labels
Fine-tuning
Training an already trained model a little more on focused examplesFrom: How Large Language Models Are Trained
Forward pass
Pushing numbers from the inputs to the output to make a guess.From: The Forward Pass
Gradient
The slope for one knob: does more of it raise or lower the loss?From: Gradient Descent: Turning the Knobs Downhill
Hidden layer
A layer between the inputs and the output.From: The Forward Pass
Human feedback
People choosing the better answer, so the model learns what they preferFrom: How Large Language Models Are Trained
Hyperparameter
A setting you choose, not a knob the model learns.From: Making Training Work: Learning Rate, Batches and Epochs
Key
What a word contains, for others to matchFrom: Attention and Transformers in Pictures
Label
The answer the model must predict, like the priceFrom: Data, Features and Labels
Layer
A row of neurons that all read the same inputs.From: The Forward Pass
Learning rate
The size of each step. Too big jumps past the lowest pointFrom: Gradient Descent: Turning the Knobs Downhill
Licence
Written permission that says what you may do with the dataFrom: Getting and Cleaning Data Responsibly
Log loss
A mistake score that is big when the model is sure and wrongFrom: From Numbers to Yes or No: Logistic Regression
Loss
One number that says how wrong the guesses areFrom: What It Means to Train a Model
Mean squared error
The average of all the errors, each multiplied by itselfFrom: Measuring Mistakes: The Loss
Model
A formula that turns an input into a guessFrom: What It Means to Train a Model
Model card
A short page about a model: use, data, scores, limits and risksFrom: Evaluating, Saving and Sharing a Model
nn.Linear
One layer of weights and biasesFrom: The Same Ideas in PyTorch
Optimizer
The part that turns the knobs a little after each stepFrom: The Same Ideas in PyTorch
Overfitting
The model memorises its examples instead of the patternFrom: Overfitting and Underfitting
Parameters
The numbers inside the model that training changesFrom: What It Means to Train a Model
Personal data
Anything that shows who a person is, like a name or faceFrom: Getting and Cleaning Data Responsibly
Precision
When the model says yes, how often it is rightFrom: Judging a Classifier: Accuracy, Precision and Recall
Pretraining
The first stage: predicting the next token over a very large amount of textFrom: How Large Language Models Are Trained
Probability
A chance between 0 and 1From: Predicting the Next Token
Query
What a word is looking forFrom: Attention and Transformers in Pictures
Random seed
A starting number that makes the random picks the same each runFrom: Lab: Build a Tiny Text Generator
Recall
Of all the real yes cases, how many the model foundFrom: Judging a Classifier: Accuracy, Precision and Recall
Sampling
Picking the next token at random, using the chancesFrom: Predicting the Next Token
Scaling
Changing inputs to a handier size, like square metres into tensFrom: Lab: Train a Line from Scratch
Seed
A number that makes the random start the same every time.From: Lab: Train a Tiny Neural Network
Sigmoid
A rule that turns any number into a value between 0 and 1From: From Numbers to Yes or No: Logistic Regression
Tensor
PyTorch's word for a list or table of numbersFrom: The Same Ideas in PyTorch
Test set
Rows kept hidden in training, used once to check the modelFrom: Data, Features and Labels
Threshold
The cut-off chance where the answer turns to yes, often 0.5From: From Numbers to Yes or No: Logistic Regression
Token
A small piece of text the model reads as one unitFrom: Tokens and Embeddings
Training loop
Code that repeats: find the slopes, then step the knobsFrom: Lab: Train a Line from Scratch
Training set
The examples the model learns fromFrom: Training, Validation and Test Sets
Transformer
A stack of attention blocks and small networksFrom: Attention and Transformers in Pictures
Underfitting
The model is too simple to catch the patternFrom: Overfitting and Underfitting
Update step
Moving every knob a little against its gradient.From: Lab: Train a Tiny Neural Network
Validation set
Examples you use to pick settings and compare modelsFrom: Training, Validation and Test Sets
Vocabulary
The list of all tokens the model knowsFrom: Tokens and Embeddings
Weight
A knob that says how much one input matters.From: Neurons, Weights and Activations
Weight (w)
How much the price goes up for each extra square metreFrom: A Model Is a Formula with Knobs
XOR
A pattern where the answer is 1 when exactly one input is 1.From: Lab: Train a Tiny Neural Network

🏠 Real-world examples (25)

  1. Lesson 1

    What It Means to Train a Model

    Training means a model guesses, sees how wrong it was, and changes its numbers a little. It does this many times.

    📌 Guess, compare, adjust, repeat.

  2. Lesson 2

    Data, Features and Labels

    Training data is a table of examples. Features are the columns the model sees. The label is the answer it must guess.

    📌 Features go in. The label is what comes out.

  3. Lesson 3

    A Model Is a Formula with Knobs

    Our first model is a straight line: price = w × size + b. The letters w and b are two knobs that training sets.

    📌 A model is a formula with knobs. Training turns the knobs.

  4. Lesson 4

    Measuring Mistakes: The Loss

    The loss is one number for all of a model's mistakes. We square each mistake, then take the average.

    📌 The loss is one number for all the mistakes. Make it small.

  5. Lesson 5

    Gradient Descent: Turning the Knobs Downhill

    Gradient descent finds which way each knob makes the loss grow. Then it moves the knob a small step the other way.

    📌 Find the slope, step the other way, repeat.

  6. Lesson 6

    Lab: Train a Line from Scratch

    In this lab you write the loss, the slopes and the update step in Python. Then a line learns flat prices by itself.

    📌 Data, model, loss, loop. That is every training program.

  7. Lesson 7

    From Numbers to Yes or No: Logistic Regression

    The model adds up clues with weights. It turns the total into a chance from 0 to 1. A high chance means yes.

    📌 Add weighted clues, turn the total into a chance, then compare it with the threshold.

  8. Lesson 8

    Training, Validation and Test Sets

    Split your examples into three piles. One pile is for learning. One is for choosing settings. One is for the final check.

    📌 Learn on training, choose on validation, and check on test only once.

  9. Lesson 9

    Overfitting and Underfitting

    A model that is too simple misses the pattern. A model that memorises its examples fails on new ones.

    📌 Watch the validation error. When it rises while training error falls, stop.

  10. Lesson 10

    Judging a Classifier: Accuracy, Precision and Recall

    Count the right and wrong answers by type. Precision checks false alarms. Recall checks missed cases.

    📌 Count false alarms and misses separately, then decide which costs more.

  11. Lesson 11

    Neurons, Weights and Activations

    A neuron takes some numbers in and gives one number out. It multiplies each input by a weight, adds a bias, then bends the total.

    📌 Weights, then a bias, then a bend.

  12. Lesson 12

    The Forward Pass

    The forward pass is how a network makes a guess. Numbers go from the inputs, through each layer, to the output.

    📌 Input, hidden layer, output, then loss.

  13. Lesson 13

    Backpropagation Without the Fear

    Backpropagation finds how much each knob caused the mistake. It starts at the loss and passes the blame back, layer by layer.

    📌 Start at the loss, pass the blame back, multiply as you go.

  14. Lesson 14

    Lab: Train a Tiny Neural Network

    In this lab you train a small network on a pattern called XOR. You write the update step and watch the loss fall.

    📌 Forward, loss, backward, update, repeat.

  15. Lesson 15

    Making Training Work: Learning Rate, Batches and Epochs

    Three settings shape training. The learning rate is the step size. A batch is a group of examples. An epoch is one full pass.

    📌 Step size, batch, full pass. Change one at a time.

  16. Lesson 16

    Tokens and Embeddings

    A model only works with numbers. So text is cut into small pieces called tokens, and each piece gets a list of learned numbers.

    📌 Tokens are the pieces. Embeddings are the learned numbers for each piece.

  17. Lesson 17

    Predicting the Next Token

    A text model looks at the text so far. It gives a chance to every possible next token, and the chances add up to 1.

    📌 Small loss means the real next token got a high chance.

  18. Lesson 18

    Lab: Build a Tiny Text Generator

    You build a text model that counts which letter comes after which. Then it writes new text by picking letters from those counts.

    📌 Count what follows what, then pick from the counts.

  19. Lesson 19

    Attention and Transformers in Pictures

    Attention lets each word look back at earlier words. It gives each one a weight, and the weights add up to 1.

    📌 Score, turn into weights that add up to 1, then mix.

  20. Lesson 20

    How Large Language Models Are Trained

    Large language models are trained in three stages. First they predict next words, then they learn from examples, then from people's choices.

    📌 Pretrain, fine-tune on instructions, then learn from people's choices.

  21. Lesson 21

    Getting and Cleaning Data Responsibly

    Before training, make sure you may use the data. Remove personal details. Then clean it and check that it is fair.

    📌 Permission first, privacy second, then clean and check for fairness.

  22. Lesson 22

    The Same Ideas in PyTorch

    PyTorch is a free library that does the same training steps you did by hand. It works out the gradients for you.

    📌 Predict, measure, clear, backward, step. Run PyTorch on your own computer.

  23. Lesson 23

    Fine-Tuning an Existing Model Instead of Starting Over

    Fine-tuning means you take a model that is already trained. You train it a little more on your own small dataset.

    📌 Start from a trained model, teach it your task, and respect its licence.

  24. Lesson 24

    Evaluating, Saving and Sharing a Model

    Test the model once on data it has never seen. Report the true scores. Save it, and share it with a short label.

    📌 Test once, report honestly, and add a model card when you share.

  25. Lesson 25

    Final Project: Train and Evaluate Your Own Model

    Pick a small task and data you may use. Train a model, test it once, and write an honest model card.

    📌 Small task, fair data, one honest test, and a model card.