Neuron
A tiny decision-maker. It adds up its inputs and decides how loudly to fire.
y = activation(Σ wᵢxᵢ + b)
Every term in plain kid-friendly language, with the real math version underneath.
A tiny decision-maker. It adds up its inputs and decides how loudly to fire.
y = activation(Σ wᵢxᵢ + b)
A row of neurons that all look at the same signal together.
h⁽ˡ⁾ = activation(W⁽ˡ⁾h⁽ˡ⁻¹⁾ + b⁽ˡ⁾)
A volume knob that says how much one input matters.
wᵢ — the multiplier applied to input xᵢ before summing
A head start added to a neuron so it can fire even when its inputs are quiet.
sum = Σ wᵢxᵢ + b; b shifts the threshold
The rule that turns a neuron's total into its final 'boom'.
e.g. ReLU: max(0, x), sigmoid: 1/(1+e⁻ˣ), tanh: (eˣ−e⁻ˣ)/(eˣ+e⁻ˣ)
A stretch knob. Higher gain makes the activation react more steeply.
y = activation(gain · x) — gain scales the input before the curve
How big a step the network takes when it fixes a mistake.
w ← w − α · ∂Loss/∂w, where α is the learning rate
A score for how wrong the network's answer was — smaller is better.
Loss = (guess − correct)², averaged over examples
A label we want the network to pick, like 'cat' or 'dog'.
y ∈ {A, B} — the category the output is matched against
The dividing line where the network switches from saying 'this one' to 'that one'.
the set of points where Σ wᵢxᵢ + b = 0
Learning with an answer key: every example comes with the correct label.
minimize Σ L(f(x), y) over labelled pairs (x, y)
Learning with no answer key — the network hunts for patterns and groups in the data.
find structure in {x}; e.g. cluster centroids that minimize within-cluster distance
Learning by trial, error and reward: good moves get points, bad moves lose them.
maximize E[Σ γᵗ rₜ] by acting in an environment
Breed a population of networks: mutate them and let the best-scoring ones survive.
evolve weights by selection + mutation; no gradient required
One full pass through all the practice examples.
one sweep over the training set: for each batch, w ← w − α∇Loss
A slope that says which way is downhill and how steep it is.
∇Loss — the vector of partial derivatives ∂Loss/∂wᵢ
The network's blame game: errors flow backward so every weight learns its share.
reverse-mode differentiation of Loss via the chain rule
To find how a change travels through a chain, multiply the little effects along the way.
dL/dw = dL/dy · dy/dz · dz/dw
Trying something new instead of always taking the move you think is best.
with probability ε pick a random action (ε-greedy)
A small random tweak to a child network so it differs from its parent.
w′ = w + N(0, σ), where σ is set by the mutation rate
A whole group of candidate networks that compete and breed each generation.
P = {θ₁, …, θₙ}, evolved by selection
The learner that takes actions in a world to earn rewards.
policy π(a|s) mapping states to actions
A number the agent gets for doing something: positive for good, negative for bad.
rₜ — scalar feedback used to score actions
The data labels itself: hide part of it and learn to predict the missing bit.
maximize P(next token | previous tokens)