Calculus and gradients
Understand partial derivatives, chain rule and gradient geometry.
Differentiate a loss function before reasoning about parameter updates.
Interview questions
Choose a question to reveal its answer.
01EasyCoreVisualWhat does a derivative measure?
Answer
What does a derivative measure?
Instantaneous rate of change of a scalar function with respect to its input.
Find the slope of x squared at x equals three.
02EasyCoreHow do partial derivatives work?
Answer
How do partial derivatives work?
Derivative with respect to one variable holding other independent variables fixed.
Differentiate a loss with respect to one weight.
03EasyCoreHow is the chain rule used in neural network training?
Answer
How is the chain rule used in neural network training?
Derivative of a composition is a product of local derivatives in scalar form.
Differentiate sigmoid applied to a linear score.
04MediumHigh priorityWhat is a Jacobian matrix?
Answer
What is a Jacobian matrix?
Matrix of first-order partial derivatives of vector-valued outputs.
Represent how each output activation changes with each input.
05MediumHigh priorityWhat information does a Hessian provide?
Answer
What information does a Hessian provide?
Matrix of second-order partial derivatives of a scalar function.
Inspect local curvature of an optimization objective.
06MediumWhat is a stationary point of a loss function?
Answer
What is a stationary point of a loss function?
Point where the gradient is zero for a differentiable function.
Find candidate extrema by solving the first-order condition.
07MediumWhy is convexity useful in optimization?
Answer
Why is convexity useful in optimization?
Function whose value on a line segment is at most the corresponding weighted endpoint values.
Reason that a local minimizer of a convex objective is global.
08MediumWhat is a saddle point?
Answer
What is a saddle point?
Stationary point that is neither a local minimum nor a local maximum.
Analyze the origin for x squared minus y squared.
09HardHow do you compute a directional derivative?
Answer
How do you compute a directional derivative?
Rate of change along a specified unit direction, given by the gradient dot direction when differentiable.
Measure how loss changes when a weight vector moves along a direction.
10HardHow can finite differences check gradients?
Answer
How can finite differences check gradients?
Approximates derivatives using changes in function values at nearby inputs.
Numerically check an analytical gradient using small perturbations.
def f(x): return x*x
x, h = 3.0, 1e-5
print((f(x+h)-f(x-h))/(2*h))Central finite differences approximate the derivative 2x.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.