Key terms in two registers: a plain-language definition for language professionals and a technical one for IT/ML readers.
Loading glossary…
100 terms shown
A
Algebraic notation
The way chess moves are written today: the piece's capital letter (K, Q, R, B, N; none for a pawn), then the square it moves to, with an x when it captures. Nf3 is a knight moving to f3.
Example: 1. e4 e5 2. Nf3: White's pawn to e4, Black's pawn to e5, White's knight to f3.
ⓘ Technical definition
The standard chess notation (FIDE): every square named by file letter and rank number from White's side; a move written as piece letter + destination square, x for a capture, and a disambiguating file or rank when two like pieces can reach the square.
A number that is the solution of an equation built from whole numbers and powers of x, such as x² − 2 = 0. Every fraction is one, and so is √2.
Example: The golden ratio (1 + √5)/2 is algebraic: it solves x² − x − 1 = 0.
ⓘ Technical definition
A root of a non-zero polynomial with integer coefficients. Every rational p/q is algebraic (a root of qx − p); so are √2 (x² − 2), the golden ratio (x² − x − 1) and ∛2 (x³ − 2).
A fixed set of step-by-step instructions for getting something done — like a recipe. Given the same input, an algorithm always follows the same steps to the same result.
ⓘ Technical definition
A finite, deterministic procedure mapping inputs to outputs in a bounded number of steps. Contrast with a model, whose behaviour is learned from data rather than hand-specified; ML systems combine algorithms (training, inference) with learned models.
How zoomed-in an answer is: an executive wants the outcome and the decision, a peer wants the mechanics. Matching altitude to the listener is part of the answer.
Example: The same migration story: to the CTO, "we cut costs 30% with two days' downtime"; to a peer, the batching strategy that made the two days possible.
ⓘ Technical definition
The level of abstraction an answer is pitched at, calibrated to the audience: decision-first with one sizing number for senior/exec listeners, method-first with mechanics for peers. Altitude mismatch reads as either evasive or drowning-in-detail.
One copy of the attention mechanism. A model runs several of these in parallel, each learning to notice a different kind of word relationship (subject–verb, adjective–noun, coreference, etc.).
ⓘ Technical definition
A single (Q, K, V) triplet with its own weight matrices Wᵠ, Wᴷ, Wᵛ; produces a d_head-dimensional output vector. d_head = d_model / h, where h is the total number of heads.
A language model, published by Google in 2018, that reads a whole sentence at once, looking both left and right of every word, and turns each word (or piece of a word) into a list of numbers that carries its meaning in context. It is trained by hiding words and guessing them back.
ⓘ Technical definition
Bidirectional Encoder Representations from Transformers: a stack of Transformer encoder blocks (12 in BERT-base, 24 in BERT-large) with no causal mask, pre-trained on masked language modelling and next-sentence prediction, then fine-tuned or used as a source of contextual token vectors.
An extra adjustable number added to a neuron's calculation that lets the model shift its output, independent of the inputs.
ⓘ Technical definition
A trainable scalar b in the affine transformation w·x + b; allows the decision boundary to be offset from the origin.
Binary
The way computers store numbers using only two symbols — 0 and 1. Every number, character, and word the computer processes is ultimately stored as a sequence of these two digits.
ⓘ Technical definition
Base-2 numeral system; an n-bit unsigned integer represents values 0 to 2ⁿ − 1. Token IDs and embedding values are all stored in binary at the hardware level.
bisection
Finding a number by halving: keep an interval that surely holds it, test the midpoint, keep the half that still holds it, and repeat. Each step halves the width.
Example: For √2: [1, 2], then [1, 3/2] because (3/2)² > 2, then [5/4, 3/2] because (5/4)² < 2.
ⓘ Technical definition
Given a < b with f(a) and f(b) on opposite sides of a target, replace [a, b] by [a, m] or [m, b], m = (a + b)/2, keeping the sign change. After k steps the width is (b − a)/2ᵏ; the intervals are nested.
A plain number, for a pair of surfaces, that says how strongly they grip: the friction force divided by the normal force pressing them together.
Example: Wood sliding on wood has a coefficient of about 0.3, so a 40 kg crate meets about 118 N of friction.
ⓘ Technical definition
μ in F_friction ≈ μ N; the kinetic coefficient applies to sliding, the static one (usually a little larger) sets the largest grip before sliding starts. An empirical rule, not a law.
The property of the real numbers that they have no gaps: every non-empty set that has an upper bound has a least upper bound. The fractions do not have it.
Example: {x ∈ ℚ : x² < 2} is bounded above, but its least upper bound √2 is not in ℚ.
ⓘ Technical definition
The least-upper-bound property: every non-empty subset of ℝ bounded above has a supremum in ℝ. Equivalent forms: nested closed intervals with widths tending to 0 meet in a point; every bounded increasing sequence converges. ℚ is dense but not complete.
A range that likely contains the true value, given the uncertainty in a sample — e.g. '52% ± 3%'. A wider interval means less certainty; a bare number without one hides how shaky it may be.
ⓘ Technical definition
An interval estimate [L, U] that, under repeated sampling, contains the true parameter with a stated coverage (e.g. 95%). Width shrinks with √n; it quantifies sampling uncertainty, not the probability the parameter lies in this specific interval.
The maximum amount of text a language model can consider at once — its working memory. Text beyond this limit is dropped, so a very long document may not fit and its earlier parts can be forgotten.
ⓘ Technical definition
The maximum number of tokens processed in a single forward pass (the attention span), bounded by the positional-encoding range and the O(n²) cost of attention. Inputs exceeding it are truncated or chunked. Distinct from the co-occurrence Context window.
A measure of how much of your code the tests actually run — useful for finding untested code, but a high number does not prove the tests are good.
ⓘ Technical definition
The fraction of lines/branches executed during a test run (coverage.py / pytest-cov). Line and branch coverage locate unexercised code; high coverage is necessary-not-sufficient, measuring execution rather than assertion quality.
The width of the model — how many numbers are used to represent each token at every step of the pipeline. Larger values give the model more capacity but require more memory.
ⓘ Technical definition
The embedding dimension shared by all sublayers. Every intermediate representation has shape (seq_len, d_model). Typical values: 64 (tiny), 512 (BERT-small), 768 (BERT-base), 1024 (BERT-large).
A die with twenty faces, numbered 1 to 20, each as likely to land face up as any other: a chance of 1 in 20, 5 %, for each.
Example: The check rolls one d20 and adds the modifier.
ⓘ Technical definition
A fair 20-sided die (an icosahedron); a roll is uniformly distributed on {1, …, 20}, with mean 10.5. In dice notation, NdS is N dice of S sides, so d20 is one twenty-sided die.
The audit trail of a number: which source rows and transformations produced it. The way you answer 'where did this come from?' when a figure is challenged.
ⓘ Technical definition
The recorded provenance of a data artifact - the upstream tables, columns and transformations that produced it. Enables impact analysis, debugging and trust; downstream of the served feature table it becomes the model-monitoring concern of MLOps.
An automated sequence of steps that moves and transforms data on a schedule - the difference between a notebook you ran once and a job that produces the right number every night.
ⓘ Technical definition
A directed acyclic graph of data-processing jobs (ingest, transform, load) run on a schedule or trigger, with retries and backfills. The unit of production data engineering; its correctness rests on idempotency.
Replacing each value with the change since the previous one. It removes a steady trend, often turning an unstable series into a stable one.
ⓘ Technical definition
The transform y'_t = y_t - y_{t-1} (seasonal variant: y_t - y_{t-m}). The 'I' in ARIMA: the number of differencing passes applied before AR/MA modelling.
Making a very long list of numbers shorter while keeping the most important information — like compressing a photo without losing the recognisable shapes.
ⓘ Technical definition
Projecting data from ℝⁿ into a lower-dimensional subspace ℝᵏ (k ≪ n). Truncated SVD retains the top k singular vectors; PCA maximises explained variance. Reduces noise and computational cost.
domain of a function
The inputs a function accepts: the numbers you may put in and get an output back.
Example: f(x) = 1/x has every real number except 0 as its domain.
ⓘ Technical definition
For f: D → ℝ, the set D. A formula's natural domain leaves out the inputs where it is undefined, such as a zero bottom or the square root of a negative number.
A way to multiply two vectors that gives a single number: their lengths multiplied together and by the cosine of the angle between them, so it is largest when they point the same way, zero when they are at right angles and negative when they point apart. It is also what you get by multiplying each pair of matching components and adding them up. In machine learning it measures how alike two embeddings are: words with similar meanings tend to have high dot products.
ⓘ Technical definition
a · b = Σᵢ aᵢbᵢ = |a| |b| cos θ (magnitudes also written ‖a‖ ‖b‖), where θ is the angle between a and b; a · b = 0 exactly when a and b are perpendicular (or one is zero). In physics, the work of a force F over a displacement d is F · d; in attention, the score of how strongly a query matches a key.
A list of numbers that represents the meaning of a word. Words with similar meanings get similar lists of numbers, so the model can detect that 'cat' and 'kitten' are related.
ⓘ Technical definition
A dense vector in ℝ^d_model that encodes semantic and contextual information. Produced by looking up a learned embedding matrix E ∈ ℝ^{|V| × d_model} at the row indexed by the token ID.
A fixed set of named constant values grouped together — like Colour.RED, Colour.GREEN — so you use meaningful names instead of loose numbers or strings.
ⓘ Technical definition
enum.Enum defines symbolic members bound to unique constant values; members are singletons, compared by identity, iterable, and support aliases. IntEnum/StrEnum mix in int/str; auto() assigns values.
One complete pass through all the training data. Training typically runs for many epochs — the model sees the same data many times, improving a little each time.
ⓘ Technical definition
A full iteration over the training dataset. After each epoch, the model has updated its weights once for every training example. The number of parameter updates per epoch equals ⌈N / batch_size⌉.
Euler's number
The number e ≈ 2.71828, the limit of (1 + 1/n)ⁿ: what 1 coin grows to in a year at 100 % interest added more and more often. It is irrational and transcendental.
Example: (1 + 1/12)¹² ≈ 2.613035 and 1/0! + 1/1! + … + 1/6! ≈ 2.718056 both approach e.
ⓘ Technical definition
e = lim (1 + 1/n)ⁿ = Σ 1/k! (k ≥ 0) = 2.718281828…. It is the base for which the slope of eˣ at 0 is 1. Irrational (Euler 1737; Fourier's short proof c. 1815) and transcendental (Hermite 1873).
The function eˣ, a power of Euler's number e ≈ 2.71828. It is its own derivative: at every point it climbs exactly as steeply as it is high.
Example: e^(−x) has derivative −e^(−x); e^(kt) has derivative k e^(kt).
ⓘ Technical definition
exp(x) = eˣ, with e^(x + y) = eˣ eʸ and (eˣ)′ = eˣ, since (eʰ − 1) ÷ h → 1 as h → 0. It models any quantity whose rate of change is proportional to its amount.
A number with a decimal point, like 4.0 or 3.5. Python hands you a decimal whenever you divide with /, even when the answer comes out even.
Example: 1000 / 250 gives the decimal 4.0.
ⓘ Technical definition
Python's float type: an IEEE-754 double-precision number. True division (/) always returns a float; equality can be surprising for non-terminating binary fractions, so compare with a tolerance when it matters.
A number with a decimal part, like 3.14 or −0.007. Embedding values and model weights are stored as floating-point numbers because they need to represent very small fractions precisely.
A list of how often each thing appears, usually ordered from most to least common. A word-frequency table pairs every word in a text with its count — the shape of the text at a glance.
Example: {'the': 3, 'cat': 2} sorted by count is a frequency table.
ⓘ Technical definition
A mapping from each distinct value to its number of occurrences, typically built by tallying into a dict and then sorting the items by count. The basis of term-frequency features in text analysis.
A rule that takes a number (or list of numbers) as input and produces a number (or list) as output — like a recipe that always gives the same result for the same ingredient.
ⓘ Technical definition
A mapping f: X → Y. In ML, activation functions are applied element-wise to tensors: f(x)ᵢ = f(xᵢ). Composition f ∘ g means first apply g, then f.
G
Game state (role-playing)
Everything at the table that is a number or a rule rather than words: the dice rolled, each hero's bumps or hit points, whose turn it is, the round and the scene.
Example: Mira's second bump is game state: code adds it when the check it rolled fails on a climb that could hurt.
ⓘ Technical definition
The table's state object, kept and changed only by code (the tools' handlers), serialised with the table and sent to the model in the prompt's turn part each turn.
A series in which each term is the one before multiplied by the same number r, like 1 + 1/2 + 1/4 + …. When r is between 0 and 1 it adds up to 1/(1 − r).
A lock in CPython that lets only one thread run Python bytecode at a time — so threads help with waiting (I/O) but not with CPU-bound number-crunching.
ⓘ Technical definition
CPython's mutex serialising bytecode execution to one thread at a time, protecting interpreter state. I/O and C extensions can release it; CPU-bound parallelism needs processes. PEP 703 explores a free-threaded build.
The number G in Newton's law of gravitation, which sets how strong gravity is. It is the same for every pair of masses anywhere, and very small, which is why only huge masses like planets pull noticeably.
Example: Two 1 kg masses one metre apart attract with 6.674 × 10⁻¹¹ N: far too little to feel.
ⓘ Technical definition
G ≈ 6.674 × 10⁻¹¹ N·m²/kg² (CODATA 2018: 6.67430 × 10⁻¹¹). First measured in the laboratory with Cavendish's torsion balance (1798).
A setting you choose before training — like model width or learning speed — that the model does not learn on its own. Choosing good hyperparameters is part of building a well-performing model.
ⓘ Technical definition
A parameter set before training, as opposed to learned weights. Examples: d_model, number of heads h, learning rate η, batch size, number of layers. Tuned via grid search, random search, or Bayesian optimisation.
A whole number with no decimal part — like 0, 42, or −7; all of them together are written ℤ. Token IDs are integers: each word or sub-word gets assigned a unique whole number when the model processes text.
ⓘ Technical definition
An element of ℤ, stored as a fixed-width binary value. int32 uses 32 bits (range ≈ ±2.1 × 10⁹). Token IDs are non-negative integers in [0, |V| − 1].
The total a quantity accumulates: add up thin slices of it, make the slices thinner and thinner, and the number the sums settle on is the integral. On a graph, it is the area under the curve.
Example: The apple's speed 9.8t from 0 to 1 s has integral ∫₀¹ 9.8t dt = 4.9: it falls 4.9 m in its first second.
ⓘ Technical definition
∫ₐᵇ f(t) dt, the common limit of the left and right sums of f over [a, b] as the slice widths shrink to 0. The ∫ is a long S, for sum; f(t) dt is one slice.
A technique that keeps the numbers flowing through the model from becoming too large or too small, making training more stable. It rescales each layer's output to a standard range.
ⓘ Technical definition
Normalises a vector to zero mean and unit variance across its features: (x − μ) / (σ + ε), then rescales with learnable gain γ and shift β. Applied after attention and FFN sublayers in the encoder block.
The number a function's output settles on as its input closes in on a point, from every side, without ever being equal to it. The function need not even have a value at the point.
Example: (x² − 1) ÷ (x − 1) has no value at 1, yet its limit there is 2.
ⓘ Technical definition
lim f(x) = L as x → a when f(xₙ) → L for every sequence xₙ → a with xₙ ≠ a; equivalently, for every ε > 0 there is a δ > 0 with |f(x) − L| < ε whenever 0 < |x − a| < δ.
The number a sequence settles on: whatever tolerance you choose, however small, the terms are all within it from some point on. A sequence with a limit converges to it.
Example: 1/n converges to 0: for ε = 0.001, every term from 1/1001 on is within ε of 0.
ⓘ Technical definition
L = lim aₙ when for every ε > 0 there is an N such that |aₙ − L| < ε for all n ≥ N. A limit, when it exists, is unique.
An operation on a list of numbers that stretches, rotates, or reflects it — but never curves it. Multiplying by a matrix is the most common way to apply a linear transformation.
ⓘ Technical definition
A mapping T: ℝⁿ → ℝᵐ satisfying T(αu + βv) = αT(u) + βT(v). Represented by a matrix W ∈ ℝ^{m×n}: T(x) = Wx. The Q, K, V projections in attention are all linear transformations.
Liouville's constant
A number built with a 1 at the 1st, 2nd, 6th, 24th, … decimal places and 0 elsewhere: the first simple decimal written down and proved transcendental.
Example: L = 0.110001000000000000000001…
ⓘ Technical definition
L = Σ_{k≥1} 10^(−k!). Its truncations approximate it better than any irrational algebraic number can be approximated (Liouville, 1844 and 1851), so L is transcendental.
A single number that measures how wrong the model's output is. Training tries to make this number as small as possible, improving predictions step by step.
ⓘ Technical definition
A scalar L(ŷ, y) measuring the gap between prediction ŷ and target y. Common choices: mean squared error (MSE) for regression, cross-entropy for classification. The gradient of L drives weight updates.
lowest terms
A fraction is in lowest terms when its top and bottom share no factor bigger than 1, like 2/3 but not 4/6.
Example: 50/100 in lowest terms is 1/2.
ⓘ Technical definition
p/q with gcd(p, q) = 1 and q > 0. Every rational number has exactly one such representative, reached by dividing p and q by gcd(p, q).
A rectangular table of numbers arranged in rows and columns. Multiplying a vector by a matrix transforms it — rotating, scaling, or mixing its components.
ⓘ Technical definition
A 2D array W ∈ ℝ^{m×n}. Matrix–vector multiplication Wx maps ℝⁿ → ℝᵐ. The embedding lookup table, the Q/K/V weight matrices, and the output projection are all matrices.
A number added to a die roll for one kind of attempt: positive for something a character does well, negative for something they do badly.
Example: Ada's +3 for swimming turns a roll of 12 into a total of 15.
ⓘ Technical definition
A signed integer added to a d20 roll in a check; each point shifts the chance of success by one face in twenty, 5 percentage points, until it saturates at 0 or 1.
Checking or estimating a chance by letting a program repeat the random event many times and counting how often each result comes up.
Example: Rolling 2d6 ten thousand times in a program gives a 7 about 16.7 % of the time, as the exact count says.
ⓘ Technical definition
Estimating a probability or an expectation by the empirical frequency or mean over many pseudo-random trials; the error shrinks roughly as one over the square root of the number of trials.
The power to which Euler's number e (about 2.718) must be raised to give a number: ln x answers "e to what power is x?". It turns multiplying into adding.
Example: ln 4 ≈ 1.386, because e^1.386 ≈ 4; and ln 16 ≈ 2.773 is twice ln 4, since 16 = 4 × 4.
ⓘ Technical definition
ln x, the inverse of the exponential function e^x, defined for x > 0; ln(ab) = ln a + ln b, so ln(a²) = 2 ln a.
A counting number: 0, 1, 2, 3 and so on without end. The natural numbers answer "how many?".
Example: 3 is a natural number; −3 and 1/2 are not.
ⓘ Technical definition
An element of ℕ = {0, 1, 2, …}. Closed under addition and multiplication but not subtraction: x + 3 = 1 has no solution in ℕ. Some texts start ℕ at 1; this course includes 0.
A chain of intervals, each inside the one before. When their widths shrink towards 0, in the real numbers they close in on exactly one point.
Example: The bisection intervals for √2 have fraction ends, yet no fraction lies in all of them.
ⓘ Technical definition
Closed intervals I₁ ⊇ I₂ ⊇ I₃ ⊇ … . In ℝ their intersection is non-empty, and it is a single point when the widths tend to 0 (the nested-interval property, equivalent to completeness). In ℚ the intersection can be empty.
A number for how surprising your result would be if there were really no effect — a small p-value (say under 0.05) suggests the pattern probably is not just chance. It does not tell you how big or important the effect is.
ⓘ Technical definition
P(data at least as extreme as observed | null hypothesis true). A small p-value is evidence against H₀ — not the probability H₀ is true, nor an effect size. Vulnerable to p-hacking and multiple comparisons; report effect sizes and intervals alongside.
The simplest building block of a neural network: it receives numbers, multiplies each by an importance score, adds them up with a fixed offset, and decides whether to 'fire' based on the result.
ⓘ Technical definition
A linear classifier: output = step(w · x + b). Learns using the perceptron update rule: w ← w + α(y − ŷ)x when prediction ŷ ≠ label y.
polynomial
An expression made of powers of x, each multiplied by a number, added together, like 3x − 1 or x² − 2. The numbers in front are its coefficients; the highest power is its degree.
Example: x² − x − 1 is a polynomial of degree 2 with integer coefficients 1, −1 and −1; the golden ratio is one of its roots.
ⓘ Technical definition
A finite sum a_n xⁿ + … + a_1 x + a_0; with integer coefficients a_i it lies in ℤ[x]. Its degree is the largest n with a_n ≠ 0; a root is a value of x that makes it 0.
A small layer on top of BERT that takes the final vector of the [CLS] token, mixes its numbers with one weight matrix and squeezes each into the range −1 to 1. Its output is what the next-sentence task reads. It is not the same as pooling, which averages or picks rows without changing them.
ⓘ Technical definition
pooled = tanh(h_[CLS] · W_pool + b_pool): one dense layer and a tanh applied to the [CLS] row of the last encoder layer, trained by next-sentence prediction. Distinct from mean or [CLS] pooling, which combine the encoder rows as they are.
A pattern added to each word's numbers to tell the model where that word sits in the sentence. Without it, 'The dog bit the man' and 'The man bit the dog' would look identical to the model.
ⓘ Technical definition
A deterministic or learned vector p_i added to the embedding at position i: input_i = embedding_i + p_i. Enables the model to distinguish order without recurrence.
A whole number above 1 that only 1 and itself divide exactly: 2, 3, 5, 7, 11, …. Every whole number above 1 is a product of primes in only one way.
Example: 1000 = 2 × 2 × 2 × 5 × 5 × 5: its only prime factors are 2 and 5, which is why 3/8 = 375/1000 has a decimal that stops.
ⓘ Technical definition
An integer p ≥ 2 whose only positive divisors are 1 and p. By the fundamental theorem of arithmetic, every integer n ≥ 2 factors into primes uniquely, up to the order of the factors.
A number you can write as a fraction p/q of two whole numbers, with q not zero. 1/3, −2 (that is −2/1) and 0.75 (3/4) are all rational.
Example: 3x = 1 has no integer solution; its solution 1/3 is rational.
ⓘ Technical definition
An element of ℚ = {p/q : p, q ∈ ℤ, q ≠ 0}, where p/q = r/s exactly when ps = qr. ℚ is a field: closed under +, −, × and division by non-zero elements, and it is dense in the real line.
Any point on the number line: every fraction, and every number that fills a gap fractions leave, such as √2 or π. Together they form the line with no holes.
Example: √2 is a real number that is not rational.
ⓘ Technical definition
An element of ℝ, the completion of ℚ: every bounded non-empty set of reals has a least upper bound. ℝ contains ℚ and the irrational numbers, algebraic and transcendental.
A simple function used inside neural networks: it keeps positive numbers unchanged and turns any negative number into zero. It is the most common activation function in modern networks.
ⓘ Technical definition
Rectified Linear Unit: ReLU(x) = max(0, x). Computationally cheap, sparse (many zeros), and avoids the vanishing gradient problem that affects sigmoid and tanh in deep networks.
repeating decimal
A decimal that falls into a block of digits repeated for ever, like 0.142857142857… for 1/7. The length of the block is its period.
Example: 0.272727… repeats the block 27 (period 2) and equals 27/99 = 3/11.
ⓘ Technical definition
An expansion that is eventually periodic: after some point the digits repeat a block of length k, the period. A real number is rational if and only if its decimal expansion terminates or repeats; for q in lowest terms the period of p/q is at most q − 1.
The score the environment hands back after each action - the only teaching signal in reinforcement learning. Not a label saying what was right, just a number saying how good that was.
ⓘ Technical definition
The scalar feedback r received on a transition; the agent's objective is to maximize expected discounted cumulative reward (the return). Sparse or delayed reward is what makes RL harder than a bandit.
A model that scores how good an answer is, learned from humans comparing pairs of answers. It turns 'people preferred A over B' into a number a system can optimize - the heart of how LLMs are aligned.
ⓘ Technical definition
A learned function assigning scalar reward to outputs, fit from pairwise human preferences (typically a Bradley-Terry likelihood). In RLHF it supplies the reward signal that a policy-gradient step (e.g. PPO) optimizes the language-model policy against.
A single plain number with a size but no direction, like a temperature, a mass or −7, as opposed to a vector, which also has a direction. Multiplying a vector by a scalar stretches or shrinks it. In machine learning the temperature and the learning rate are scalars, beside the lists (vectors) and tables (matrices) of numbers.
ⓘ Technical definition
An element of ℝ, a rank-0 tensor. Scalar multiplication, written kv with the scalar beside the vector, scales every component of v by k, and its magnitude by |k|. Scalars arise as outputs of dot products, norms and loss functions.
The agreed shape of a dataset - which columns exist and what type each holds. A contract: break it upstream and everything downstream silently corrupts.
ⓘ Technical definition
The typed structure of a table or file. Schema-on-write (Parquet) enforces types at ingestion; schema-on-read (CSV/JSON) guesses them per read, which is where types silently lie (a number parsed as text, a null read as the string "NA").
A single list of numbers that captures the meaning of an entire sentence. Two sentences with similar meanings will have similar sentence embeddings.
ⓘ Technical definition
A fixed-length vector in ℝ^d_model obtained by pooling the encoder output across the sequence dimension. Enables semantic similarity search and sentence-level classification.
An endless list of numbers in order: a first, a second, a third, and so on, written a₁, a₂, a₃, ….
Example: 1, 1/2, 1/3, 1/4, … is the sequence aₙ = 1/n.
ⓘ Technical definition
A function from the positive integers (or ℕ) to a set of numbers, n ↦ aₙ, written (aₙ). It is increasing when aₙ ≤ aₙ₊₁ for every n, and bounded above when some number exceeds every term.
A function that squeezes any number into a range between 0 and 1, making it useful for outputs that represent probabilities.
ⓘ Technical definition
σ(x) = 1 / (1 + e^{−x}). Saturates at 0 and 1 for large |x|, causing near-zero gradients (vanishing gradient problem) in deep networks.
Skip-gram
The word2vec model that takes one word and tries to guess each of its neighbours. Every wrong guess nudges the numbers that stand for the words involved.
ⓘ Technical definition
For a centre word c and a context word o within the window: h = W_in[c], z = W_out h, p = softmax(z), L = −ln p[o]. The error p − y (y one-hot at o; the gradient of L with respect to z) updates the single row W_in[c] and, with a full softmax, every row of W_out.
A formula that turns any list of numbers into a set of probabilities that all add up to 1. The highest number gets the largest probability. Used in attention to decide how much to focus on each word.
ⓘ Technical definition
σ(x)ᵢ = exp(xᵢ) / Σⱼ exp(xⱼ). The exponential ensures all outputs are positive; the normalisation ensures they sum to 1. Temperature scaling controls the sharpness.
A mathematical operation that breaks a large table of numbers into three simpler parts, capturing the most important structure. It is used to compress word co-occurrence data into compact word vectors.
ⓘ Technical definition
Factorises M ∈ ℝ^{m×n} as M = U Σ Vᵀ, where U ∈ ℝ^{m×m} and V ∈ ℝ^{n×n} are orthogonal and Σ is diagonal with non-negative entries. Truncated SVD keeps the top k singular values to produce a rank-k approximation.
T
Tanh
A function that squeezes any number into a range between −1 and +1, centred at zero. It was commonly used in early neural networks before ReLU became the standard.
ⓘ Technical definition
tanh(x) = (e^x − e^{−x}) / (e^x + e^{−x}). Output range (−1, 1), zero-centred unlike sigmoid. Still suffers from vanishing gradients for large |x|.
Time signature
The two numbers at the start of the staff. The top number says how many beats are in each bar. In these lessons the bottom number is 4: the beat is a quarter note.
Example: 2/4 is two beats in a bar, 3/4 is three and 4/4 is four.
ⓘ Technical definition
The metre sign: in simple time, the upper figure gives the beats per bar and the lower one the note value of the beat (4 for a quarter note).
A number that solves no equation built from whole numbers and powers of x, of any size. π and e are transcendental.
Example: Because π is transcendental, the circle cannot be squared with straight edge and compass.
ⓘ Technical definition
A real (or complex) number that is not algebraic: the root of no non-zero integer polynomial. Every transcendental number is irrational. e (Hermite, 1873) and π (Lindemann, 1882) are transcendental.
A way to solve a small world exactly: repeatedly ask each state 'what's the best I can do from here, given my current guesses about neighbours?' until the numbers stop changing.
ⓘ Technical definition
Iterating the Bellman optimality backup V(s) <- max_a [ R(s,a,s') + gamma V(s') ] to its fixed point; a contraction mapping, so it converges to the optimal value function, from which the greedy policy is read off.
A quantity with a size and a direction, drawn as an arrow and written as its components, an ordered list of numbers: a walk of 3 km east and 4 km north is the vector (3, 4), an arrow 5 km long. In machine learning the same lists stand for words or sentences as points in a space, and words with similar meanings end up as nearby points.
ⓘ Technical definition
An element of ℝⁿ, written by its components (v₁, …, vₙ); geometrically an arrow with a magnitude and a direction, added tip to tail. Operations: addition (component-wise), scalar multiplication, dot product, L2-norm. In this app, token embeddings are d_model-dimensional vectors, rank-1 tensors.
The visual channel a chart uses to represent a number — position along a scale, length of a bar, angle of a wedge, area of a circle, or colour.
Example: Encoding sales as bar length (read accurately) versus as circle area (systematically under-read).
ⓘ Technical definition
The mapping from a data value to a perceptual variable. The Cleveland-McGill accuracy ranking orders channels by how precisely people decode them: position > length > angle/slope > area > colour/density. Named 'Visual encoding' to disambiguate from text/token encoding (P10).
W
Weight
A number the model learns during training that says how much importance to give each input. Weights are the 'knowledge' a trained model has accumulated.
ⓘ Technical definition
A trainable scalar parameter wᵢ in the affine transformation w · x + b. Updated via gradient descent: wᵢ ← wᵢ − η (∂L/∂wᵢ).
Window function
A SQL calculation that runs across a set of related rows without collapsing them - running totals, rankings, or 'the latest record per customer'.
ⓘ Technical definition
An analytic function computed over a partition and order (SUM(...) OVER (PARTITION BY ... ORDER BY ...), ROW_NUMBER(), RANK()). Unlike GROUP BY it preserves row granularity; ROW_NUMBER-then-filter is the canonical latest-record-per-key dedup.
A list of numbers that represents the meaning of one specific word. Unlike sentence embeddings, word embeddings do not take context into account — the word 'bank' has the same vector regardless of sentence.
ⓘ Technical definition
A static vector e_w ∈ ℝ^d produced by looking up word w in an embedding matrix E ∈ ℝ^{|V| × d}. Context-independent, unlike contextualised representations from Transformer encoder layers.
A number that measures how related two words are in meaning. Words like 'cat' and 'kitten' should score high; 'cat' and 'democracy' should score near zero.
ⓘ Technical definition
Typically cosine similarity between word embedding vectors: sim(a, b) = cos(v_a, v_b). Correlation with human judgements (e.g. WordSim-353, SimLex-999) is a standard evaluation benchmark.
Word2vec
A way of learning one list of numbers per word by playing a guessing game over a large text: given a word, guess the words that appear near it. Words that keep similar company end up with similar lists of numbers.
ⓘ Technical definition
A family of shallow neural models (Mikolov et al. 2013): skip-gram predicts each context word from the centre word, CBOW the centre word from its context. Two matrices W_in and W_out of shape |V| × d are trained; by convention the rows of W_in are kept as static word embeddings (some implementations average W_in and W_out). Production training replaces the full softmax with negative sampling or a hierarchical softmax.
Starting a bar chart's value axis at zero, so bar lengths are proportional to the numbers they represent.
Example: Truncating the axis at 90 instead of 0 triples the apparent gap between 100 and 105.
ⓘ Technical definition
The rule that length-encoded charts (bars, areas) must include zero, because the eye reads the full length. Line charts showing rate of change may omit zero; bars may not, or the lie factor departs from 1.