Glossary
The technical terms of this track, with short definitions (and the Persian term where available). Each term links to the lesson where it is introduced.
- affine function
- A function (or in many inputs). Its graph is a line or a plane; ML calls the weights and the bias. Introduced in: Lesson 4
- argmax
- The input at which a function is largest. is the largest value; is where it is reached. Introduced in: Lesson 2
- average rate of change
- The slope of the secant line through two points of a graph. Introduced in: Lesson 7
- axis
- One direction of an array. Axis 0 runs down the rows, axis 1 along each row;
X.sum(axis=0)adds down the rows and removes axis 0. Introduced in: Lesson 3 - base case
- The first statement of a proof by induction, checked directly. Introduced in: Lesson 9
- boolean mask
- An array of
True/Falsevalues used as an index.x[x > 0]keeps the entries where the condition holds and returns a copy. Introduced in: Lesson 3 - broadcasting
- NumPy's rule for operations on arrays of different shapes. Shapes are aligned on the right; sizes must be equal or 1, and a size-1 axis is repeated. Introduced in: Lesson 3
- Cartesian product
- The set of all ordered pairs with and . is the Cartesian product of copies of . Introduced in: Lesson 2
- central difference
- The estimate of . Its truncation error is of order ; the forward difference has error of order . Introduced in: Lesson 7
- central limit theorem
- The average of independent random variables with the same distribution (mean , standard deviation ) is close to for large , whatever the shape of the distribution. Introduced in: Lesson 8
- chain rule
- The rule for the derivative of a composition. Backpropagation applies it once per layer. Introduced in: Lesson 7
- codomain
- The set in , the type of the outputs. Not every element of needs to be an output. Introduced in: Lesson 2
- conjecture
- A claim that nobody has proved or disproved yet. Introduced in: Lesson 9
- contour line
- A curve on which a function of two inputs has a constant value (a level set). The gradient is perpendicular to it. Introduced in: Lesson 7
- contrapositive
- The statement . It is equivalent to , so proving it proves the original claim. Introduced in: Lesson 9
- converse
- The statement for a claim . It is a different claim and can be false when the original is true. Introduced in: Lesson 9
- corollary
- A result that follows quickly from a theorem. Introduced in: Lesson 9
- cosine similarity
- The number between and 1. It measures the angle between two vectors and ignores their lengths. Introduced in: Lesson 6
- counterexample
- One case where the assumptions of a "for all" claim hold but the conclusion fails. One counterexample is enough to show the claim is false. Introduced in: Lesson 9
- critical point
- A point with (or ). A smooth inner minimum or maximum is one, but a critical point can be neither, as at 0. Introduced in: Lesson 7
- cross-entropy loss
- The loss for logits and true class , the negative log-probability of the true class. Introduced in: Lesson 5
- cumulative distribution function
- The function . For the standard normal it is written . Introduced in: Lesson 8
- data matrix
- The matrix with the samples as rows and the features as columns, so . Introduced in: Lesson 2
- derivative
- The limit , the slope of the tangent line at . Introduced in: Lesson 7
- desirable difficulty
- A difficulty during practice that improves long-term learning, such as recalling instead of re-reading. It helps only if you can still succeed with effort. Introduced in: Lesson 1
- direct proof
- A proof that starts from the assumptions and reaches the conclusion step by step. Introduced in: Lesson 9
- directional derivative
- The slope of in the direction of a unit vector . Introduced in: Lesson 7
- domain
- The set of allowed inputs of a function . Introduced in: Lesson 2
- dot product
- The number for two vectors of the same length. Books also write or . Introduced in: Lesson 2
- dtype
- The type of the entries of an array, for example
float64orint64. An integer array stays integer when you store a decimal in it. Introduced in: Lesson 3 - dummy variable
- An index whose name does not matter. and are the same number. Introduced in: Lesson 2
- ease
- The growth factor of the review interval of a card in SM-2. It starts at 2.5, goes down after Hard or Again (minimum 1.3) and up after Easy. Introduced in: Lesson 1
- elementwise product
- The product of two arrays of the same shape entry by entry,
A * Bin NumPy, . Introduced in: Lesson 3 - embedding
- A vector that represents an object such as a word, sentence or image, with hundreds or thousands of entries. Similar objects get vectors with a high cosine similarity. Introduced in: Lesson 6
- empty sum
- A sum with no terms, such as . Its value is 0 (and the value of an empty product is 1). Introduced in: Lesson 2
- Euclidean distance
- The distance between two points , the length of the difference vector. Introduced in: Lesson 6
- Euler's number
- The constant , the base of the natural exponential and of the natural logarithm. Introduced in: Lesson 4
- event
- A set of outcomes, a subset of the sample space, for example "the die shows an even number". Introduced in: Lesson 8
- expectation
- The probability-weighted mean of a random variable, for a discrete . Introduced in: Lesson 2
- exponential function
- The function (or with base ). It is always positive and grows by the same factor for each unit step in . Introduced in: Lesson 4
- feature
- One measured property of the samples, for example the area of a house. In a data table it is one column; feature of sample is . Introduced in: Lesson 2
- forgetting curve
- The curve of the chance of recall over time. It drops fast just after learning, then more slowly; each review makes the next drop slower. Introduced in: Lesson 1
- function
- A rule that gives each input exactly one output . Introduced in: Lesson 2
- gradient
- The vector of partial derivatives . It points in the direction of steepest ascent. Introduced in: Lesson 7
- gradient descent
- The method that repeats to find a minimum of . On it converges for . Introduced in: Lesson 7
- histogram
- A bar plot of data grouped into bins. With density heights for bin width , the total area of the bars is 1. Introduced in: Lesson 8
- illusion of fluency
- The feeling that a text is known because it reads easily. Re-reading trains recognition and gives this feeling, but not recall. Introduced in: Lesson 1
- inclusion–exclusion
- The rule for finite sets. The elements of are counted twice in . Introduced in: Lesson 2
- independent events
- Events and with . Knowing that one happened does not change the chance of the other. Introduced in: Lesson 8
- index
- The variable that counts the terms of a sum, product or list, as in or in . Introduced in: Lesson 2
- induction hypothesis
- The assumption used inside the induction step. It is not circular, because the step only proves the implication . Introduced in: Lesson 9
- induction step
- The part of a proof by induction that shows for every . Introduced in: Lesson 9
- intercept
- The value in , the height of the line at . Introduced in: Lesson 4
- interleaving
- Mixing different types of problems in one practice session, instead of doing all problems of one type in a block. Introduced in: Lesson 1
- intersection
- The set of the elements that are in both and . Introduced in: Lesson 2
- interval (review)
- The number of days until the next review of a card. On this site, a card rated Good every time comes back after 1, 3, 8, 20, 50 days. Introduced in: Lesson 1
- inverse function
- The function that undoes , so . It exists when each output comes from exactly one input. Introduced in: Lesson 2
- law of large numbers
- As the number of independent samples grows, their average gets close to the mean . Introduced in: Lesson 8
- learning rate
- The step size in gradient descent. Too small is slow; too large makes the iterates zig-zag or diverge. Introduced in: Lesson 7
- lemma
- A smaller result that is proved to help prove a theorem. Introduced in: Lesson 9
- linear combination
- A sum of scaled vectors, such as . Introduced in: Lesson 6
- local linear approximation
- The estimate by the tangent line. For smooth the error shrinks like . Introduced in: Lesson 7
- log rules
- , and , for . Introduced in: Lesson 4
- log-likelihood
- The log of the likelihood. For independent data points it is , a sum instead of a product. Training minimizes the negative log-likelihood. Introduced in: Lesson 4
- log-log plot
- A plot with log scales on both axes. A power law is a straight line on it with slope . Introduced in: Lesson 4
- log-softmax
- The log of the softmax, . Computed this way it is stable for large scores. Introduced in: Lesson 5
- log-sum-exp
- The function , a smooth maximum with . Introduced in: Lesson 5
- logarithm
- The inverse of the exponential. is the number with , defined for . In ML means the natural log (school books write ). Introduced in: Lesson 4
- logit
- The log of the odds, . It is the inverse of the sigmoid. Introduced in: Lesson 5
- logits
- The raw real-valued scores that a classifier computes for its classes, before softmax or sigmoid turns them into probabilities. Introduced in: Lesson 5
- matrix
- A table of numbers with rows and columns. is the entry in row and column (rows first). Introduced in: Lesson 2
- matrix product
- The product with ,
A @ Bin NumPy. The inner sizes must agree. Introduced in: Lesson 3 - max trick
- Subtracting from all scores before exponentiating. By shift invariance it does not change softmax, and it prevents overflow in
np.exp. Introduced in: Lesson 5 - mean
- The average of data. It is the balance point of the data. Introduced in: Lesson 8
- mean squared error
- The loss , the average of the squared errors of a model over samples. Introduced in: Lesson 2
- median
- The middle value of sorted data (the average of the two middle values if is even). It is robust to outliers. Introduced in: Lesson 8
- multi-label classification
- A task in which one input can belong to several classes at once. It uses one sigmoid per class instead of one softmax over all classes. Introduced in: Lesson 5
- norm
- The Euclidean length of a vector. Introduced in: Lesson 6
- normal distribution
- The bell-shaped distribution with density . About 68 %, 95 % and 99.7 % of it lie within 1, 2 and 3 standard deviations of . Introduced in: Lesson 8
- NumPy array
- A grid of numbers of one type (dtype) with a shape, the main data structure of NumPy. Operations on arrays run in fast compiled code. Introduced in: Lesson 3
- odds
- The ratio for a probability . For example, gives odds 4. Introduced in: Lesson 5
- orthogonal
- Two vectors are orthogonal (perpendicular) when . Then . Introduced in: Lesson 6
- partial derivative
- The derivative of a function of several inputs with respect to , with the other inputs held fixed. Introduced in: Lesson 7
- polynomial
- A sum of powers with coefficients, . The highest power with is its degree. Introduced in: Lesson 4
- power law
- A relation . Scaling laws of neural networks (loss against model size or data) are approximate power laws. Introduced in: Lesson 4
- pretesting
- Trying to answer a question before you study the topic. Even a wrong guess helps you remember the right answer later. Introduced in: Lesson 1
- probability
- A number between 0 and 1 for each event , with and for disjoint events. It is the long-run relative frequency. Introduced in: Lesson 8
- probability density
- A function with total area 1 under its curve. The probability of an interval is the area under over that interval. Introduced in: Lesson 8
- projection
- The "shadow" of on the line of , the vector . Its signed length is the scalar projection. Introduced in: Lesson 6
- proof
- A chain of steps from the assumptions to the conclusion, where each step follows from a definition, an earlier result or a rule of logic. Introduced in: Lesson 9
- proof by contradiction
- A proof that assumes the claim is false and derives something impossible, so the claim must be true. The classic example is the proof that is irrational. Introduced in: Lesson 9
- proof by induction
- A proof of for all with two parts, the base case and the induction step "if then ". Introduced in: Lesson 9
- pseudo-random numbers
- Numbers made by a deterministic algorithm that look random. The same seed gives the same sequence. Introduced in: Lesson 3
- random variable
- A number that depends on the outcome of an experiment, such as the face of a die. It is discrete (countable values) or continuous (with a density). Introduced in: Lesson 8
- range (image)
- The set of the outputs that really occur. It is a subset of the codomain. Introduced in: Lesson 2
- recall card
- A card with a question on the front and a short answer on the back. You try to recall the answer, then rate how well you did. Introduced in: Lesson 1
- reduction
- An operation that turns many numbers into fewer, such as
sum,meanormax. Withaxis=kit combines the entries along axis and removes that axis. Introduced in: Lesson 3 - relative frequency
- The fraction of trials in which an event happened, for example the number of heads divided by the number of flips. Introduced in: Lesson 8
- retention
- The chance that you can recall a fact at a given time. In the simple model of the lesson, . Introduced in: Lesson 1
- retrieval practice
- Practice by recall. You answer a question from memory before you see the answer. Introduced in: Lesson 1
- robust
- A statistic is robust when a few extreme values (outliers) change it little. The median is robust; the mean and the variance are not. Introduced in: Lesson 8
- round-off error
- The error from storing numbers with finite precision. In a numerical derivative it grows when is very small, so must not be tiny. Introduced in: Lesson 7
- sample
- One example of a data set, for example one house. In a data table it is one row; sample is written , which is a label, not a power. Introduced in: Lesson 2
- sample space
- The set of all possible outcomes of an experiment, for example for a die. Introduced in: Lesson 8
- sample variance
- The variance with division by , . It is unbiased, , for independent samples. Introduced in: Lesson 8
- saturation
- The flat parts of the sigmoid for large , where its derivative is close to 0. It is one cause of vanishing gradients. Introduced in: Lesson 5
- scalar
- A single number, as opposed to a vector. Scalar multiplication multiplies every entry of by . Introduced in: Lesson 6
- seed
- The starting value of a pseudo-random generator, as in
np.random.default_rng(0). Fixing it makes results reproducible. Introduced in: Lesson 3 - semilog plot
- A plot with a log scale on one axis. Exponential growth is a straight line on it when the -axis is logarithmic. Introduced in: Lesson 4
- set
- A collection of distinct objects, its elements. Order and repetition do not matter, so . Introduced in: Lesson 2
- set-builder notation
- A way to describe a set by a rule, for example , "the set of real such that ". Introduced in: Lesson 2
- shape
- The tuple of the sizes of an array along each axis. A matrix in is an array with shape
(m, n). Introduced in: Lesson 3 - shift invariance (softmax)
- The fact for every number . Only differences of scores matter. Introduced in: Lesson 5
- sigmoid
- The logistic function . It maps any real number into , with and . Introduced in: Lesson 5
- slice
- An index
start:stop:stepthat picks several entries along an axis. The stop is excluded, and a slice keeps the axis (an integer index removes it). Introduced in: Lesson 3 - slope
- The change in per unit change in along a line, . In it is . Introduced in: Lesson 4
- SM-2
- A classic spaced-repetition algorithm. It stores an interval and an ease for each card and multiplies the interval by the ease after each successful review. Introduced in: Lesson 1
- softmax
- The map . It turns a vector of scores into positive probabilities that add up to 1. Introduced in: Lesson 5
- softplus
- The function , a smooth version of the ReLU . It is the log-sum-exp of . Introduced in: Lesson 5
- spacing effect
- The finding that the same study time spread over several sessions, with gaps between them, gives better long-term memory than one long session. Introduced in: Lesson 1
- stability
- The number (in days) in the model . A larger means slower forgetting; after days, . Introduced in: Lesson 1
- standard deviation
- The square root of the variance, a measure of spread in the unit of the data.
np.stddivides by , pandas.std()by . Introduced in: Lesson 8 - strictly increasing
- A function with whenever . Applying it does not move the argmax, which is why ML can maximize instead of . Introduced in: Lesson 4
- subset
- means that every element of is also an element of . Introduced in: Lesson 2
- temperature
- A number in . Small makes the distribution sharper (towards argmax); large makes it flatter (towards uniform). Introduced in: Lesson 5
- testing effect
- The finding that recalling information from memory gives better long-term memory than reading it again. Introduced in: Lesson 1
- theorem
- An important true claim of the form "if these assumptions hold, then this conclusion holds", together with a proof. Introduced in: Lesson 9
- transpose
- The operation that turns a column into a row (and a row into a column). For a matrix, . Introduced in: Lesson 2
- underflow
- A result too small for the number format, which the computer stores as 0.0. For example, is 0.0 in float64. Introduced in: Lesson 4
- union
- The set of the elements that are in or in (or in both). Introduced in: Lesson 2
- unit vector
- A vector with norm 1. For , is the unit vector in the direction of (normalizing). Introduced in: Lesson 6
- variance
- The mean squared deviation from the mean, . Its unit is the data unit squared. Introduced in: Lesson 8
- vector
- A list of numbers , an element of . In this site's math, vectors are columns. Introduced in: Lesson 2
- vectorization
- Writing a computation as whole-array operations instead of Python loops. The code is shorter, closer to the math, and much faster. Introduced in: Lesson 3
- view
- An array that shares memory with another array, as a slice does. Changing a view changes the original array. Introduced in: Lesson 3
- z-score
- The value , the number of standard deviations between and the mean. For normal it is standard normal, . Introduced in: Lesson 8
- Σ-notation
- A short way to write a sum. means ; the index runs from the lower bound to the upper bound. Introduced in: Lesson 2