Neural Network Representations (C1W3L02)
Skills:
ML Maths Basics80%
Key Takeaways
Introduces neural network representations
Full Transcript
see me draw a few pictures of your neural network in this video we'll talk about exactly what those pictures means in other words actly what those little neural networks have been drawing on represent and we'll starts were focusing on the case of neural networks with what's called a single hidden layer she is a picture of a neural net let's give different parts of these pictures some names we have the input features x1 x2 x3 Stata vertically and this is called the input layer of the neural network so maybe not surprisingly this contains the inputs to the neural network then there's another layer of circles and this is called a hidden layer of the neural network I'll come back in a second to say what the word hidden means but the final layer here is formed by in this case just one note and this single note layer is called the output layer and it's responsible for generating the predicted value Y hat in a neural network the you train with supervised learning the training set contains values of the inputs X as well as the target outputs Y so the term hidden layer refers to the fact that in the training set the true values for these nodes in the middle are not observed that is you don't see what they should be in the training set you see what the inputs are you see what the output should be for the things in the hidden layer are not seen in the training set so that kind of explains the name hidden layer just means you don't see it in the training set let's introduce a bit more notation whereas previously we were using the vector X to denote the input features an alternative notation for the values of the info features will be a superscript square bracket 0 and the term a also stands for activations and it refers to the values that different layers of the neural network are passing on to the subsequent layers so the input layer passes on the value X to the hidden layer so we're going to call that code the activations of the info layer in superscript 0 the next layer the hidden layer will in turn generate some set of activations which I'm going to write as a superscript square bracket 1 so particular this first units or this first node will generate a value a superscript square bracket 1 subscript 1 this second node we generate the value now with a subscript 2 and so on and so a superscript square bracket 1 this is a four dimensional vector or if you want in Python occurs this period or by one matrix or four column vector which looks like this and it's four dimensional because in this case we have four nodes or four units or four hidden units in this hidden layer then finally the output layer will generate some value a two which is just a real number and so Y hat is going to take on the value of a 2 so this is analogous to how in logistic regression we have Y hat equals a and prolific regression which we only had that one output layer so we didn't use the superscript square brackets but within your network we're now going to use this superscript square bracket to explicitly indicate which layer it came from one funny thing about notational conventions in your networks is that this network that you're seeing here is called a two layer on your network and the reason is that when we come layers in your networks we don't count the input layer so the hidden layer is layer 1 and your output layer is layer to another notational convention we're calling the input layer layer 0 so technically maybe there are three layers in this view Network because the input layer in the hidden layer and the open layer but in conventional users if you research papers m and L so in the course you see people refer to this particular neural network as a two layer neural network because we don't count the input layer as a as an official layer finally something that we'll get to later is that the hidden layer and the output layers will have parameters associated with it so the hidden layer will have associated with their parameters W and B and going to write superscript square bracket 1 to indicate that these are parameters associated with layer 1 with a hidden layer we'll see later that W will be a or by 3 matrix and B will be a 4 by 1 vector in this example where the first coordinate 4 comes in the fact we have four nodes or four hidden units and lair and three comes from the fact that we have three input features we'll talk later about the dimensions of these matrices and it might make more sense at that time but in similarly the open layer as associated with it also parameters W superscript square bracket 2 and B superscript square bracket 2 and it turns out the dimensions of these are one by four and one by one and this one by fours because the hidden there has four hidden units the output layer has just one unit on bergame we'll go over the dimensions of these matrices and vectors in a data video so you've just seen what a two layer neural network looks like that is a neural network with one hidden layer in the next video let's go deeper into exactly what this new network is computing that is how this neural network inputs X and goes all the way to computing this output Y hat
Original Description
Take the Deep Learning Specialization: http://bit.ly/2VB5LbX
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 · 33 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
▶
34
35
36
37
38
39
40
41
42
43
44
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: ML Maths Basics
View skill →Related Reads
📰
📰
📰
📰
I Taught an AI to Recognize the Shadows of Four-Dimensional Objects
Medium · AI
SVD y PCA: cómo el álgebra lineal comprime miles de dimensiones
Dev.to AI
The Baseline I Actually Picked for My Kaggle Pokémon Agent, and Why
Medium · Machine Learning
From Data to Decisions: A Beginners Guide to Understanding Machine Learning
Medium · Machine Learning
🎓
Tutor Explanation
DeepCamp AI