What is activation function?
A simple curved function applied after each layer, such as ReLU or GELU. Without it, any stack of layers would collapse into a single matrix.
Where it is taught
Layers and non-linearity. One layer of a network is a matrix multiplication plus a shift. Stack layers with a bend in between and the network can shape space in ways no single matrix can.
What the lesson leaves you with
- A layer computes . Each row of is a neuron.
- Stacked linear layers collapse into one. Depth alone adds nothing.
- An activation function between layers, such as ReLU, is what gives depth its power.
Questions
- What is activation function?
- A simple curved function applied after each layer, such as ReLU or GELU. Without it, any stack of layers would collapse into a single matrix.
- Where is activation function used in AI?
- One layer of a network is a matrix multiplication plus a shift. Stack layers with a bend in between and the network can shape space in ways no single matrix can.
- What is the key idea to remember about activation function?
- A layer computes <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>W</mi><mi mathvariant="bold">x</mi><mo>+</mo><mi mathvariant="bold">b</mi></mrow><annotation encoding="application/x-tex">Wmathbf{x} + mathbf{b}</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:0.7667em;vertical-align:-0.0833em;"></span><span class="mord mathnormal" style="margin-right:0.1389em;">W</span><span class="mord mathbf">x</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">+</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="katex-base"><span class="katex-strut" style="height:0.6944em;"></span><span class="mord mathbf">b</span></span></span></span>. Each row of <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>W</mi></mrow><annotation encoding="application/x-tex">W</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:0.6833em;"></span><span class="mord mathnormal" style="margin-right:0.1389em;">W</span></span></span></span> is a neuron.
- Where can I learn activation function step by step?
- In the lesson “Layers and non-linearity” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.