Multi-Layer Networks and Forward Pass

One neuron draws a line. Stack them, and you can draw anything.

Build 1.5 hr Python

Prerequisites: Phase 01 (Math Foundations), Lesson 03.01 (The Perceptron)

#Learning Objectives

  • Build a multi-layer network from scratch with Layer and Network classes that perform a complete forward pass
  • Trace matrix dimensions through each layer of a network and identify shape mismatches
  • Explain how stacking nonlinear activations enables a network to learn curved decision boundaries
  • Solve the XOR problem using a 2-2-1 architecture with hand-tuned sigmoid weights
Full Access lesson

Keep going. The rest of this lesson is one step away.

Unlock all 503 lessons, video, code, quizzes and every future update. Pay in your own currency with Paystack.

The text and code of this lesson are based on AI Engineering from Scratch by Rohit Ghumare, MIT licensed.