Neural Network Representations (C1W3L02)

DeepLearningAI · Beginner ·📐 ML Fundamentals ·8y ago

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 Forward and Backward Propagation (C1W4L06)
Forward and Backward Propagation (C1W4L06)
DeepLearningAI
2 deeplearning.ai's Heroes of Deep Learning: Yuanqing Lin
deeplearning.ai's Heroes of Deep Learning: Yuanqing Lin
DeepLearningAI
3 deeplearning.ai's Heroes of Deep Learning: Ruslan Salakhutdinov
deeplearning.ai's Heroes of Deep Learning: Ruslan Salakhutdinov
DeepLearningAI
4 deeplearning.ai's Heroes of Deep Learning: Yoshua Bengio
deeplearning.ai's Heroes of Deep Learning: Yoshua Bengio
DeepLearningAI
5 deeplearning.ai's Heroes of Deep Learning: Pieter Abbeel
deeplearning.ai's Heroes of Deep Learning: Pieter Abbeel
DeepLearningAI
6 deeplearning.ai's Heroes of Deep Learning: Ian Goodfellow
deeplearning.ai's Heroes of Deep Learning: Ian Goodfellow
DeepLearningAI
7 deeplearning.ai's Heroes of Deep Learning: Andrej Karpathy
deeplearning.ai's Heroes of Deep Learning: Andrej Karpathy
DeepLearningAI
8 Using an Appropriate Scale (C2W3L02)
Using an Appropriate Scale (C2W3L02)
DeepLearningAI
9 Gradient Checking (C2W1L13)
Gradient Checking (C2W1L13)
DeepLearningAI
10 Gradient Checking Implementation Notes (C2W1L14)
Gradient Checking Implementation Notes (C2W1L14)
DeepLearningAI
11 Learning Rate Decay (C2W2L09)
Learning Rate Decay (C2W2L09)
DeepLearningAI
12 Understanding Mini-Batch Gradient Dexcent (C2W2L02)
Understanding Mini-Batch Gradient Dexcent (C2W2L02)
DeepLearningAI
13 Mini Batch Gradient Descent (C2W2L01)
Mini Batch Gradient Descent (C2W2L01)
DeepLearningAI
14 The Problem of Local Optima (C2W3L10)
The Problem of Local Optima (C2W3L10)
DeepLearningAI
15 Exponentially Weighted Averages (C2W2L03)
Exponentially Weighted Averages (C2W2L03)
DeepLearningAI
16 Tuning Process (C2W3L01)
Tuning Process (C2W3L01)
DeepLearningAI
17 Understanding Exponentially Weighted Averages (C2W2L04)
Understanding Exponentially Weighted Averages (C2W2L04)
DeepLearningAI
18 Bias Correction of Exponentially Weighted Averages (C2W2L05)
Bias Correction of Exponentially Weighted Averages (C2W2L05)
DeepLearningAI
19 Gradient Descent With Momentum (C2W2L06)
Gradient Descent With Momentum (C2W2L06)
DeepLearningAI
20 Normalizing Activations in a Network (C2W3L04)
Normalizing Activations in a Network (C2W3L04)
DeepLearningAI
21 Hyperparameter Tuning in Practice (C2W3L03)
Hyperparameter Tuning in Practice (C2W3L03)
DeepLearningAI
22 Adam Optimization Algorithm (C2W2L08)
Adam Optimization Algorithm (C2W2L08)
DeepLearningAI
23 RMSProp (C2W2L07)
RMSProp (C2W2L07)
DeepLearningAI
24 Fitting Batch Norm Into Neural Networks (C2W3L05)
Fitting Batch Norm Into Neural Networks (C2W3L05)
DeepLearningAI
25 Why Does Batch Norm Work? (C2W3L06)
Why Does Batch Norm Work? (C2W3L06)
DeepLearningAI
26 Batch Norm At Test Time (C2W3L07)
Batch Norm At Test Time (C2W3L07)
DeepLearningAI
27 Softmax Regression (C2W3L08)
Softmax Regression (C2W3L08)
DeepLearningAI
28 Deep Learning Frameworks (C2W3L10)
Deep Learning Frameworks (C2W3L10)
DeepLearningAI
29 Neural Network Overview (C1W3L01)
Neural Network Overview (C1W3L01)
DeepLearningAI
30 Training Softmax Classifier (C2W3L09)
Training Softmax Classifier (C2W3L09)
DeepLearningAI
31 Why Deep Representations? (C1W4L04)
Why Deep Representations? (C1W4L04)
DeepLearningAI
32 Gradient Descent For Neural Networks (C1W3L09)
Gradient Descent For Neural Networks (C1W3L09)
DeepLearningAI
Neural Network Representations (C1W3L02)
Neural Network Representations (C1W3L02)
DeepLearningAI
34 TensorFlow (C2W3L11)
TensorFlow (C2W3L11)
DeepLearningAI
35 Activation Functions (C1W3L06)
Activation Functions (C1W3L06)
DeepLearningAI
36 Explanation For Vectorized Implementation (C1W3L05)
Explanation For Vectorized Implementation (C1W3L05)
DeepLearningAI
37 Getting Matrix Dimensions Right (C1W4L03)
Getting Matrix Dimensions Right (C1W4L03)
DeepLearningAI
38 Understanding Dropout (C2W1L07)
Understanding Dropout (C2W1L07)
DeepLearningAI
39 Building Blocks of a Deep Neural Network (C1W4L05)
Building Blocks of a Deep Neural Network (C1W4L05)
DeepLearningAI
40 Why Non-linear Activation Functions (C1W3L07)
Why Non-linear Activation Functions (C1W3L07)
DeepLearningAI
41 Computing Neural Network Output (C1W3L03)
Computing Neural Network Output (C1W3L03)
DeepLearningAI
42 Backpropagation Intuition (C1W3L10)
Backpropagation Intuition (C1W3L10)
DeepLearningAI
43 Train/Dev/Test Sets (C2W1L01)
Train/Dev/Test Sets (C2W1L01)
DeepLearningAI
44 Deep L-Layer Neural Network (C1W4L01)
Deep L-Layer Neural Network (C1W4L01)
DeepLearningAI
45 Random Initialization (C1W3L11)
Random Initialization (C1W3L11)
DeepLearningAI
46 Other Regularization Methods (C2W1L08)
Other Regularization Methods (C2W1L08)
DeepLearningAI
47 Normalizing Inputs (C2W1L09)
Normalizing Inputs (C2W1L09)
DeepLearningAI
48 Derivatives Of Activation Functions (C1W3L08)
Derivatives Of Activation Functions (C1W3L08)
DeepLearningAI
49 Parameters vs Hyperparameters (C1W4L07)
Parameters vs Hyperparameters (C1W4L07)
DeepLearningAI
50 Vectorizing Across Multiple Examples (C1W3L04)
Vectorizing Across Multiple Examples (C1W3L04)
DeepLearningAI
51 What does this have to do with the brain? (C1W4L08)
What does this have to do with the brain? (C1W4L08)
DeepLearningAI
52 Dropout Regularization (C2W1L06)
Dropout Regularization (C2W1L06)
DeepLearningAI
53 Vanishing/Exploding Gradients (C2W1L10)
Vanishing/Exploding Gradients (C2W1L10)
DeepLearningAI
54 Basic Recipe for Machine Learning (C2W1L03)
Basic Recipe for Machine Learning (C2W1L03)
DeepLearningAI
55 Bias/Variance (C2W1L02)
Bias/Variance (C2W1L02)
DeepLearningAI
56 Forward Propagation in a Deep Network (C1W4L02)
Forward Propagation in a Deep Network (C1W4L02)
DeepLearningAI
57 Weight Initialization in a Deep Network (C2W1L11)
Weight Initialization in a Deep Network (C2W1L11)
DeepLearningAI
58 Numerical Approximations of Gradients (C2W1L12)
Numerical Approximations of Gradients (C2W1L12)
DeepLearningAI
59 Regularization (C2W1L04)
Regularization (C2W1L04)
DeepLearningAI
60 Why Regularization Reduces Overfitting (C2W1L05)
Why Regularization Reduces Overfitting (C2W1L05)
DeepLearningAI

Related Reads

📰
I Taught an AI to Recognize the Shadows of Four-Dimensional Objects
Learn how a neural network was taught to recognize the shadows of four-dimensional objects, expanding our understanding of high-dimensional geometry
Medium · AI
📰
SVD y PCA: cómo el álgebra lineal comprime miles de dimensiones
Aprende a reducir dimensiones con SVD y PCA, técnicas de álgebra lineal que sostienen el machine learning moderno
Dev.to AI
📰
The Baseline I Actually Picked for My Kaggle Pokémon Agent, and Why
Learn how to approach building a Kaggle Pokémon agent by understanding the baseline model selection process and its importance in competitive machine learning challenges
Medium · Machine Learning
📰
From Data to Decisions: A Beginners Guide to Understanding Machine Learning
Learn the basics of machine learning to make informed decisions from data
Medium · Machine Learning
Up next
QR Decomposition is Just Gram-Schmidt with Receipts
DataMListic
Watch →