Getting Matrix Dimensions Right (C1W4L03)

25 Aug 2017 · 11 min
11:09

Learn how to track matrix dimensions in neural networks. For a layer l, W has shape (nl, n_l-1), b is (nl, 1), and Z and A are (nl, m) where m is the number of examples. dW and db match their corresponding weight shapes.

Questions this video answers

5 ("capital L is equal to five.")

n0 = n_x = 2; n1 = 3; n2 = 5; n3 = 4; n4 = 2; n5 = 1.

n_l by n_{l-1} ("the dimensions of wl must be nl by nl minus 1.")

n_l by 1 ("blue should be NL by one dimensional.")

Z^{[l]} and A^{[l]} are n_l by m; X (A^{[0]}) is n_0 by m; b^{[l]} is n_l by 1 and is broadcasted to n_l by m.

Chapters

More from LARRUZ

8:49
youtube.com

OpenAI’s New AI Is Doing Things We Barely Understand

2d ago
5:38
youtube.com

DeepSeek Solved AI’s Memory Problem

4d ago
33:17
youtube.com

DeepMind's New AI Just Cracked The Code Of Life

1w ago
3:43
youtube.com

The Billion Dollar AI Advantage Is Disappearing

1w ago
5:14
youtube.com

Claude Opus 5.5 AI: An Incredible Leap Forward

3w ago
5:16
youtube.com

Yes, Jev Is Insane, But There's A Catch

3w ago
5:11
youtube.com

DeepSeek’s Insane New Architecture

3w ago
4:16
youtube.com

Claude Is Now Leaving Invisible Fingerprints In Its Text

1mo ago
9:18
youtube.com

I Never Thought I’d See This Happen

1mo ago
5:22
youtube.com

GPT-6 Astra Changes Everything

1mo ago
4:55
youtube.com

Claude Fable AI Is Much Stranger Than The Headlines Suggest

1mo ago
See all content