internalsGet Pro

Module 09 · Lesson 2 of 11Pro

Activation functions: adding non-linearity

Level
Beginner
Topic
Neural networks
Reading time
13 min

When you finish this page you can

  1. Compute the output and the slope of sigmoid, tanh, ReLU, leaky ReLU and GELU for a given score.
  2. Explain why a neuron’s slope decides whether its weights can learn, and how a ReLU neuron dies.
  3. Choose an activation for a hidden layer and for the output layer, and say what would change the choice.

Builds on 3 lessons

Start with lesson 113 min
  1. Neurons and layers: the building blocks13 min
  2. The chain rule: derivatives through layers14 min
  3. Common losses: squared error to cross-entropy14 min

Four neurons that stopped learning

is our example online store. Farah, an ML engineer, is building a small network that predicts which customers will , so Joseph’s growth team can send them a ₹100 voucher. It is the 12 → 16 → 1 network from Neurons and layers: 12 features in, 16 hidden neurons with ReLU, one score out.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan