Module 10 · Lesson 2 of 647/56 in the course~20 min
Module lessons (2/6)
Layers and activations
Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 10 — Neural networks and deep learning
Why depth needs non-linearities: ReLU, Sigmoid, and Softmax.
What you'll learn in this lesson
- Explain why multi-layer networks require non-linear activation functions.
- Implement and compare ReLU, Sigmoid, and Softmax activation functions.
- Understand how hidden layers transform input representations.
Overview
Suppose you connect two linear layers together. Layer 1 computes h = W_1 x, and Layer 2 computes y = W_2 h.
Substitute the first equation into the second:
Sections covered in this lesson
- 1The illusion of depth without non-linearity
- 2Comparing core activation functions
- 3The core activation functions
- 4Practice
- 5Check your understanding
Pro Lesson · Module 10 — Neural networks and deep learning
Unlock "Layers and activations" and the full Machine Learning: from first principles to practice curriculum
Why depth needs non-linearities: ReLU, Sigmoid, and Softmax.
Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.