ReLU
Rectified Linear Unit \(\max(0,x)\)The activation function \(\max(0,x)\); it is continuous and its derivative is 0 or 1.
Example: ReLU(−2) = 0
211 terms in Arabic and English: definition, mathematical symbol, example and a link to the related lesson.
211 terms
The activation function \(\max(0,x)\); it is continuous and its derivative is 0 or 1.
Example: ReLU(−2) = 0
A function that turns a vector of logits into a probability distribution by exponentiating and normalizing.
The sum of the main-diagonal elements; it equals the sum of the eigenvalues.
Example: tr [[2,1],[1,2]] = 4
The difference between 1 and the smallest representable number greater than 1.
Example: 2⁻²³ in float32
The limit of a function at a point equals its value there.
Example: ReLU is continuous
A number between 0 and 1 measuring how likely an event is to occur.
Example: P(even) = 0.5
The probability of an event once we know another event has occurred.
The probability of a hypothesis after seeing the data.
The probability of a hypothesis before seeing the data.
Two events whose intersection probability is the product of their probabilities.
The expected difference in outcome between treatment and no treatment.
Fitting the training data, noise included, at the cost of poor generalization.
Example: Degree 9 on 20 points
The probability of the observed data as a function of the model parameters.
A normalized covariance between −1 and 1.
Sliding the kernel over the signal without flipping it, which is what Conv layers compute.
A random choice among pure strategies with given probabilities.
A strategy better than the others whatever the other players do.
Example: Defecting in the prisoner's dilemma
A property of a dynamical system whose state returns to equilibrium after a disturbance and does not blow up.
An algorithm's ability not to amplify rounding errors.
Example: Softmax after subtracting the maximum
Two variables being independent given a third.
Contracting a sliding window of the input with a filter kernel.
Example: 3×3 filters
A weighted average of the values, with weights from the similarity of queries and keys.
The average information content of a distribution; it measures uncertainty.
The average surprise of distribution q on data from p; the standard classification loss.
Computing a network's outputs from its inputs layer by layer.
An algorithm that computes a network's gradients by applying the chain rule from the output to the input.
Example: Training neural networks
Updating the parameters against the gradient, iteratively.
Gradient descent using the gradient of a random mini-batch.
The square root of the variance.
The rate of change of the tangent direction with respect to arc length.
Example: κ = 1/R for a circle
A function that shrinks distances by a factor less than 1.
Aligning two tensors of different shapes by stretching axes of length 1.
Example: (2,3)+(3,)
The average squared deviation from the mean.
An ordered selection of elements from a set.
Example: P(10, 3) = 720
Estimating performance by splitting the data into folds and training and evaluating in turn.
Example: 5-fold
Comparing the analytical gradient with a finite-difference approximation.
A function between two vector spaces that preserves addition and scalar multiplication; it is represented by a matrix.
Example: Rotation and scaling
The difference between the model's average prediction across samples and the true value.
The continuous limit of gradient descent.
A vector carrying a token's position in the sequence.
Example: Transformers
A model's performance on new data from the same distribution.
A measure of how two variables change together.
Using the actual measurement of the output to correct the control signal.
A model simpler than the pattern, so its error is high on both training and test data.
Example: A straight line for sinusoidal data
A measure of the overlap of two boxes or masks: the area of the intersection over the area of the union.
Example: IoU ≥ 0.5 is usually counted as a correct detection
The intersection is what the sets share, and the union is what belongs to at least one of the two sets.
Adding a term to the objective, or constraints on the model, to limit overfitting.
Example: L2: λ‖w‖²
Summing over some variables to get the distribution of the rest.
Transforming a feature to have mean 0 and standard deviation 1.
A symmetric bell-shaped continuous distribution whose parameters are the mean and the variance.
A distribution that does not change after one step of the chain.
An unordered selection of elements from a set.
Example: C(10, 3) = 120
An operation that gives a number from two vectors or two functions and defines length and angle.
The sum of the products of the corresponding components of two vectors; the result is a scalar.
Example: (1,2)·(3,4) = 11
The coordinates of the point on the unit circle at angle θ.
A locally shortest path between two points on a manifold.
A lower bound on the log-likelihood that is maximized in variational inference.
Example: VAE loss
A continuous process with independent Gaussian increments.
Adding values around the input to control the length of the convolution output.
Example: Padding 1 with a kernel of 3 keeps the size
The error remaining after the transient dies out.
How far the kernel moves between two successive positions in a convolution.
Example: A stride of 2 roughly halves the size
The function eˣ, whose derivative equals itself.
Training with low-precision types such as float16 while keeping a float32 copy of the weights.
Example: bfloat16
A set of nodes and the edges that connect them.
A moving average of the gradients that damps oscillation.
Example: β = 0.9
A directed acyclic graph that factors the joint distribution.
A generator and a discriminator trained in a min-max game.
A distortion caused by sampling at less than twice the highest frequency.
An activation function with range (−1,1), centred on zero.
Example: tanh(0) = 0
A result smaller than the smallest representable positive value, which is rounded to zero.
Representing real numbers with a sign, a fraction and an exponent according to the IEEE 754 standard.
Example: float32
The set of real numbers between two bounds, open or closed at each end.
Example: (2, 3)
Approximating a derivative from function values at nearby points.
The possible directions of motion on a manifold at a point.
A result exceeding the largest representable value, which becomes inf.
Example: e⁸⁹ in float32
The stretch factor λ in the equation Av = λv.
Example: Values of [[2,1],[1,2]]: 3 and 1
A value unusually far from the rest of the data.
Example: The 1.5 × IQR rule
The probability-weighted average.
Example: 3.5 for a die roll
The distance between a number and zero; it is non-negative.
Example: |−3| = 3
An order relation between two expressions whose solution is a set of values.
Example: x ≤ −2
A function on the natural numbers that gives a term for each position.
Example: 1/n
A non-zero vector whose direction does not change when multiplied by the matrix.
Example: (1,1) for [[2,1],[1,2]]
The sum of an infinite sequence of terms, defined as the limit of the partial sums.
Example: Σ1/n² = π²/6
A series whose terms have a constant ratio.
A space that looks locally like Euclidean space.
Example: The surface of a sphere
An unobserved variable that explains the data.
A variable that affects both the cause and the effect.
The sum of the values divided by their count.
A collection of distinct elements whose order does not matter.
A number measuring the factor by which a linear map changes oriented volume; zero means the matrix cannot be inverted.
Example: det [[a,b],[c,d]] = ad − bc
The average loss over the training sample.
The average loss over the true data distribution.
A directed acyclic graph representing causal relationships.
The difference between the third quartile and the first quartile.
A sum of independent random steps.
A square matrix with ones on the diagonal and zeros elsewhere.
Example: AI = A
The product of the positive integers up to n; it is the number of arrangements of n elements.
Example: 5! = 120
A second-degree equation ax² + bx + c = 0 where a ≠ 0.
Example: x² − 5x + 6 = 0
An equation relating a function of one variable to its derivatives.
A model that defines the derivative of the state with a neural network.
The reduction in uncertainty about one variable when another is known.
The quantity b² − 4ac, which determines the number of real roots of a quadratic equation.
Example: Δ = −16 → no real roots
Linear state feedback that minimizes a quadratic cost of state and effort.
The most frequent value in the data.
The ratio of the change in y to the change in x along a line.
Example: y = 2x + 1 has slope 2
Minimizing the largest possible loss; with mixing it equals maximin in zero-sum games.
A value satisfying g(x) = x.
Example: cos → 0.739
A similarity function that corresponds to an inner product in a feature space.
The middle value of the sorted data.
Summing over a shared index and removing it from the result.
A classifier that applies Bayes' theorem assuming the features are independent given the class.
Example: Spam filtering
The unit of information for a base-2 logarithm.
A non-symmetric measure of the difference between two distributions.
Searching for the parameter values that minimize or maximize the objective function.
Factoring any matrix as UΣVᵀ.
Example: Image compression
An algorithm for computing the DFT at a cost of N log N.
Representing a discrete signal by its frequency components.
The vector of partial derivatives; it points in the direction of steepest ascent.
Example: ∇(x²+y²) = (2x,2y)
An algorithm that ranks nodes by the link structure; it is the stationary distribution of a Markov chain.
Example: d = 0.85
Applying one function to the output of another.
Example: A deep network
A notation for writing contractions with indices.
Example: ij,jk->ik
The cosine of the angle between two vectors; it measures how well their directions agree, between -1 and 1.
Example: Comparing text embeddings
Choosing the parameters that maximize the probability of the data.
Choosing the model that minimizes the average training loss within a hypothesis class.
The limit of Riemann sums, and the signed area under the curve.
Example: ∫₀³ x² dx = 9
The gradient shrinking in the early layers because small local derivatives are multiplied across many layers.
Example: Deep Sigmoid networks
A state in which no player gains by changing strategy alone.
The distribution of a binary variable equal to 1 with probability p.
Example: A coin toss
The number of successes in n independent trials.
The product of two vectors giving a rank-1 matrix.
A block matrix made of copies of one matrix multiplied by the elements of another.
The smallest value of a function over its whole domain.
A point whose value is smaller than its neighbourhood.
One full pass over the training data.
Computing the logarithm of a sum of exponentials by subtracting the maximum to avoid overflow.
Working in a feature space through the kernel without computing the features.
A weighted sum of normal distributions.
Alternates between computing responsibilities and re-estimating the parameters.
A circle of radius 1 centred at the origin.
A rule that maps each input to exactly one output.
An S-shaped function with range (0,1).
Example: σ(0) = 0.5
A function whose derivative equals the given function.
Example: x³/3 is an antiderivative of x²
A non-linear function applied to a neuron's output.
Example: ReLU
The probability that the variable does not exceed a given value.
A function that measures the prediction error for a single sample.
Example: MSE
The probability of each value of a discrete variable.
A non-negative function that integrates to 1, for a continuous variable.
The function to be minimized or maximized.
A function whose chord between any two points of its graph lies above the graph.
Example: x²
A small set of samples on which the gradient is computed at each step.
Example: 128 samples
The unit of angle given by arc length on the unit circle.
Example: 180° = π
The number of axes of a tensor.
Example: A batch of images has rank 4
Shorthand for adding successive terms defined by an index.
Example: Σᵢ xᵢ
A family of numerical solvers that combine several slopes within the step.
A random process whose future depends only on its present.
A network that learns node representations by aggregating neighbours' messages through the adjacency matrix.
The list of the lengths of a tensor's axes.
Example: (2,3,4)
An operation in which each element comes from the dot product of a row and a column.
Example: (2×3)(3×4) → 2×4
A numerical solver that advances by a step along the tangent.
The length of a curve; it equals the integral of the speed.
A function that measures the size of a vector, such as the Euclidean L2 norm and the L1 norm.
Example: ‖(3,4)‖ = 5
The symbol for an external intervention on a variable.
The ratio of the largest singular value to the smallest; it measures how sensitive the solution of a linear system is to errors.
Example: An ill-conditioned matrix
A single real number with no direction.
Example: Learning rate 0.01
The hypothesis that natural data concentrate near low-dimensional manifolds.
A vector space whose elements are functions.
Example: L²
The set of all possible outcomes of a random experiment.
Example: {1,…,6} for a die
A complete inner product space.
Example: L²
A function space generated by a kernel that satisfies the reproducing property.
The derivative of a composite function is the product of the local derivatives.
Example: The basis of backpropagation
The reduction in entropy after a split in a decision tree.
The inverse of the exponential function.
Example: log₂ 8 = 3
The sum of the logarithms of the probabilities of the data under the model.
The mean of many independent variables approaches the normal distribution.
A formula for computing the posterior from the likelihood and the prior.
Example: Message filtering
An ordered list of real numbers representing a point or a direction in space.
Example: (3, 4)
A controller combining the proportional, integral and derivative terms of the error.
Describes two vectors whose dot product is zero, or a matrix whose columns are orthonormal.
Example: (1,0) and (0,1)
A symbol representing an unknown or changing quantity.
Example: x in ŷ = wx + b
A function from the sample space to the real numbers.
The average of the squared differences between the true and predicted values.
The set of inputs a function allows.
Example: The domain of √x is x ≥ 0
Minus the logarithm of the probability of an event.
Example: A coin toss = 1 bit
An adaptive optimizer combining momentum and an average of squared gradients, with bias correction.
The number of linearly independent columns (or rows); it equals the number of non-zero singular values.
Example: The rank of [[1,2],[2,4]] is 1
The instantaneous rate of change of a function and the slope of the tangent.
Example: (x²)′ = 2x
A derivative with respect to one variable with the others held fixed.
Example: ∂(xy)/∂x = y
A rectangular array of numbers in rows and columns.
Example: Weight matrix
The matrix of transition probabilities between states.
A matrix representing which edges exist between nodes.
The matrix of first partial derivatives of a vector function.
The matrix of kernel values between all pairs of points.
A square matrix equal to its transpose.
Example: Covariance matrix
The matrix of second partial derivatives; it describes curvature.
An equation whose variables are of the first degree.
Example: 2x + 3 = 11
The equation satisfied by the value-function coefficient in LQR; it is solved by iteration.
A quantity in the model learned from data, such as the weights and biases.
Example: w and b
A parameter chosen before training and not learned by gradient descent.
Example: Batch size
The size of the update step in gradient descent.
Example: 0.001
The matrix whose product with the original gives the identity matrix.
Example: AA⁻¹ = I
Sections
No section has this name. Press “Search” to search all site content.
Favourites
My results & certificates
My academy progressMy quiz resultsKids’ progressAcademy certificatesQuiz certificatesStart any lesson or quiz and it will show up here so you can get back to it quickly.
Settings
I am the math assistant. Ask me about a lesson, a concept or an equation, or ask for exercises, a learning path or a comparison between two concepts, and I will answer from the school's content with its links.
It answers from the school's content only, without any external language model, and does not invent equations or references.
The assistant can make mistakes, so check the attached sources.