Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
  • Data handling0/7
  • Matrices0/5
  • Derivatives0/5
  • Probability0/6
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
AAAMaths, module 11: Matrices, lesson 3 of 5

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.

9 minute readOne thing to try6 questionsFree

Read the whole lesson free

Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.

Create a free accountLog in

What this lesson covers

  • A layer computes Wx+bW\mathbf{x} + \mathbf{b}Wx+b. Each row of WWW 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.

More in Matrices

  1. 1Matrices move space
  2. 2Matrix multiplication
  3. 3Layers and non-linearity
  4. 4Transpose, identity and inverse
  5. 5Tensors and shapes