LESSON 5.04 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Sigmoid and tanh
Watch a gradient shrink as it flows back through sigmoid and tanh layers.
Needs5.03 Backpropagation
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 5.04 · ACTIVATION BAYSIGMOID · F(Z) FROM 0 TO 1
01
Stage 1 of 6 · The curves
The sigmoid maps any z to between 0 and 1. tanh maps z to between −1 and 1.
Explain it simply
The S-shaped line shows what one neuron does to its input z. The sigmoid squeezes every number to between 0 and 1. A big z gives almost 1, and a big negative z gives almost 0. The dashed line is tanh, so you can compare.
The sigmoid curve rises from 0 to 1. Tanh is dashed.
z, inputweightsf(z)slope, gradient
Toy: x = 1 through 3, 6 or 9 one-neuron layers; seeded random weights
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The sigmoid squashes z; tanh is a stretched, shifted sigmoid.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.