Deep L-Layer Neural Network (C1W4L01)
Key Takeaways
Deep neural networks are introduced, including notation and concepts for describing and computing with these networks. The video covers the basics of deep neural networks, including the number of layers, number of units in each layer, and the notation used to describe these networks.
Full Transcript
welcome to the fourth week of this course by now you've seen forward propagation and back propagation in the context of a neural network with a single hidden layer as well as logistic regression and you've learned about vectorization and when it's important initialize the weights randomly if you've done the past company's homework we've also implemented and seen some of these ideas work for yourself so by now you've actually seen most of the ideas you need to implement a deep neural network what we're going to do in this week is take those ideas and put them together so that you'll be able to implement your own deep neural network because the following exercise is longer and just has a bit more work going to keep the video so this week short as you get through the videos a little bit more quickly and then have more time to do a significant programming exercise at the end which I hope will leave you having built a deep neural network that you feel proud of so what is a deep neural network you've seen this picture for a literacy regression and you've also seen new networks sort of a single hidden layer so here is an example of a neural network with two hidden layers and in your network with five hidden layers we should say that logistic regression is a very shallow model whereas this model here is a much deeper model and shallow versus depth is a matter of degree so neural network of a single hidden layer this would be a two layer neural network remember when we count layers in neural network we don't count the input layer we just count the hidden layers as was the output layer so this would be a two layer neural network is so quite shallow but not as shallow as logistic regression technically logistic regression is a you know one layer neural network but over the last several years dai on the machine learning community has realized that there are functions that very deep neural networks can learn that shallower models are often unable to although for any given problem it might be hard to predict in advance exactly how deep a neural network you will want so it would be reasonable to try logistic regression one and two hidden layers and view the number of hidden layers is another hyper parameter that you could try a variety of values of and evaluate on holdout cross validation data or all your development set say more about that later as well let's now go through the notation we're used to describe deep neural networks here is a one two three four layer neural network with three thin layers and the number of units in these hidden layers are I guess five five three almond and it's one output unit so the notation we're going to use is going to use capital L to denote the number of layers in the network so in this case L is equal to four and so that's the number of layers and we're going to use n superscript L to denote the number of notes or the number of units in they are lowercase L so if we index this the input as layer 0 this is layer 1 this is layer 2 this is layer 3 and this is layer 4 then we have that for example n 1 that would be this the first isn't layer would be equal to 5 because we have 500 units there for this one without that n 2 the number of units in the second sitting there is also equal to 5 n 3 is equal to 3 and n 4 which is n capital L this number of units is this number of output units is equal to 1 because here our capital L is equal to 4 and we're also going to have here therefore the input layer n 0 is just equal to n X is equal to 3 okay so that's the notation we use to describe the number of nodes we have in different layers so each layer L also also going to use a L to denote D observations in there l so we'll see later that in for propagation you end up computing al as the activation G applied to ZL and then perhaps the activations index by the layer l as well and then we'll use WL to denote you know the weights for computing the values VL in the ARL and similarly VL that's used to compute ZL finally just to wrap up on the notation the input features are called X but X is also the activations of layer 0 so a 0 is equal to X and the activation of the final layer a capital L is equal to Y hat so a superscript square bracket capital L is equal to the predicted output to prediction y hats of the neural network so you now know what a deep neural network looks like as well as the notation will use to this drive and to compute with teeth networks I never introduced a lot of notation in this video but if you ever forget what some symbol means we've also posted on the course website a notation sheet or a notation guide that you can use to look up what these different symbols means mix elect to describe what forward propagation in this type of network look like let's go into the next video
Original Description
Take the Deep Learning Specialization: http://bit.ly/2IjAPVz
Check out all our courses: https://www.deeplearning.ai
Subscribe to The Batch, our weekly newsletter: https://www.deeplearning.ai/thebatch
Follow us:
Twitter: https://twitter.com/deeplearningai_
Facebook: https://www.facebook.com/deeplearningHQ/
Linkedin: https://www.linkedin.com/company/deeplearningai
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from DeepLearningAI · DeepLearningAI · 44 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
▶
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Forward and Backward Propagation (C1W4L06)
DeepLearningAI
deeplearning.ai's Heroes of Deep Learning: Yuanqing Lin
DeepLearningAI
deeplearning.ai's Heroes of Deep Learning: Ruslan Salakhutdinov
DeepLearningAI
deeplearning.ai's Heroes of Deep Learning: Yoshua Bengio
DeepLearningAI
deeplearning.ai's Heroes of Deep Learning: Pieter Abbeel
DeepLearningAI
deeplearning.ai's Heroes of Deep Learning: Ian Goodfellow
DeepLearningAI
deeplearning.ai's Heroes of Deep Learning: Andrej Karpathy
DeepLearningAI
Using an Appropriate Scale (C2W3L02)
DeepLearningAI
Gradient Checking (C2W1L13)
DeepLearningAI
Gradient Checking Implementation Notes (C2W1L14)
DeepLearningAI
Learning Rate Decay (C2W2L09)
DeepLearningAI
Understanding Mini-Batch Gradient Dexcent (C2W2L02)
DeepLearningAI
Mini Batch Gradient Descent (C2W2L01)
DeepLearningAI
The Problem of Local Optima (C2W3L10)
DeepLearningAI
Exponentially Weighted Averages (C2W2L03)
DeepLearningAI
Tuning Process (C2W3L01)
DeepLearningAI
Understanding Exponentially Weighted Averages (C2W2L04)
DeepLearningAI
Bias Correction of Exponentially Weighted Averages (C2W2L05)
DeepLearningAI
Gradient Descent With Momentum (C2W2L06)
DeepLearningAI
Normalizing Activations in a Network (C2W3L04)
DeepLearningAI
Hyperparameter Tuning in Practice (C2W3L03)
DeepLearningAI
Adam Optimization Algorithm (C2W2L08)
DeepLearningAI
RMSProp (C2W2L07)
DeepLearningAI
Fitting Batch Norm Into Neural Networks (C2W3L05)
DeepLearningAI
Why Does Batch Norm Work? (C2W3L06)
DeepLearningAI
Batch Norm At Test Time (C2W3L07)
DeepLearningAI
Softmax Regression (C2W3L08)
DeepLearningAI
Deep Learning Frameworks (C2W3L10)
DeepLearningAI
Neural Network Overview (C1W3L01)
DeepLearningAI
Training Softmax Classifier (C2W3L09)
DeepLearningAI
Why Deep Representations? (C1W4L04)
DeepLearningAI
Gradient Descent For Neural Networks (C1W3L09)
DeepLearningAI
Neural Network Representations (C1W3L02)
DeepLearningAI
TensorFlow (C2W3L11)
DeepLearningAI
Activation Functions (C1W3L06)
DeepLearningAI
Explanation For Vectorized Implementation (C1W3L05)
DeepLearningAI
Getting Matrix Dimensions Right (C1W4L03)
DeepLearningAI
Understanding Dropout (C2W1L07)
DeepLearningAI
Building Blocks of a Deep Neural Network (C1W4L05)
DeepLearningAI
Why Non-linear Activation Functions (C1W3L07)
DeepLearningAI
Computing Neural Network Output (C1W3L03)
DeepLearningAI
Backpropagation Intuition (C1W3L10)
DeepLearningAI
Train/Dev/Test Sets (C2W1L01)
DeepLearningAI
Deep L-Layer Neural Network (C1W4L01)
DeepLearningAI
Random Initialization (C1W3L11)
DeepLearningAI
Other Regularization Methods (C2W1L08)
DeepLearningAI
Normalizing Inputs (C2W1L09)
DeepLearningAI
Derivatives Of Activation Functions (C1W3L08)
DeepLearningAI
Parameters vs Hyperparameters (C1W4L07)
DeepLearningAI
Vectorizing Across Multiple Examples (C1W3L04)
DeepLearningAI
What does this have to do with the brain? (C1W4L08)
DeepLearningAI
Dropout Regularization (C2W1L06)
DeepLearningAI
Vanishing/Exploding Gradients (C2W1L10)
DeepLearningAI
Basic Recipe for Machine Learning (C2W1L03)
DeepLearningAI
Bias/Variance (C2W1L02)
DeepLearningAI
Forward Propagation in a Deep Network (C1W4L02)
DeepLearningAI
Weight Initialization in a Deep Network (C2W1L11)
DeepLearningAI
Numerical Approximations of Gradients (C2W1L12)
DeepLearningAI
Regularization (C2W1L04)
DeepLearningAI
Why Regularization Reduces Overfitting (C2W1L05)
DeepLearningAI
More on: Supervised Learning
View skill →Related Reads
📰
📰
📰
📰
Handling Time-Dependent Features Across ML Algorithm Families
Medium · Python
Why You Don’t Need a Huge AI Model to do Easy Work
Medium · Machine Learning
Why Python Is Secretly the Most Dangerous Skill You Can Learn in 2026
Medium · AI
Why Python Is Secretly the Most Dangerous Skill You Can Learn in 2026
Medium · Programming
🎓
Tutor Explanation
DeepCamp AI