[00:00:00] Thank you. [00:03:00] Okay, so we are starting. [00:03:03] Thank you. [00:03:04] In the last class, we have completed and I hope you have enjoyed that session about the CNN. [00:03:11] Okay, so thank you and topic for today, I have planned for covering another very fundamental [00:03:22] and advanced deep learning topic, RNN and LSTM. [00:03:29] So, I have planned to cover both the models or the architecture, let's see what happens. [00:03:36] So, starting with the CNN and you may be thinking, okay, so we have a CNN so powerful deep learning [00:03:46] architecture. [00:03:47] So, why we need another kind of deep learning network like RNN and LSTM, okay. [00:03:55] So, very briefly, I will talk about the CNN is particularly very useful for vision applications or vision applications. [00:04:05] When I call is vision application means it can handle the images and videos, images and videos very well, okay. [00:04:16] Okay, or it's useful for non-sequential data. [00:04:28] So, everybody is clear about two kind of data. [00:04:30] We have a sequential data and non-sequential data, okay. [00:04:35] Where RNN and LSTM are very much powerful for a sequential data. [00:04:40] Where if you try to apply CNN in the sequential data, it will not perform at all. [00:04:49] So, since in real life, we have two kind of data, non-sequential data means data set having the records or items, okay. [00:05:00] And every item, every entry is independent to each other, it is independent, independent to each other. [00:05:11] We call it non-sequential data, non-sequential data. [00:05:17] For example, images. [00:05:19] So, suppose you have a CNN model and you have a data set having a lot of images, lot of images. [00:05:27] Agree? Cat and dog and horse. [00:05:30] You can, during the training, you can feed any of the image in any order. [00:05:35] Any order. [00:05:36] Order is not fixed. [00:05:38] From the data set, randomly you choose the image and feed to the CNN for the training purpose. [00:05:43] There is no dependency between the two images. [00:05:47] So, suppose this is image 1, this is image 2. [00:05:52] There is no dependency. [00:05:55] No dependency. [00:05:57] This is called non-sequential data. [00:06:02] But in the sequential data, like a stock market data, okay. [00:06:06] The stock market data. [00:06:08] Like IOT data. [00:06:10] IOT data. [00:06:12] Like a COVID data. [00:06:14] Okay. [00:06:15] Like a text. [00:06:17] Like an NLP. [00:06:18] Where every observation is associated and strong relationship with the previous observed data. [00:06:26] This category we call a sequential data. [00:06:28] So, that's why we have a sequential kind of data set. [00:06:32] We require a different kind of model. [00:06:34] So, that created a need of developing model that is different from the CNN. [00:06:39] So, the RNN, LSTM and their family. [00:06:44] The family also have a transformer. [00:06:46] The same family. [00:06:47] Transformer. [00:06:48] Encoder, decoder. [00:06:51] Encoder, decoder. [00:06:52] All are the same family work with the sequential data. [00:06:56] That is a background. [00:06:58] So, moving to the next. [00:07:02] Let me open a file. [00:07:06] Yeah. [00:07:06] So, I will explain the working of CNN with respect to the NLP. [00:07:12] So, yeah. [00:07:14] So, the things already covered in the NLP. [00:07:18] Suppose this is the data set is given to you. [00:07:20] Having a three sentence movie was enjoyable. [00:07:24] And second observation and third observations. [00:07:26] This is the class sentiment is like a positive negative one or zero. [00:07:33] So, we don't need to hear. [00:07:35] How to give this text data to the RNN? [00:07:39] I will explain the working of RNN with this working example. [00:07:45] Okay. [00:07:45] So, how to first we have to convert this text data into the vector. [00:07:50] Suppose one hot encoding I am employing. [00:07:52] So, how to do it? [00:07:53] First, we have to find out the vocabulary. [00:07:55] Vocabulary means unique words from the whole corpus. [00:07:59] So, in this whole corpus, unique words are like that movie was enjoyable, disappointing and not. [00:08:05] So, column is a feature. [00:08:07] And also, we arrange the vocabulary as a row wise so that we can encode an individual word at a time, not a sentence at a time. [00:08:20] Okay. [00:08:20] So, movie is a word. [00:08:23] Its equivalent vector is 1, 0, 0, 0. [00:08:27] Was is another term equivalent vector is this one. [00:08:30] So, this is the process by which we are converting your text data into the vectorized version. [00:08:37] Already, it was covered. [00:08:39] So, it is the way you can mention the complete sentence like movie was enjoyable. [00:08:46] So, movie one hot encoding vector is this, then for was for enjoyable. [00:08:53] So, this is the equivalent sentence representation in the term of numeric number. [00:09:00] Okay. [00:09:02] Important part is whenever you feed data to the RNN, we have to pass additional variable here. [00:09:12] It is a timestamp. [00:09:14] It is not typical timestamp. [00:09:15] Just understand, in the RNN, suppose I am passing data for a training. [00:09:26] So, that data having a two-part, first is something, second is real data, whatever you are passing. [00:09:34] Sometimes, we call it timestamp, but it is not timestamp actually. [00:09:39] Okay. [00:09:40] What is this? [00:09:42] Let me explain with this example. [00:09:43] So, another big problem, if you remember, the text data, the input size is not fixed. [00:10:00] Everybody agree or not? [00:10:02] Input size is not fixed. [00:10:06] So, CNN, again, the second big difference I just recall, CNN work with the fixed size input. [00:10:13] Fixed size input. [00:10:15] Fixed size input. [00:10:17] You remember, if image size is 5 x 5, so all the images from that data set should be the same size. [00:10:26] Okay. [00:10:27] But, in the text, it is not fixed size. [00:10:32] Everybody agree? [00:10:33] Because input sentence may be, I am, I am Vivek, I, every time. [00:10:43] The size of input is 2 tokens, size of input is 3, size of input is 1. [00:10:48] Okay. [00:10:49] So, how do you confirm and make it aware about the RNN to handle the variable size input? [00:10:57] So, this problem we call it, to variable size input. [00:11:00] So, that's why, what we want, I want, we feed the data to the model, data plus size. [00:11:10] So, this first variable is the size. [00:11:14] Okay. [00:11:14] What happened and what is the benefit of this? [00:11:17] Please be with me next 30 minutes, very crucial. [00:11:20] So, look here, we have an input x1, x2, and x3. [00:11:26] Under the x1, we have three tokens. [00:11:29] Similarly, for other inputs, equivalent vector. [00:11:32] And you see here, how to pass the input to the RNN. [00:11:39] First, index talk about number of tokens. [00:11:44] Number of tokens. [00:11:45] So, in this sentence, three number of tokens are there. [00:11:47] Next sentence, three. [00:11:48] Next sentence, four. [00:11:51] Size of his token. [00:11:53] It is fixed because it is a vocabulary. [00:11:56] Size of his token is 5. [00:11:59] So, what is the meaning of that? [00:12:01] The moment I will say, like, the input is 3, 5. [00:12:07] So, this is the size of input. [00:12:09] So, it will define what number of neurons in input layer. [00:12:16] Agree? [00:12:16] Because, what is the biggest problem or the first problem in any network? [00:12:20] First, you have to think about input layer. [00:12:24] Agree? [00:12:25] So, this is talk about, it's a vocabulary size of input layer. [00:12:31] So, what do you mean by these three? [00:12:34] So, you know, the concept of looping. [00:12:38] Concept of looping. [00:12:40] Suppose this is a hidden layer. [00:12:41] For example, if you can recall the discussion at the beginning of the neural network, I talk about two kind of network. [00:12:52] Feed forward network. [00:12:53] Feed forward network. [00:12:55] If you remember, feed forward network, then feed back here, recurrent network. [00:13:06] So, this is RNN is here. [00:13:20] RNN is a feedback or recurrent network. [00:13:25] Feed forward network is a CNN. [00:13:28] So, recurrent network means, again recall the concept, we required a cycle, we required the loop, we required the feedback. [00:13:39] Are you able to recall that discussion? [00:13:41] So, this is the input layer is connected with the hidden layer, hidden layer will have a loop. [00:13:46] Okay, understand that part, that is a crux of RNN, that is a crux of RNN. [00:13:53] So, question is how many times this loop execute, you tell me, question is how many times loop will execute, will execute. [00:14:04] That is a big problem or not, otherwise it got infinite. [00:14:10] Like in C++, how do you, for i is equal to 0, i less than n, n number of times execute. [00:14:18] So, here loop execute will be defined by first index, here 3 and 5, agree? [00:14:26] So, whenever you feed input to the RNN, first index is talk about number of time loop execute, agree? [00:14:37] So, suppose the sentence is written, I am Vivek and this is 3, 5, 5 is vector size, 3 means, 3 means, number of token, number of token in that sentence, [00:15:06] it is correct, it is correct, it is correct, size of sentence, that is also correct, same thing, okay? [00:15:16] Or, number of, number of time loop execution, all are same thing, agree? [00:15:24] In the detail, I have a discussion. [00:15:25] So, yeah, so, now, it is architecture, where we don't have any loop, okay? [00:15:38] We don't have any loop. [00:15:39] So, how to do these things? [00:15:41] So, movie is the first, first, during the training, X1 is the input. [00:15:48] In the X1, the first token, X11, you are passing to the network. [00:15:53] And in the input layer, we have a 5 neurons. [00:15:57] So, X11, you are passing to the input layer. [00:16:00] So, first, we have one hidden layer. [00:16:04] So, it is a fully connected layer. [00:16:05] So, there will be the weight between the input layer and the hidden layer. [00:16:11] Size, the weight will be stored in the term of matrix, agree? [00:16:16] So, matrix is 5 cross 3, already the same concept, we have already had a discussion. [00:16:21] Then, we have a second weight matrix that contain the weights between the hidden layer and the output layer. [00:16:29] So, that part already, you are familiar. [00:16:32] The interesting part is what here. [00:16:36] So, whenever you feed input to the network, I am discussing the RNN, it will go to the hidden layer. [00:16:46] Understand, the size of hidden layer is up to you. [00:16:49] So, first important declaration, you may have a 3 neurons, you may have a 5 neurons, you may have a 10 neurons. [00:16:56] So, this is the hidden layer. [00:16:58] Suppose, here we have a 3 neurons. [00:17:02] I am talking about the looping because this is the loop that is making different from the other kind of network. [00:17:07] So, loop says that output of this first neuron, output of this first neuron of the hidden layer, [00:17:13] will go back and become input of all the neurons of the same hidden layer. [00:17:20] Agree? [00:17:22] So, there is no 3 different outputs. [00:17:25] This first neuron will have a same output. [00:17:27] It is going the same neurons, second neuron of the same layer, third neuron of the same layer. [00:17:34] Is it clear to everybody? [00:17:38] So, there, the first time it is not producing the 3 outputs. [00:17:42] Single output going to all the neurons of the same layer. [00:17:45] Got it? [00:17:48] Similarly, for second neuron also, output of the second neuron will go back to all the neuron of the same layer. [00:17:57] Similarly, for third neurons. [00:18:01] So, this will apply for all the neurons of the hidden layer. [00:18:06] It is a looping. [00:18:07] It is a kind of looping. [00:18:09] Is it clear? [00:18:13] So, here, very, very, very, very, very important part of today's discussion. [00:18:20] Ultimate, you can assume, you can assume, this is like this. [00:18:28] Here, you have to imagine what is happening during the looping process, during the cycle process. [00:18:35] Three neurons, hidden layer, output of the three neurons are going to the same neurons of the same hidden layer. [00:18:44] So, you can visualize. [00:18:47] It is not physically. [00:18:48] We have two hidden layers. [00:18:50] We have only single hidden layers. [00:18:53] But it concept of the time. [00:18:56] So, it is a time 20. [00:18:57] Now, it is a time T1. [00:19:00] Agree? [00:19:01] So, time start means what? [00:19:03] It is a time 20. [00:19:04] This is a time T1. [00:19:05] What is happening in the time T1? [00:19:07] Same neurons outputs coming from the same neurons output from the previous time T0. [00:19:14] So, you can visualize this kind of connections between the same hidden layer in a different time. [00:19:22] The diagram is clear. [00:19:24] It is not physically we are going to copy the hidden layers multiple times. [00:19:28] This is just looping with respect to the time. [00:19:30] Is it clear to everybody? [00:19:43] So, are you able to see this kind of network? [00:19:49] Virtual network? [00:19:51] So, network have a connections. [00:19:52] Fully connected networks. [00:19:54] So, this during the looping, it also have the weights. [00:19:57] These are the connections. [00:19:58] So, look. [00:19:59] I have written here. [00:20:00] Yeah. [00:20:00] Loop also have the weights. [00:20:02] So, there are three neurons. [00:20:04] Output of the three neurons are going as input of all the three neurons means that there are total nine connections. [00:20:12] Three cross three. [00:20:14] Agree? [00:20:14] So, there are three cross three connections. [00:20:17] It also contain the weights. [00:20:22] Yes. [00:20:23] Wait. [00:20:24] So, it will go three times. [00:20:25] I will discuss. [00:20:26] Wait for a minute. [00:20:28] So, three means three times it has to execute. [00:20:31] You are correct. [00:20:32] You are correct. [00:20:34] Yes. [00:20:35] Yes, Abhishek. [00:20:36] Same neurons. [00:20:38] Three times if input size is three. [00:20:40] Three times this loop has to execute. [00:20:42] I am discussing about the first time. [00:20:44] Just visualize it. [00:20:46] And it also has the weights. [00:20:47] That's very important. [00:20:49] This loop. [00:20:50] This virtual loop also has the weight. [00:20:53] Don't forget about the weight. [00:20:54] Now, we have a three weight matrix. [00:20:56] Agree? [00:20:57] How many weight matrix? [00:20:58] This is the weight matrix between input layer and the hidden layer. [00:21:03] We have a second weight matrix between hidden layer to the output layer. [00:21:06] And third weight matrix that normally not we don't able to see it physically. [00:21:11] This is what loop. [00:21:13] Loop also having the weights. [00:21:16] Cut it. [00:21:16] So, we have a three different matrix. [00:21:21] Yeah. [00:21:22] Bias. [00:21:22] No, no, no. [00:21:23] It is an input. [00:21:23] One is an input. [00:21:25] How to decode the movie? [00:21:27] It is a 1, 0, 0, 0. [00:21:30] Okay? [00:21:32] Now, how really happened during the training? [00:21:36] It's the most tricky part of the discussion. [00:21:40] Okay? [00:21:41] Please have a look over here. [00:21:43] Don't ask any questions next five minutes. [00:21:45] Just see. [00:21:46] Otherwise, you will miss a lot of things. [00:21:49] Look. [00:21:49] First time. [00:21:50] This is the training. [00:21:51] is just starting. [00:21:54] I am giving the first token from the X1 input. [00:21:58] That is a movie. [00:21:59] Look here. [00:22:00] The first input I am passing. [00:22:02] Please remember this terminology. [00:22:04] Yeah. [00:22:05] X1 first input. [00:22:07] The three tokens are there. [00:22:08] First token I am passing. [00:22:13] Okay? [00:22:14] So, time T0 or T1. [00:22:16] You can give any kind of nomenclature. [00:22:19] That doesn't make any big difference. [00:22:21] So, T0. [00:22:21] First time. [00:22:22] I am passing the first token of the first sentence. [00:22:25] Okay? [00:22:25] It will go to the input layer. [00:22:27] Through the weights. [00:22:28] It will go to the hidden layer. [00:22:30] Agree? [00:22:31] Each input will give you output. [00:22:33] I think everybody agree? [00:22:36] Now, these are going through the loop. [00:22:39] Same hidden layer neurons. [00:22:41] I am representing here only. [00:22:42] Just for visualizing purpose. [00:22:44] It is not physically. [00:22:46] Just visualizing purpose. [00:22:47] Same. [00:22:48] Same diagram. [00:22:48] This diagram. [00:22:49] I am representing in this way. [00:22:52] This hidden layer. [00:22:53] Under the loop. [00:22:55] The same hidden layer is there. [00:22:57] Output of each neuron is going to. [00:23:00] As input to all the neurons of the same layer. [00:23:02] Got it? [00:23:04] Is it clear? [00:23:04] Now, the important part is here. [00:23:14] This, at this time, they will wait. [00:23:18] It will not execute. [00:23:19] Means, otherwise, it is infinite loop. [00:23:21] So, output of neurons becoming the same input. [00:23:26] It will wait for a next input from the data set. [00:23:31] Next input from the data set. [00:23:33] So, it is time 20. [00:23:34] First token. [00:23:36] Got it? [00:23:36] Time t1. [00:23:37] Second token. [00:23:38] It is 12. [00:23:40] Movie was. [00:23:41] So, I have passed first word movie. [00:23:45] Then, second term was. [00:23:48] Cut it. [00:23:50] So, now, the neuron will get the two kinds of input. [00:23:54] One from the data set. [00:23:56] One from the hidden state. [00:23:59] We call it hidden state here. [00:24:00] Previous state. [00:24:01] This diagram is clear to everybody. [00:24:04] Bias always be there. [00:24:05] Don't worry about the bias. [00:24:08] So, every time, two kinds of input will be given to the neurons. [00:24:15] One from the previous loop or you can say the hidden state. [00:24:20] It is hidden. [00:24:21] And one from the data set. [00:24:23] These two concepts are clear to everybody or not. [00:24:31] Then, we have to pass third and final input of first. [00:24:42] Yeah. [00:24:44] So, first sentence. [00:24:45] What I mean to say? [00:24:47] If I try to explain again. [00:24:49] It is very important part. [00:24:52] So, okay. [00:24:53] Let me explain again. [00:24:54] Suppose sentence was movie was good. [00:25:02] Great. [00:25:03] And this is your architecture. [00:25:05] So, three. [00:25:05] First time, we have a three input. [00:25:08] Agree. [00:25:09] I call it x11, x12, x13. [00:25:14] It will feed to the network at time to zero. [00:25:18] This is for time t1. [00:25:20] This is for time to. [00:25:21] It is order. [00:25:21] It is not exact time. [00:25:22] It is order only. [00:25:24] Okay. [00:25:24] So, what happened? [00:25:26] First, this is the input layer. [00:25:31] Okay. [00:25:32] So, here I am passing. [00:25:33] It is time t0. [00:25:36] Okay. [00:25:39] I am passing input movie. [00:25:44] That is x11. [00:25:47] Great. [00:25:48] It is going. [00:25:50] We have hidden layer. [00:25:51] Hidden layer having only three neurons. [00:25:54] Agree. [00:25:55] So, now, it output of each neuron for the hidden layer will go back to the same layer. [00:26:06] Agree. [00:26:06] So, this is the loop. [00:26:10] Execution first time. [00:26:12] What I say? [00:26:14] It has to wait. [00:26:15] We have to pass second input from the data set at time t1. [00:26:20] Second input is was. [00:26:23] Agree. [00:26:24] That is x12. [00:26:26] So, this is the input coming from the data set. [00:26:29] Agree. [00:26:33] Now, [00:26:33] output of this hidden layer will again go back. [00:26:51] No. [00:26:54] Okay. [00:26:54] This, this and this. [00:26:56] Agree. [00:26:57] So, this is now time t2. [00:27:01] We have to pass movie was. [00:27:03] Good. [00:27:05] X12 from the data set. [00:27:09] Agree. [00:27:09] now loop is ended so here because sentence ended so we have process t0 we have process t1 [00:27:20] we have process t2 or you can say x11 x12 x13 sentence end sentence end means what now what [00:27:32] is the next of hidden layer what is the next of hidden layer suppose output layer so now [00:27:38] this output will go to the next output layer agree until so another way if i say this is the input [00:27:49] i am passing to the rnn rnn it has to go for multiple time end time once end time is over [00:28:02] it will go to the next layer next layer got it internal working of rnn is clear to everybody [00:28:13] this great now i have a question for you please ask sora [00:28:25] so how you got the bias added here so this is a fundamental please uh uh uh visit the already [00:28:46] recorded videos when i have started the neural network so it is not a right time to ask this [00:28:52] fundamental question okay bias means additional input will be there the size of matrix will [00:28:59] change only so 5 x 3 means 6 x 3 got it additional input will be there so please visit that part [00:29:06] anything else okay so when t2 is feed then it will have a input from the from t1 input from t1 no i never explain [00:29:28] you see clearly i am passing first as a t1 then next time t1 then next time t2 what is the confusion [00:29:41] every time input from the data set first the input was movie then input was movie was then good got it [00:29:58] first input w where is a w mohit i am not clear you just use the terminology what is visible to visible [00:30:07] here at your screen first input weight input is w is weight is not input input from the data set [00:30:15] we don't need to feed the input we don't need to feed the input we need to feed the input where i have written [00:30:25] the weight in this discussion you see here movie is not a weight input is movie was uh uh input is was input is good [00:30:37] where is the weight cut it i'm not feeding the weight i'm i'm just giving the input from the data set [00:30:45] anything else anything else [00:30:50] anything else [00:30:54] already i talk about anuja [00:31:06] number of size of input is three the three time it has to [00:31:14] go for looping then to the next layer so so depend on the size of input size of input is three three [00:31:23] time it has to loop [00:31:24] anuja you are correct anything else [00:31:28] no and whatever you want you can write [00:31:33] if we have loop then weight will be updated yes weight will be updated during the back propagation [00:31:40] so mohit you are getting a lot of confusion [00:31:44] it is a back propagation it is a forward [00:31:47] have you calculated the lost [00:31:50] have you calculated the loss here [00:31:54] have your model given the output at this time [00:31:58] final output will be given by the output layer then you have to calculate the loss [00:32:04] i have already covered then propagation back propagation start then you have to update the weight why you worry about this time [00:32:11] you are in the wrong place here [00:32:20] we are in the forward propagation we have not started the back propagation [00:32:24] yes [00:32:28] sorry you are correct now [00:32:32] great [00:32:36] so rnn is a bit [00:32:40] confusing [00:32:41] so but but we revisit [00:32:44] that recording every minute [00:32:46] things that i supposed to [00:32:49] explain i had done it [00:32:54] for t2 [00:32:59] i think you are not understanding whenever i explain [00:33:03] so look [00:33:04] for t2 [00:33:05] for time t2 [00:33:07] the [00:33:09] loop from t1 [00:33:12] i am feeding [00:33:13] as a [00:33:14] input to the same layer [00:33:16] so this diagram is still everything is clear [00:33:18] the sequence is clear [00:33:20] whenever i explain please listen at that time [00:33:24] you think about here what is happening for [00:33:29] time t2 [00:33:30] new input from the data set [00:33:33] and previous layer output [00:33:36] got it [00:33:37] saraab now clear [00:33:41] it is clear sequence [00:33:44] for t2 [00:33:45] hidden state comes from t1 [00:33:48] hidden state comes from t1 [00:33:49] for t1 [00:33:50] hidden state comes from t0 [00:33:52] simple [00:33:53] from both [00:34:01] so have you seen any connection from the both [00:34:05] just [00:34:07] just sort of see this connection [00:34:09] at a time [00:34:13] loop from the previous [00:34:14] layer only [00:34:15] so there is not multiple connections are there [00:34:17] so just from the previous [00:34:18] first understand what i am explaining [00:34:24] there will not be any confusion at all [00:34:25] have you seen any time t [00:34:29] at the time t2 [00:34:30] anything i am giving from the t0 [00:34:33] no [00:34:34] it is in the sequence [00:34:36] everything you have to process in the sequence [00:34:39] very simple [00:34:41] input was [00:34:42] movie [00:34:45] was [00:34:47] good [00:34:48] simple [00:34:48] first input this [00:34:50] then [00:34:51] loop [00:34:52] then give the input this [00:34:54] then loop [00:34:55] then input this [00:34:56] simple [00:34:57] it is connection like this [00:34:58] ok [00:35:03] so we should move ahead [00:35:05] you need to [00:35:06] visit [00:35:08] more sources [00:35:10] and videos [00:35:11] to understand properly [00:35:12] ok [00:35:13] so [00:35:14] this is about [00:35:15] now [00:35:16] in better way [00:35:17] i can visualize [00:35:18] it is about [00:35:19] the unfolding [00:35:20] of rnn [00:35:22] very interesting [00:35:23] ok [00:35:24] so there is a one important part [00:35:26] i missed somewhere [00:35:27] ok [00:35:28] so [00:35:29] you may be [00:35:32] worry about [00:35:33] the first time [00:35:34] this is a hidden layer [00:35:35] very important question [00:35:36] nobody have asked [00:35:37] i was waiting [00:35:38] this is a hidden layer [00:35:39] three layers [00:35:40] ok [00:35:40] three neurons [00:35:41] hidden layer [00:35:42] i have given input [00:35:45] from the previous layer [00:35:46] ok [00:35:48] got it [00:35:50] then [00:35:54] we have a loop [00:35:55] then [00:35:58] we have again [00:36:00] same hidden layer [00:36:01] suppose input was [00:36:03] movie [00:36:03] so [00:36:07] this is [00:36:07] this is one [00:36:10] then next input is [00:36:11] movie was [00:36:12] ok [00:36:13] so [00:36:14] how many kind of [00:36:15] inputs are here [00:36:17] you tell me [00:36:18] how many kinds of [00:36:19] inputs are here [00:36:20] at this place [00:36:22] right on the chat box [00:36:24] otherwise [00:36:25] it will be again [00:36:26] a big question for you [00:36:27] ok [00:36:31] is it clear [00:36:32] how many type of [00:36:35] inputs are here [00:36:36] answer first [00:36:39] two [00:36:40] correct answer [00:36:45] at this time [00:36:48] how many inputs [00:36:48] are there [00:36:49] at this time [00:36:54] here [00:36:54] one [00:36:55] it is a mismatching [00:36:56] or not [00:36:56] sometime you are [00:36:58] feeding single [00:36:58] kind of input [00:36:59] some you are [00:37:00] feeding [00:37:00] two kinds of [00:37:02] input [00:37:02] how the [00:37:03] architecture will [00:37:03] manage it [00:37:04] during the [00:37:04] execution [00:37:05] system doesn't [00:37:07] know what is [00:37:07] happening [00:37:08] sometime you are [00:37:08] feeding the [00:37:09] two input [00:37:09] two kind of [00:37:10] input [00:37:10] sometime the [00:37:11] single kind [00:37:12] of input [00:37:12] so answer is [00:37:13] here we also [00:37:15] have a two [00:37:15] kind of input [00:37:16] agree [00:37:17] architecture always [00:37:20] same for a [00:37:21] hidden layer [00:37:21] every time two [00:37:22] kinds of input [00:37:23] here so [00:37:25] random we [00:37:26] assume that [00:37:26] random loop [00:37:27] first time also [00:37:28] assume the [00:37:29] random loop [00:37:29] so it would [00:37:30] have a [00:37:31] hidden state [00:37:32] also have the [00:37:33] hidden state [00:37:34] that is a [00:37:36] random [00:37:36] that is a [00:37:37] random [00:37:38] agree [00:37:38] so in [00:37:40] another way [00:37:41] if I [00:37:42] explain [00:37:42] so this [00:37:44] this is [00:37:45] word [00:37:47] movie [00:37:47] okay [00:37:49] I am [00:37:49] passing [00:37:50] to the [00:37:51] hidden [00:37:52] layer [00:37:53] okay [00:37:55] this is [00:37:56] time [00:37:56] two [00:37:57] zero [00:37:57] also have [00:37:58] a [00:37:59] input [00:38:00] ht [00:38:01] zero [00:38:01] this is [00:38:03] assume that [00:38:04] random [00:38:05] loop is [00:38:06] coming from [00:38:06] the previous [00:38:07] time stamp [00:38:08] so this is [00:38:08] the first [00:38:09] time we [00:38:09] are feeding [00:38:10] we don't [00:38:10] have any [00:38:11] hidden [00:38:12] state [00:38:12] so I [00:38:13] will I [00:38:13] will consider [00:38:14] a random [00:38:14] that is a [00:38:15] random [00:38:16] hidden state [00:38:17] we have a [00:38:18] initialize [00:38:19] random hidden [00:38:19] state [00:38:20] agree [00:38:21] so it will [00:38:22] consider [00:38:22] output from [00:38:24] the previous [00:38:24] cycle [00:38:25] this is [00:38:26] output from [00:38:27] the input [00:38:28] from the [00:38:28] data [00:38:29] this is input [00:38:30] from the [00:38:30] data set [00:38:31] it also [00:38:34] having a [00:38:34] two kind [00:38:34] of input [00:38:36] at the [00:38:36] first time [00:38:37] to zero [00:38:37] got it [00:38:38] then we [00:38:40] don't have [00:38:40] any problem [00:38:40] next time [00:38:42] input from [00:38:44] this [00:38:45] input from [00:38:46] the data [00:38:46] set [00:38:47] two kind [00:38:49] of input [00:38:50] it is [00:38:50] clear [00:38:50] so this [00:38:53] input I [00:38:54] am calling [00:38:54] h1 [00:38:55] previous [00:38:56] state [00:38:56] input [00:38:56] this is [00:38:58] previous [00:38:58] state [00:38:59] input [00:38:59] ht0 [00:39:00] like that [00:39:01] this is [00:39:01] the basic [00:39:02] terminologies [00:39:02] so there [00:39:06] is a [00:39:06] one [00:39:06] good [00:39:09] concept [00:39:09] in [00:39:10] RNN [00:39:10] is [00:39:10] unfolding [00:39:15] what do [00:39:16] you mean [00:39:16] by unfolding [00:39:17] so what [00:39:20] happened in [00:39:20] the CNN [00:39:20] or typical [00:39:22] architecture [00:39:25] you just [00:39:26] see here [00:39:27] suppose [00:39:28] in [00:39:28] typical [00:39:29] it is [00:39:30] not RNN [00:39:30] it is [00:39:31] normal [00:39:32] perceptron [00:39:32] you can [00:39:33] assume [00:39:33] that [00:39:33] we have [00:39:34] an input [00:39:35] layer [00:39:35] suppose [00:39:36] we have [00:39:36] a three [00:39:36] hidden [00:39:37] layer [00:39:37] so how [00:39:38] it [00:39:38] happen [00:39:38] input [00:39:39] goes [00:39:40] from [00:39:40] input [00:39:40] layer [00:39:41] then [00:39:42] process [00:39:42] by the [00:39:42] first [00:39:43] hidden [00:39:43] layer [00:39:43] then [00:39:44] output [00:39:44] goes [00:39:45] to [00:39:45] the [00:39:45] second [00:39:45] hidden [00:39:46] layer [00:39:46] then [00:39:46] third [00:39:47] hidden [00:39:47] layer [00:39:47] then [00:39:48] at [00:39:49] the [00:39:49] last [00:39:50] output [00:39:50] layer [00:39:50] a [00:39:51] simple [00:39:52] perceptron [00:39:52] is it [00:39:53] clear to [00:39:53] everybody [00:39:54] it is [00:39:56] clear to [00:39:56] everybody [00:39:57] okay [00:39:57] so [00:39:58] but [00:40:00] in [00:40:00] RNN [00:40:01] what [00:40:02] happen [00:40:02] hidden [00:40:04] layer [00:40:04] you can [00:40:05] assume [00:40:06] multiple [00:40:06] time [00:40:07] you have [00:40:07] to [00:40:07] execute [00:40:08] this [00:40:08] hidden [00:40:09] layer [00:40:09] at [00:40:09] the [00:40:09] time [00:40:10] 20 [00:40:10] time [00:40:11] t1 [00:40:11] and [00:40:12] time [00:40:12] tn [00:40:12] agree [00:40:13] so [00:40:14] here [00:40:15] same [00:40:16] hidden [00:40:16] layer [00:40:16] need to [00:40:17] be [00:40:17] executed [00:40:18] by [00:40:18] multiple [00:40:18] time [00:40:19] depend [00:40:19] on [00:40:19] the [00:40:20] size [00:40:20] of [00:40:20] n [00:40:20] is it [00:40:21] clear [00:40:22] to [00:40:22] everybody [00:40:22] this [00:40:23] is [00:40:24] one [00:40:24] big [00:40:24] difference [00:40:25] from [00:40:25] typical [00:40:26] neural [00:40:28] network [00:40:28] and [00:40:28] with [00:40:29] the [00:40:29] RNN [00:40:29] same [00:40:31] hidden [00:40:31] layer [00:40:32] need [00:40:32] to [00:40:32] be [00:40:32] executed [00:40:33] multiple [00:40:34] time [00:40:34] n [00:40:34] time [00:40:34] okay [00:40:35] so [00:40:36] that's [00:40:37] why [00:40:37] this [00:40:37] is [00:40:38] a [00:40:38] normal [00:40:38] symbol [00:40:40] logo [00:40:40] of [00:40:41] RNN [00:40:41] you can [00:40:41] see [00:40:42] whenever [00:40:42] you [00:40:42] will [00:40:42] see [00:40:43] in [00:40:43] the [00:40:43] internet [00:40:43] and [00:40:44] in [00:40:44] the [00:40:44] book [00:40:44] it [00:40:45] says [00:40:45] the [00:40:45] input [00:40:46] then [00:40:46] hidden [00:40:46] layer [00:40:46] then [00:40:47] multiple [00:40:47] time [00:40:48] goes [00:40:49] for [00:40:49] the [00:40:49] looping [00:40:50] process [00:40:50] how [00:40:50] many [00:40:51] time [00:40:51] loop [00:40:51] n [00:40:52] number [00:40:52] of [00:40:52] time [00:40:52] then [00:40:53] it [00:40:53] go [00:40:53] to [00:40:53] the [00:40:54] next [00:40:54] layer [00:40:54] it [00:40:54] is [00:40:54] not [00:40:54] output [00:40:55] it [00:40:55] is [00:40:55] next [00:40:56] layer [00:40:56] ultimate [00:40:57] it [00:40:58] is [00:40:58] the [00:40:58] correct [00:40:58] picture [00:40:59] suppose [00:41:00] you [00:41:00] have [00:41:01] a [00:41:01] hidden [00:41:01] layer [00:41:02] multiple [00:41:02] hidden [00:41:02] layer [00:41:02] also [00:41:03] possible [00:41:03] in [00:41:03] the [00:41:04] RNN [00:41:04] you [00:41:04] may [00:41:05] you [00:41:05] should [00:41:05] ask [00:41:05] this [00:41:06] question [00:41:06] so [00:41:06] what [00:41:07] happen [00:41:07] if [00:41:07] you [00:41:07] have [00:41:07] a [00:41:08] multiple [00:41:08] hidden [00:41:08] layer [00:41:08] in [00:41:09] the [00:41:09] RNN [00:41:09] like [00:41:10] suppose [00:41:10] this [00:41:11] is [00:41:11] your [00:41:12] input [00:41:13] layer [00:41:14] okay [00:41:15] got [00:41:15] it [00:41:16] first [00:41:17] hidden [00:41:17] layer [00:41:17] got [00:41:18] it [00:41:19] then [00:41:21] second [00:41:22] hidden [00:41:22] layer [00:41:22] it [00:41:23] is [00:41:23] not [00:41:23] looping [00:41:24] it [00:41:24] is [00:41:24] a [00:41:24] hidden [00:41:25] in [00:41:26] the [00:41:26] third [00:41:27] hidden [00:41:27] layer [00:41:27] then [00:41:29] output [00:41:29] layer [00:41:30] so [00:41:31] suppose [00:41:31] I [00:41:32] have [00:41:33] an [00:41:33] input [00:41:34] of [00:41:34] like [00:41:35] again [00:41:35] same [00:41:36] input [00:41:36] movie [00:41:38] was [00:41:40] good [00:41:41] what do [00:41:42] you mean [00:41:42] by [00:41:42] it [00:41:43] will [00:41:43] execute [00:41:44] three [00:41:44] times [00:41:44] then [00:41:47] output [00:41:47] will [00:41:47] go to [00:41:48] the [00:41:48] next [00:41:48] layer [00:41:48] it [00:41:49] also [00:41:49] execute [00:41:50] three [00:41:50] times [00:41:50] then [00:41:51] output [00:41:52] to [00:41:52] the [00:41:52] next [00:41:52] layer [00:41:52] then [00:41:53] also [00:41:53] execute [00:41:54] three [00:41:54] times [00:41:54] then [00:41:55] output [00:41:55] to [00:41:55] the [00:41:56] next [00:41:56] layer [00:41:56] Anujay [00:42:01] already [00:42:01] I have [00:42:01] covered [00:42:02] this [00:42:02] question [00:42:02] how do [00:42:03] you decide [00:42:04] hidden [00:42:04] layer [00:42:05] size of [00:42:06] hidden [00:42:06] layer [00:42:06] in [00:42:07] earlier [00:42:07] models [00:42:08] you [00:42:08] tell [00:42:08] me [00:42:08] I [00:42:11] have [00:42:11] a [00:42:11] question [00:42:12] for [00:42:12] you [00:42:12] Anujay [00:42:12] how do [00:42:13] you [00:42:13] decide [00:42:13] the [00:42:14] hidden [00:42:14] layer [00:42:14] size [00:42:14] in [00:42:15] normal [00:42:15] network [00:42:15] same [00:42:17] answer [00:42:17] is [00:42:18] here [00:42:18] okay [00:42:20] hit [00:42:26] and [00:42:27] try [00:42:27] you [00:42:27] have [00:42:27] to [00:42:28] do [00:42:28] all [00:42:28] kind [00:42:28] of [00:42:29] possibilities [00:42:30] number [00:42:31] of [00:42:31] neurons [00:42:31] which [00:42:32] setup [00:42:32] will [00:42:32] give [00:42:33] you [00:42:33] the [00:42:34] good [00:42:34] result [00:42:34] you [00:42:35] need [00:42:35] to [00:42:35] keep [00:42:35] it [00:42:35] there [00:42:35] is [00:42:36] no [00:42:36] formula [00:42:36] okay [00:42:37] I [00:42:38] already [00:42:38] covered [00:42:38] this [00:42:39] question [00:42:39] same [00:42:39] question [00:42:40] you [00:42:40] are [00:42:40] asking [00:42:40] means [00:42:40] you [00:42:41] are [00:42:41] not [00:42:41] referring [00:42:41] the [00:42:42] recording [00:42:42] hidden [00:42:44] layer [00:42:45] size [00:42:46] okay [00:42:47] hit [00:42:48] and [00:42:48] try [00:42:48] hit [00:42:49] and [00:42:49] try [00:42:50] already [00:42:50] I [00:42:51] have [00:42:51] answered [00:42:51] there [00:42:52] is [00:42:52] no [00:42:53] formula [00:42:53] there [00:42:54] is [00:42:54] no [00:42:55] mathematical [00:42:56] formula [00:42:57] okay [00:42:57] now [00:42:59] it [00:42:59] should [00:42:59] be [00:42:59] clear [00:43:00] to [00:43:00] everybody [00:43:00] clear [00:43:05] Anujay [00:43:07] yes [00:43:13] Moeid [00:43:13] you [00:43:13] are [00:43:13] correct [00:43:14] Saurabh [00:43:17] Kumar [00:43:18] Pandey [00:43:18] sir [00:43:18] any [00:43:19] criteria [00:43:19] to [00:43:20] decide [00:43:20] the [00:43:20] number [00:43:20] again [00:43:21] same [00:43:22] fundamental [00:43:22] question [00:43:22] you [00:43:23] are [00:43:23] asking [00:43:23] random [00:43:23] is [00:43:24] what [00:43:24] random [00:43:24] weight [00:43:25] initialization [00:43:25] the [00:43:27] same [00:43:27] question [00:43:27] you [00:43:28] can [00:43:28] ask [00:43:28] sir [00:43:28] how [00:43:28] to [00:43:28] decide [00:43:29] the [00:43:30] weights [00:43:30] matrix [00:43:31] 5 [00:43:32] cross [00:43:32] 5 [00:43:32] weights [00:43:33] are [00:43:34] there [00:43:34] how [00:43:35] to [00:43:35] decide [00:43:35] the [00:43:35] weights [00:43:36] random [00:43:37] agree [00:43:39] so [00:43:40] ultimate [00:43:40] first [00:43:41] time [00:43:41] first [00:43:42] time [00:43:42] what [00:43:42] is [00:43:42] happening [00:43:43] time [00:43:43] to [00:43:43] zero [00:43:43] it [00:43:44] is [00:43:44] assuming [00:43:45] this [00:43:45] is [00:43:45] the [00:43:45] hidden [00:43:45] layer [00:43:46] it [00:43:47] is [00:43:47] giving [00:43:48] output [00:43:50] if [00:43:51] it [00:43:51] is [00:43:51] random [00:43:51] may [00:43:52] be [00:43:52] 0.01 [00:43:52] may [00:43:53] be [00:43:53] 0.02 [00:43:54] may [00:43:54] be [00:43:54] 0.03 [00:43:55] agree [00:43:57] with [00:43:57] input [00:43:58] from [00:43:59] the [00:43:59] dataset [00:43:59] got it [00:44:02] this [00:44:02] is [00:44:03] the [00:44:03] random [00:44:04] output [00:44:04] so [00:44:04] any [00:44:04] small [00:44:05] number [00:44:06] you [00:44:06] can [00:44:06] assume [00:44:06] the [00:44:07] way [00:44:07] you [00:44:07] initialize [00:44:08] the [00:44:08] way [00:44:08] it [00:44:08] same [00:44:09] concept [00:44:10] got [00:44:12] it [00:44:12] not [00:44:17] possible [00:44:18] Hrithika [00:44:19] not [00:44:19] possible [00:44:19] so [00:44:21] in [00:44:21] hidden [00:44:22] layer [00:44:22] only [00:44:24] output [00:44:25] come [00:44:25] one [00:44:25] from [00:44:26] the [00:44:26] hidden [00:44:26] state [00:44:27] we call [00:44:27] it [00:44:28] hidden [00:44:28] state [00:44:28] got [00:44:29] it [00:44:30] one [00:44:32] come [00:44:32] from [00:44:32] the [00:44:33] dataset [00:44:35] so [00:44:37] only [00:44:37] two [00:44:37] type [00:44:38] of [00:44:38] input [00:44:38] possible [00:44:39] answer [00:44:39] is [00:44:40] Hrithika [00:44:40] clear [00:44:40] okay [00:44:44] in [00:44:45] LSTM [00:44:46] in [00:44:46] LSTM [00:44:47] three [00:44:48] kind [00:44:48] of [00:44:49] input [00:44:49] possible [00:44:49] I [00:44:51] will [00:44:51] cover [00:44:52] it [00:44:52] three [00:44:52] kind [00:44:52] of [00:44:52] input [00:44:52] possible [00:44:53] I [00:44:59] already [00:44:59] covered [00:45:00] Saurabh [00:45:00] I [00:45:02] already [00:45:02] covered [00:45:03] your [00:45:03] answer [00:45:03] you [00:45:04] are [00:45:04] not [00:45:04] listening [00:45:04] at [00:45:04] the [00:45:05] way [00:45:05] you [00:45:05] are [00:45:05] asking [00:45:06] I [00:45:06] already [00:45:06] covered [00:45:06] what [00:45:07] is [00:45:07] this [00:45:07] if [00:45:11] you [00:45:11] have [00:45:12] multiple [00:45:12] hidden [00:45:12] layer [00:45:12] each [00:45:13] hidden [00:45:13] layer [00:45:13] will [00:45:14] execute [00:45:14] three [00:45:15] times [00:45:15] if [00:45:17] n [00:45:17] is [00:45:17] three [00:45:18] okay [00:45:19] already [00:45:20] I [00:45:20] have [00:45:20] covered [00:45:20] this [00:45:21] look [00:45:21] in [00:45:23] the [00:45:23] case [00:45:23] of [00:45:23] three [00:45:24] hidden [00:45:24] layer [00:45:24] every [00:45:25] hidden [00:45:25] layer [00:45:25] go [00:45:26] for [00:45:26] the [00:45:27] same [00:45:27] number [00:45:27] of [00:45:28] looping [00:45:28] depend [00:45:28] on [00:45:29] the [00:45:29] size [00:45:29] of [00:45:29] input [00:45:30] got [00:45:38] it [00:45:38] great [00:45:41] normally [00:45:42] people [00:45:42] don't [00:45:43] cover [00:45:43] RNN [00:45:44] in [00:45:44] this [00:45:44] kind [00:45:44] of [00:45:45] from [00:45:45] scratch [00:45:46] and [00:45:46] basic [00:45:46] fundamental [00:45:47] so you [00:45:49] are asking [00:45:50] the question [00:45:50] that's a [00:45:50] good sign [00:45:51] but [00:45:51] whenever [00:45:52] I [00:45:52] explain [00:45:53] be [00:45:54] attentive [00:45:54] only [00:45:55] so you [00:45:55] will have [00:45:55] very less [00:45:56] questions [00:45:56] okay [00:46:02] so [00:46:03] moving [00:46:04] ahead [00:46:05] okay [00:46:07] yeah [00:46:07] so [00:46:08] low [00:46:08] okay [00:46:09] I'm [00:46:09] going [00:46:09] to [00:46:09] again [00:46:10] have [00:46:11] a [00:46:11] detailed [00:46:11] discussion [00:46:12] to [00:46:12] everybody [00:46:12] it's [00:46:13] again [00:46:13] very [00:46:13] critical [00:46:14] part [00:46:14] first [00:46:14] understand [00:46:15] carefully [00:46:15] don't [00:46:16] ask [00:46:16] any [00:46:16] questions [00:46:17] once [00:46:17] it [00:46:17] is [00:46:17] over [00:46:18] then [00:46:18] you [00:46:18] can [00:46:18] go [00:46:18] for [00:46:18] the [00:46:19] questions [00:46:19] so [00:46:20] look [00:46:20] here [00:46:20] we [00:46:21] have [00:46:21] three [00:46:21] inputs [00:46:22] okay [00:46:22] so [00:46:23] we [00:46:23] have [00:46:23] three [00:46:23] inputs [00:46:24] three [00:46:25] tokens [00:46:26] in the [00:46:26] first [00:46:26] input [00:46:27] x11 [00:46:27] x12 [00:46:28] and x13 [00:46:29] okay [00:46:30] we are [00:46:32] passing to [00:46:33] the network [00:46:34] the first [00:46:34] input [00:46:35] we can [00:46:36] start with [00:46:36] the time [00:46:37] 20 or [00:46:38] t1 [00:46:38] it doesn't [00:46:39] make any [00:46:39] big difference [00:46:40] the first [00:46:41] input we [00:46:42] have to [00:46:42] give [00:46:42] then second [00:46:43] input we [00:46:43] have to [00:46:44] give [00:46:44] then the [00:46:44] third [00:46:45] token [00:46:45] we have [00:46:46] to [00:46:46] give [00:46:46] okay [00:46:47] so [00:46:48] what is [00:46:49] happening [00:46:50] it's very [00:46:50] important [00:46:51] please [00:46:52] everybody [00:46:52] so [00:46:53] what is [00:46:54] the [00:46:54] terminological [00:46:55] time [00:46:56] t1 [00:46:57] means [00:46:57] first [00:46:57] time [00:46:58] so [00:46:58] don't [00:46:58] confuse [00:46:59] with [00:46:59] the [00:46:59] sometime [00:47:00] i'm [00:47:00] using [00:47:00] time [00:47:00] 20 [00:47:01] sometime [00:47:01] i'm [00:47:02] using [00:47:02] the [00:47:02] time [00:47:02] t1 [00:47:03] so [00:47:03] here [00:47:03] time [00:47:04] t1 [00:47:04] means [00:47:04] the [00:47:04] first [00:47:05] time [00:47:05] i'm [00:47:05] just [00:47:06] starting [00:47:07] the [00:47:07] training [00:47:07] so [00:47:08] suppose [00:47:09] this [00:47:09] is [00:47:10] your [00:47:10] network [00:47:11] agree [00:47:11] i'm [00:47:12] passing [00:47:13] x11 [00:47:13] first [00:47:14] token [00:47:15] through [00:47:16] the [00:47:16] weights [00:47:16] w1 [00:47:18] means [00:47:18] weights [00:47:19] between [00:47:19] input [00:47:20] layer [00:47:20] and [00:47:20] the [00:47:20] hidden [00:47:20] layer [00:47:21] it [00:47:21] is [00:47:21] clear [00:47:21] yeah [00:47:25] first [00:47:25] input [00:47:26] this [00:47:27] is [00:47:27] the [00:47:28] weights [00:47:28] between [00:47:28] hidden [00:47:28] layer [00:47:29] input [00:47:30] layer [00:47:31] and [00:47:31] the [00:47:31] hidden [00:47:31] layer [00:47:31] it [00:47:33] will [00:47:34] go to [00:47:34] the [00:47:34] hidden [00:47:34] layer [00:47:34] hidden [00:47:35] layer [00:47:36] will [00:47:36] give [00:47:36] you [00:47:36] output [00:47:37] hidden [00:47:38] layer [00:47:38] output [00:47:38] i'm [00:47:39] going [00:47:39] to [00:47:39] store [00:47:39] in [00:47:40] the [00:47:40] vector [00:47:40] o [00:47:40] ok [00:47:42] so [00:47:43] for [00:47:44] example [00:47:45] this [00:47:48] is [00:47:49] hidden [00:47:51] layer [00:47:51] i'm [00:47:55] passing [00:47:55] x11 [00:47:56] through [00:47:57] w1 [00:47:58] matrix [00:47:58] the [00:48:00] way [00:48:01] you can [00:48:01] present [00:48:02] this [00:48:02] w1 [00:48:02] matrix [00:48:03] it [00:48:04] will [00:48:05] give [00:48:05] you [00:48:05] output [00:48:06] i'm [00:48:07] going [00:48:07] to [00:48:07] save [00:48:08] this [00:48:08] output [00:48:08] into [00:48:09] the [00:48:09] into [00:48:10] weight [00:48:12] matrix [00:48:13] or [00:48:14] the [00:48:14] vector [00:48:14] you can [00:48:14] say [00:48:15] o1 [00:48:16] agree [00:48:17] so [00:48:19] what [00:48:19] will [00:48:19] the [00:48:20] size [00:48:20] of [00:48:20] o1 [00:48:20] only [00:48:22] 3 [00:48:22] because [00:48:23] 3 [00:48:23] neurons [00:48:24] each [00:48:25] neurons [00:48:25] output [00:48:26] i'm [00:48:26] going [00:48:26] to [00:48:27] save [00:48:27] a [00:48:27] vector [00:48:28] o [00:48:28] is [00:48:29] it [00:48:29] clear [00:48:30] yeah [00:48:32] now [00:48:34] next [00:48:34] time [00:48:35] stamp [00:48:35] next [00:48:37] time [00:48:37] stamp [00:48:38] so [00:48:39] the [00:48:39] output [00:48:40] of [00:48:40] this [00:48:41] will [00:48:41] go [00:48:42] to [00:48:42] the [00:48:42] same [00:48:43] hidden [00:48:43] layer [00:48:43] same [00:48:44] hidden [00:48:44] layer [00:48:45] okay [00:48:47] i'm [00:48:47] explaining [00:48:48] with [00:48:48] is like [00:48:49] a [00:48:49] weight [00:48:50] matrix [00:48:50] here [00:48:51] h1 [00:48:52] so [00:48:52] this [00:48:52] is [00:48:52] the [00:48:53] weight [00:48:53] matrix [00:48:53] between [00:48:54] the [00:48:54] loop [00:48:55] this [00:48:55] is [00:48:56] weight [00:48:56] matrix [00:48:56] between [00:48:57] the [00:48:57] input [00:48:58] and [00:48:58] the [00:48:58] hidden [00:48:58] layer [00:48:59] agree [00:49:00] so [00:49:03] now [00:49:06] we [00:49:06] have [00:49:06] a [00:49:07] understand [00:49:10] the [00:49:10] second [00:49:10] timestamp [00:49:11] the [00:49:11] new [00:49:11] input [00:49:12] x12 [00:49:12] from [00:49:13] the [00:49:13] data [00:49:14] x12 [00:49:15] from [00:49:16] the [00:49:16] data [00:49:16] and [00:49:17] one [00:49:17] input [00:49:18] is [00:49:18] coming [00:49:18] from [00:49:18] the [00:49:19] previous [00:49:19] timestamp [00:49:20] or [00:49:20] hidden [00:49:20] state [00:49:21] o1 [00:49:21] okay [00:49:22] so [00:49:23] now [00:49:23] in [00:49:24] this [00:49:24] time [00:49:26] we [00:49:26] have [00:49:26] two [00:49:26] input [00:49:27] previous [00:49:28] loop [00:49:29] input [00:49:30] and [00:49:30] the [00:49:30] input [00:49:31] from [00:49:31] the [00:49:31] data [00:49:32] set [00:49:32] okay [00:49:33] so [00:49:34] now [00:49:34] look over [00:49:35] here [00:49:35] this [00:49:35] is a [00:49:36] very [00:49:36] important [00:49:37] formula [00:49:38] how to [00:49:39] calculate [00:49:39] the [00:49:40] output [00:49:40] of [00:49:40] the [00:49:41] hidden [00:49:41] layer [00:49:41] i think [00:49:42] everybody [00:49:42] know [00:49:43] how to [00:49:44] calculate [00:49:44] the [00:49:44] output [00:49:45] of [00:49:45] the [00:49:45] hidden [00:49:45] layer [00:49:45] simply [00:49:46] this [00:49:47] is a [00:49:48] net [00:49:48] input [00:49:50] multiply [00:49:51] with [00:49:51] the [00:49:52] weight [00:49:52] matrix [00:49:52] simple [00:49:53] neural [00:49:53] network [00:49:54] formula [00:49:54] simple [00:49:54] perceptron [00:49:55] okay [00:49:56] so [00:49:57] this [00:49:57] net [00:49:58] input [00:49:58] net [00:49:58] input [00:49:59] i am [00:49:59] passing [00:49:59] with [00:50:00] the [00:50:00] activation [00:50:00] function [00:50:00] of [00:50:01] the [00:50:01] hidden [00:50:01] layer [00:50:01] agree [00:50:02] so [00:50:03] output [00:50:04] of [00:50:04] this [00:50:04] process [00:50:06] it will [00:50:06] give you [00:50:07] output [00:50:07] of the [00:50:07] hidden [00:50:08] layer [00:50:08] got it [00:50:09] the [00:50:09] three [00:50:09] outputs [00:50:09] got it [00:50:11] is it [00:50:15] clear or [00:50:15] not [00:50:16] this [00:50:18] and [00:50:21] suppose [00:50:21] input [00:50:22] is [00:50:22] here [00:50:26] 1 [00:50:28] 0 [00:50:29] size [00:50:30] input [00:50:30] is 3 [00:50:30] so we [00:50:31] have [00:50:31] also [00:50:32] weight [00:50:32] okay [00:50:33] like this [00:50:34] w1 [00:50:35] w2 [00:50:36] w3 [00:50:38] so what [00:50:39] is the [00:50:39] output [00:50:40] of [00:50:40] neuron [00:50:41] is [00:50:41] weighted [00:50:43] sum [00:50:46] and this [00:50:47] is called [00:50:48] net [00:50:48] input [00:50:49] it is [00:50:50] very [00:50:50] basic [00:50:51] and net [00:50:52] input [00:50:52] we have [00:50:52] to pass [00:50:53] to the [00:50:53] activation [00:50:53] function [00:50:54] agree [00:50:54] so it [00:50:55] will give [00:50:56] you output [00:50:56] of each [00:50:57] neuron [00:50:57] that i am [00:50:58] going to [00:50:58] save with [00:50:59] the [00:50:59] vector [00:51:00] o [00:51:01] so this [00:51:05] i have [00:51:06] extended the [00:51:06] formula [00:51:07] input was [00:51:09] 1 [00:51:09] 0 [00:51:12] that is [00:51:13] a token [00:51:13] first token [00:51:14] movie that [00:51:15] was vectorized [00:51:16] with [00:51:17] 1 [00:51:17] 0 [00:51:18] so each [00:51:20] input [00:51:20] with associated [00:51:20] with each input [00:51:22] with associated [00:51:22] with each input [00:51:23] associated [00:51:24] with you have [00:51:24] to pass [00:51:25] so this is [00:51:26] will give you [00:51:26] net input [00:51:27] net input to the [00:51:28] activation function [00:51:28] of the same [00:51:29] neuron it will [00:51:30] give you output [00:51:30] got it [00:51:32] now here [00:51:37] two inputs [00:51:37] are coming [00:51:38] agree [00:51:38] so two inputs [00:51:39] are coming [00:51:40] first input [00:51:41] from the [00:51:42] data set [00:51:42] x12 [00:51:43] and another [00:51:44] input from [00:51:45] the previous [00:51:46] hidden state [00:51:47] and both [00:51:49] the input [00:51:50] we have to [00:51:50] multiply with [00:51:52] their weights [00:51:52] both input [00:51:53] we have to [00:51:53] multiply with [00:51:54] their weights [00:51:54] so where are [00:51:56] the weights [00:51:56] okay [00:51:57] so [00:51:58] let me [00:51:59] explain [00:52:00] this last [00:52:01] important part [00:52:02] I am explaining [00:52:02] this is the [00:52:03] first version [00:52:04] okay [00:52:04] then looping [00:52:06] okay [00:52:07] looping [00:52:08] so this weight [00:52:10] I am representing [00:52:11] with the H [00:52:12] agree [00:52:13] and this is [00:52:17] the input [00:52:18] x12 [00:52:18] coming from [00:52:19] the data set [00:52:20] I am representing [00:52:21] with the [00:52:22] W [00:52:23] this weight [00:52:23] matrix is [00:52:24] W [00:52:24] this weight [00:52:25] matrix is [00:52:26] H [00:52:26] input [00:52:27] here [00:52:28] this is [00:52:29] the O [00:52:29] here [00:52:30] this is [00:52:32] the X [00:52:33] suppose [00:52:34] this is [00:52:34] X [00:52:35] so it is [00:52:36] going over [00:52:37] here [00:52:37] it will have [00:52:38] activation function [00:52:39] F [00:52:39] first [00:52:41] net input [00:52:42] means [00:52:43] X dot [00:52:44] W [00:52:44] plus [00:52:46] other input [00:52:47] O dot [00:52:48] H [00:52:48] O dot [00:52:50] H [00:52:50] agree [00:52:51] you solve [00:52:52] it [00:52:52] you will find [00:52:54] the output [00:52:55] of the second [00:52:56] iteration [00:52:56] that's it [00:52:59] is written [00:53:00] in formula [00:53:01] data set [00:53:02] coming input [00:53:03] from the data [00:53:04] set [00:53:04] weight matrix [00:53:05] previous layer [00:53:07] output [00:53:08] and weight [00:53:09] matrix [00:53:09] looping [00:53:10] weight matrix [00:53:11] agree [00:53:12] similarly it [00:53:13] will go [00:53:14] layer by layer [00:53:15] everything I have [00:53:16] written [00:53:16] okay [00:53:18] any question [00:53:20] at this [00:53:22] moment [00:53:22] now any [00:53:30] question [00:53:30] now you [00:53:31] can ask [00:53:31] whatever it [00:53:32] is visible [00:53:33] in the screen [00:53:34] based on that [00:53:34] you can ask [00:53:35] the question [00:53:35] okay [00:53:44] one thing [00:53:44] is missing [00:53:45] okay [00:53:46] one thing [00:53:47] is missing [00:53:48] where is the [00:53:49] second input [00:53:49] at the first [00:53:51] time [00:53:51] because I [00:53:52] what I talk [00:53:52] about in [00:53:53] every time [00:53:54] hidden layer [00:53:55] will have [00:53:55] two inputs [00:53:56] okay [00:53:56] so I have [00:53:57] not mentioned [00:53:58] here [00:53:58] actually it [00:53:59] is there [00:54:00] actually it [00:54:01] is there [00:54:01] yes [00:54:02] answer is [00:54:03] here [00:54:03] look [00:54:04] we assume [00:54:05] first time [00:54:06] literally [00:54:07] it don't [00:54:08] have any [00:54:08] previous [00:54:09] layer output [00:54:10] there is [00:54:11] no hidden [00:54:11] state [00:54:12] but we [00:54:12] assume [00:54:13] here [00:54:13] so it [00:54:14] is a [00:54:14] random [00:54:15] number [00:54:15] okay [00:54:16] so ultimate [00:54:17] calculation [00:54:19] and matrix [00:54:20] of formula [00:54:21] in every [00:54:22] time [00:54:22] size wise [00:54:22] it will [00:54:23] be sent [00:54:23] so actual [00:54:24] actually this [00:54:26] thing is going [00:54:26] to happen [00:54:27] these are [00:54:27] the way [00:54:28] so previous [00:54:29] things if it [00:54:30] is clear to [00:54:31] you these [00:54:31] are the red [00:54:32] color points [00:54:32] I have written [00:54:33] these we have [00:54:33] to consider as [00:54:34] a random [00:54:35] input [00:54:35] we assume [00:54:36] that we have [00:54:36] previous states [00:54:37] and the [00:54:37] random output [00:54:38] of the [00:54:39] hidden layer [00:54:40] neuron we [00:54:40] have to [00:54:40] consider as [00:54:41] got it [00:54:42] random output [00:54:44] anything [00:54:46] 0.11111 [00:54:47] through whatever [00:54:48] the three value [00:54:49] you can consider [00:54:50] if the size [00:54:51] of hidden layer [00:54:52] is three [00:54:52] so assume [00:54:53] that [00:54:53] yeah [00:54:57] so first [00:54:58] time input [00:54:58] is x11 [00:54:59] there is [00:55:02] no [00:55:02] actually [00:55:03] previous [00:55:05] previous loop [00:55:06] so you [00:55:06] can assume [00:55:06] any of [00:55:07] the output [00:55:08] from the [00:55:08] previous layer [00:55:10] any output [00:55:10] you can assume [00:55:11] okay [00:55:12] so that is [00:55:13] called random [00:55:14] output [00:55:14] for the next [00:55:16] time we have [00:55:16] a correct [00:55:17] output [00:55:17] or correct [00:55:18] output [00:55:18] which means [00:55:19] measured output [00:55:20] okay [00:55:23] so that was [00:55:24] the part of [00:55:26] the RNN [00:55:26] I have [00:55:26] covered it [00:55:27] it is not [00:55:28] enough [00:55:29] I know [00:55:29] just I have [00:55:31] given the [00:55:31] idea so that [00:55:32] if you refer [00:55:33] any of the [00:55:34] book [00:55:34] video [00:55:34] channels [00:55:35] other website [00:55:36] you will able [00:55:37] to understand [00:55:38] the discussion [00:55:38] and where [00:55:41] rarely you will [00:55:42] find [00:55:42] that detailed [00:55:44] discussion [00:55:44] okay [00:55:45] got it [00:55:48] yeah [00:55:48] so normally [00:55:48] you will find [00:55:49] this kind [00:55:50] of [00:55:50] diagram [00:55:52] or symbol [00:55:53] for represent [00:55:54] the RNN [00:55:54] so let me [00:55:55] explain [00:55:56] that is the [00:55:56] most famous [00:55:57] is this one [00:55:58] all are same [00:55:59] what is happening [00:56:00] first timestamp [00:56:02] I'm giving the [00:56:04] input from the [00:56:04] dataset [00:56:06] then you have [00:56:08] output that I [00:56:08] call h0 [00:56:09] hidden state [00:56:10] output [00:56:10] then next [00:56:12] timestamp [00:56:12] next input [00:56:13] from the [00:56:13] dataset [00:56:14] and output [00:56:16] from the [00:56:16] previous state [00:56:17] will become [00:56:17] input to the [00:56:18] current state [00:56:19] and like that [00:56:20] like that [00:56:20] if you are [00:56:22] giving output [00:56:23] to the next [00:56:24] layer it will [00:56:24] become y0 [00:56:25] otherwise it is [00:56:26] s0 both are [00:56:27] same [00:56:27] don't get [00:56:28] confused [00:56:28] if you want [00:56:30] to really [00:56:30] print the [00:56:30] output [00:56:31] then [00:56:32] you can [00:56:34] print output [00:56:34] as a y0 [00:56:35] otherwise you [00:56:36] can send [00:56:36] to the next [00:56:37] layer [00:56:37] or vertically [00:56:39] you can also [00:56:40] explain [00:56:40] similarly [00:56:41] vertically [00:56:41] x0 [00:56:42] then h0 [00:56:44] it will [00:56:44] become [00:56:45] input to [00:56:46] the next [00:56:46] timestamp [00:56:47] like that [00:56:48] so this [00:56:50] diagram is [00:56:50] clear to [00:56:51] everybody [00:56:51] now [00:56:51] very famous [00:56:53] way of [00:56:54] representing [00:56:54] great [00:56:58] now [00:56:59] I will [00:57:00] explain [00:57:01] okay so [00:57:01] this is [00:57:02] simple [00:57:02] already I [00:57:03] have explained [00:57:03] mathematical [00:57:04] part [00:57:04] it is not [00:57:06] important [00:57:07] yeah [00:57:07] so now [00:57:08] it's the [00:57:09] time to [00:57:09] cover the [00:57:10] type of [00:57:10] RNN [00:57:11] okay so [00:57:14] next I'm [00:57:16] going to [00:57:16] discuss about [00:57:17] the type [00:57:18] of [00:57:18] RNN [00:57:20] one to [00:57:20] one [00:57:21] one to [00:57:22] many [00:57:22] many to [00:57:23] one and [00:57:24] many to [00:57:24] many okay [00:57:25] so yeah [00:57:27] where it [00:57:28] is [00:57:28] it is [00:57:32] here [00:57:32] it's very [00:57:32] important [00:57:33] it is [00:57:36] very interesting [00:57:36] so [00:57:39] okay let [00:57:44] me explain [00:57:45] here [00:57:45] okay type [00:57:54] of [00:57:54] RNN [00:57:56] so first [00:57:59] one is [00:58:00] suppose [00:58:01] one to [00:58:01] one [00:58:02] one to [00:58:05] one [00:58:05] one to [00:58:06] one means [00:58:07] we have [00:58:09] input [00:58:10] always have [00:58:12] a [00:58:12] single input [00:58:15] we have [00:58:17] to give [00:58:17] to the [00:58:18] network [00:58:19] RNN [00:58:20] understand [00:58:21] here [00:58:21] RNN [00:58:23] is [00:58:25] here [00:58:26] giving [00:58:26] you [00:58:27] one [00:58:28] output [00:58:29] if this [00:58:30] output [00:58:30] is very [00:58:31] single [00:58:31] so that [00:58:32] is called [00:58:32] one to [00:58:33] one [00:58:33] this is [00:58:38] also called [00:58:39] vanilla [00:58:40] neural network [00:58:41] very famous [00:58:42] term [00:58:42] so somebody [00:58:43] will ask [00:58:44] what is a [00:58:45] vanilla [00:58:45] neural network [00:58:46] RNN [00:58:47] so it is [00:58:48] one to [00:58:49] one [00:58:49] we will [00:58:50] have a [00:58:51] single input [00:58:52] and [00:58:53] single output [00:58:54] another condition [00:58:55] is that [00:58:56] this single [00:58:56] input should [00:58:57] be non [00:58:58] sequential [00:58:58] it is [00:59:00] non-sequential [00:59:01] output [00:59:02] should also [00:59:03] have a [00:59:04] non-sequential [00:59:05] output [00:59:05] so actually [00:59:07] this is [00:59:08] normally [00:59:09] you can [00:59:10] think about [00:59:10] like a [00:59:11] perceptron [00:59:13] and [00:59:14] it doesn't [00:59:18] realize [00:59:20] or demonstrate [00:59:21] the real [00:59:22] power of [00:59:22] the RNN [00:59:23] so but [00:59:24] this is one [00:59:25] of the [00:59:25] fundamental [00:59:25] type of [00:59:26] neural network [00:59:28] RNN [00:59:29] okay [00:59:30] example if [00:59:31] you say [00:59:32] the left [00:59:32] hand side [00:59:33] okay [00:59:33] example is [00:59:34] what [00:59:34] in [00:59:36] vanilla neural [00:59:37] network [00:59:38] or [00:59:38] one to [00:59:38] one [00:59:39] RNN [00:59:40] we have [00:59:40] one input [00:59:41] and one [00:59:42] output at [00:59:42] a time [00:59:43] and [00:59:44] input should [00:59:45] be non-sequential [00:59:46] and output [00:59:46] should be [00:59:47] non-sequential [00:59:48] example is [00:59:48] image classification [00:59:49] so what [00:59:51] happened in [00:59:51] the image [00:59:51] classification [00:59:52] if you are [00:59:53] using the [00:59:53] RNN [00:59:54] if you [00:59:55] are using [00:59:56] otherwise [00:59:57] CNN is [00:59:58] the best [00:59:58] but just [00:59:59] for technical [01:00:00] purpose [01:00:00] if you are [01:00:01] using the [01:00:02] RNN [01:00:02] so image [01:00:03] at a time [01:00:04] how many [01:00:05] images you [01:00:05] send [01:00:06] during training [01:00:07] one [01:00:08] one image [01:00:10] at a time [01:00:10] output will [01:00:11] be what [01:00:12] either it [01:00:12] is cat [01:00:13] either it [01:00:14] is a dog [01:00:14] either it [01:00:15] is a horse [01:00:16] at a time [01:00:16] only one [01:00:17] output [01:00:18] so this [01:00:18] is one [01:00:18] to one [01:00:19] so these [01:00:20] are the [01:00:20] class [01:00:20] at a time [01:00:22] you will [01:00:22] predict [01:00:22] the single [01:00:24] class [01:00:24] we have [01:00:25] a single [01:00:26] output [01:00:26] that's why [01:00:27] it is [01:00:28] one to [01:00:28] one [01:00:28] RNN [01:00:29] ok [01:00:30] next is [01:00:31] one to [01:00:32] many [01:00:32] one to [01:00:34] many [01:00:34] means what [01:00:35] we have [01:00:36] a single [01:00:36] input [01:00:37] we have [01:00:38] a single [01:00:38] input [01:00:39] to the [01:00:40] RNN [01:00:43] will give [01:00:43] you [01:00:44] multiple [01:00:44] output [01:00:45] multiple [01:00:47] output [01:00:48] agree [01:00:48] so this [01:00:50] single [01:00:50] input [01:00:50] should be [01:00:51] a [01:00:51] non [01:00:51] sequential [01:00:52] but output [01:00:54] given by [01:00:55] your RNN [01:00:55] model must [01:00:56] be a [01:00:56] sequential [01:00:57] multiple [01:00:58] output [01:00:58] so you [01:01:00] can think [01:01:00] about how [01:01:01] it is [01:01:01] possible [01:01:01] so [01:01:02] can [01:01:04] have you [01:01:04] seen [01:01:05] this [01:01:05] application [01:01:06] of RNN [01:01:07] image [01:01:07] captioning [01:01:08] image [01:01:10] captioning [01:01:10] so what [01:01:11] happen in [01:01:11] the image [01:01:12] captioning [01:01:12] you feed [01:01:13] an image [01:01:14] to the [01:01:16] RNN [01:01:16] model [01:01:17] the single [01:01:19] image [01:01:19] as a [01:01:20] time [01:01:20] single [01:01:20] image [01:01:21] a single [01:01:21] input [01:01:22] RNN [01:01:23] will create [01:01:24] a caption [01:01:24] caption [01:01:24] means [01:01:25] text [01:01:26] about the [01:01:27] image [01:01:28] like [01:01:29] image [01:01:30] a cat [01:01:33] is [01:01:34] sitting [01:01:36] on [01:01:38] table [01:01:40] that is [01:01:41] a very [01:01:42] famous [01:01:43] application [01:01:43] of the [01:01:44] RNN [01:01:44] whatever [01:01:45] happening [01:01:45] in the [01:01:46] image [01:01:46] it can [01:01:46] explain [01:01:47] in the [01:01:48] term [01:01:48] of [01:01:48] text [01:01:48] so here [01:01:49] multiple [01:01:50] output [01:01:50] agree [01:01:50] we have [01:01:51] multiple [01:01:52] output [01:01:52] multiple [01:01:52] tokens [01:01:53] and this [01:01:54] would be [01:01:54] a [01:01:55] sequence [01:01:55] here [01:01:55] one to [01:01:57] many is [01:01:58] clear to [01:01:58] everybody [01:01:58] now [01:01:58] so [01:02:02] yeah [01:02:03] second [01:02:03] is [01:02:04] one to [01:02:04] many [01:02:04] this [01:02:06] image [01:02:06] captioning [01:02:07] or [01:02:08] many [01:02:08] other [01:02:09] examples [01:02:10] now [01:02:11] many [01:02:12] to [01:02:12] one [01:02:12] many [01:02:14] to [01:02:14] mean [01:02:14] many [01:02:14] to [01:02:15] one [01:02:15] means [01:02:16] in [01:02:16] RNN [01:02:16] we [01:02:16] have [01:02:17] multiple [01:02:18] inputs [01:02:19] we have [01:02:19] multiple [01:02:20] inputs [01:02:20] we have [01:02:22] many [01:02:23] input [01:02:24] to [01:02:25] the [01:02:25] RNN [01:02:26] and RNN [01:02:28] will give [01:02:28] you single [01:02:28] output [01:02:29] we have [01:02:30] a single [01:02:30] output [01:02:30] so it [01:02:31] should be [01:02:32] a sequential [01:02:32] input [01:02:33] should be [01:02:33] a sequential [01:02:34] and output [01:02:34] should be [01:02:35] non sequential [01:02:36] okay [01:02:37] what are [01:02:37] the applications [01:02:38] are there [01:02:38] sentiment [01:02:40] analysis [01:02:40] sentiment [01:02:43] analysis [01:02:43] what happen [01:02:44] we give [01:02:45] the feedback [01:02:45] feedback [01:02:47] in the [01:02:48] term of [01:02:49] or review [01:02:50] in the [01:02:50] term of [01:02:51] review [01:02:51] text [01:02:52] these are [01:02:53] the sentences [01:02:54] you feed [01:02:55] to the [01:02:55] RNN [01:02:57] will give [01:02:57] you answer [01:02:57] it is [01:02:58] either [01:02:59] it is a [01:03:00] positive [01:03:00] sentiment [01:03:01] it is a [01:03:01] negative [01:03:02] sentiment [01:03:02] or it [01:03:03] is a [01:03:03] neutral [01:03:04] okay [01:03:06] so output [01:03:06] is what [01:03:07] a class [01:03:07] a single [01:03:09] class [01:03:09] that's [01:03:10] why [01:03:10] output [01:03:11] is [01:03:11] single [01:03:11] so this [01:03:12] concept [01:03:13] is called [01:03:13] one to [01:03:14] many to [01:03:15] one [01:03:16] okay [01:03:16] now [01:03:18] we have [01:03:20] two versions [01:03:21] of many to [01:03:22] many and [01:03:22] many to [01:03:23] many we [01:03:23] have two [01:03:23] versions [01:03:24] okay [01:03:24] it's very [01:03:25] interesting [01:03:25] please [01:03:26] it's very [01:03:27] interesting [01:03:27] understand here [01:03:28] many to [01:03:29] many [01:03:30] to [01:03:31] many [01:03:32] I am [01:03:33] going to [01:03:33] discuss [01:03:34] about [01:03:34] version [01:03:34] one [01:03:35] version [01:03:36] one says [01:03:36] that [01:03:37] I am [01:03:38] giving [01:03:38] I am [01:03:39] giving [01:03:40] multiple [01:03:41] input [01:03:41] multiple [01:03:42] input [01:03:43] multiple [01:03:44] input [01:03:44] like that [01:03:45] from the [01:03:45] data set [01:03:46] assume that [01:03:46] it is a [01:03:47] text [01:03:48] okay [01:03:50] it is a [01:03:51] text [01:03:51] once all [01:03:53] the input [01:03:54] is [01:03:54] processed [01:03:56] by [01:03:56] in one [01:03:58] go [01:03:58] suppose [01:03:59] sentence [01:03:59] is given [01:04:00] once [01:04:01] your input [01:04:02] is ended [01:04:03] then your [01:04:04] model will [01:04:05] start giving [01:04:06] output like [01:04:07] y1 [01:04:08] y2 [01:04:10] y3 [01:04:11] and [01:04:12] yn [01:04:13] agree [01:04:14] like this [01:04:17] so this [01:04:18] structure is [01:04:19] what [01:04:19] we are [01:04:20] giving [01:04:20] many input [01:04:21] this is [01:04:22] again a [01:04:22] sequential [01:04:23] because [01:04:23] text [01:04:24] we are [01:04:25] giving [01:04:26] output at [01:04:26] a time [01:04:26] multiple [01:04:27] output [01:04:27] it is [01:04:28] again a [01:04:28] sequential [01:04:29] text [01:04:29] agree [01:04:30] so this [01:04:31] is called [01:04:31] many to [01:04:31] many [01:04:32] you can [01:04:33] recall the [01:04:34] application of [01:04:34] machine [01:04:35] translation [01:04:35] machine [01:04:38] translation [01:04:38] how it [01:04:39] work [01:04:39] suppose you [01:04:41] are giving [01:04:42] you have [01:04:42] given a [01:04:43] text in [01:04:43] Hindi [01:04:44] agree [01:04:45] complete [01:04:46] sentence [01:04:47] first you [01:04:47] have to [01:04:48] provide [01:04:48] once complete [01:04:50] sentence has [01:04:51] been entered [01:04:52] then your [01:04:53] model will [01:04:53] start [01:04:54] converting [01:04:55] sentence in [01:04:56] one language [01:04:57] to the [01:04:58] another [01:04:58] language [01:04:59] agree [01:05:00] yeah so [01:05:04] machine [01:05:06] translation [01:05:06] or language [01:05:07] translation [01:05:07] is an [01:05:08] example [01:05:08] version 2 [01:05:10] many to [01:05:12] many [01:05:12] version 2 [01:05:14] many to [01:05:15] many so [01:05:16] what is [01:05:17] happening over [01:05:17] here the [01:05:18] same example [01:05:18] I am taking [01:05:19] you have a [01:05:20] input x1 [01:05:21] x2 [01:05:22] x3 [01:05:24] dot dot [01:05:24] x1 [01:05:25] many input [01:05:26] at a [01:05:26] time [01:05:26] you are [01:05:28] giving to [01:05:29] the model [01:05:29] if model [01:05:32] is giving [01:05:33] output [01:05:34] the same [01:05:35] time [01:05:35] the moment [01:05:37] you give [01:05:38] the input [01:05:38] start giving [01:05:39] the input [01:05:40] you should [01:05:40] not wait [01:05:40] to end [01:05:41] it [01:05:41] this is [01:05:43] called [01:05:44] another way [01:05:45] okay [01:05:47] oh one [01:05:48] thing I [01:05:49] forget [01:05:49] this [01:05:49] version 1 [01:05:51] this version [01:05:52] 1 [01:05:53] this version [01:05:54] 1 is [01:05:54] nothing but [01:05:55] a simply [01:05:55] encoder [01:05:56] decoder [01:05:57] encoder [01:05:59] decoder [01:06:00] have you [01:06:00] listened this [01:06:00] name [01:06:01] this is [01:06:02] encoder [01:06:02] decoder [01:06:03] first version [01:06:04] of many [01:06:05] to many [01:06:05] where first [01:06:07] input let it [01:06:08] completely given [01:06:09] to the model [01:06:10] later it will [01:06:10] start giving [01:06:10] the output [01:06:11] we call it [01:06:11] encoder [01:06:12] decoder [01:06:12] okay [01:06:15] so this [01:06:16] this [01:06:17] another [01:06:18] version [01:06:18] so [01:06:19] example [01:06:19] working [01:06:20] example [01:06:20] is what [01:06:21] frame [01:06:22] level [01:06:22] frame [01:06:24] level [01:06:26] video [01:06:28] classification [01:06:30] video [01:06:31] classification [01:06:32] agree [01:06:32] for example [01:06:33] video contain [01:06:35] a lot of [01:06:35] frame [01:06:36] a single [01:06:36] video contain [01:06:37] a lot of [01:06:37] frame [01:06:37] suppose this [01:06:38] is a [01:06:38] frame 1 [01:06:39] this is a [01:06:40] frame 2 [01:06:40] this is a [01:06:41] frame 3 [01:06:42] just hypothetical [01:06:43] example I [01:06:44] am making [01:06:44] in the [01:06:45] frame 1 [01:06:46] suppose a [01:06:46] cat is [01:06:47] visible [01:06:47] frame 2 [01:06:49] again cat [01:06:50] is visible [01:06:50] frame 3 [01:06:52] dog is [01:06:52] visible [01:06:53] frame 4 [01:06:54] horse is [01:06:55] visible [01:06:56] you give [01:06:56] to the [01:06:56] model [01:06:57] frame wise [01:07:00] model will [01:07:01] predict it [01:07:02] is a [01:07:02] cat [01:07:02] it is [01:07:03] again a [01:07:04] cat [01:07:04] it is a [01:07:05] dog [01:07:06] it is a [01:07:06] horse [01:07:07] got it [01:07:08] so this [01:07:09] is called [01:07:10] a second [01:07:11] version of [01:07:11] many to [01:07:12] many [01:07:12] RNA [01:07:12] sequence [01:07:16] to [01:07:17] sequence [01:07:17] same [01:07:17] this [01:07:18] encoder [01:07:18] decoder [01:07:19] sanjay [01:07:19] this is [01:07:20] many to [01:07:21] many [01:07:21] sanjay [01:07:22] you have [01:07:24] written about [01:07:24] that encoder [01:07:25] decoder [01:07:26] first version [01:07:26] of many [01:07:27] to many [01:07:27] got it [01:07:29] we call it [01:07:31] sequence to [01:07:32] sequence [01:07:32] please [01:07:33] yeah [01:07:35] so the [01:07:36] sequence to [01:07:36] sequence is [01:07:37] very famous [01:07:37] name [01:07:38] so encoder [01:07:39] decoder [01:07:40] or we [01:07:41] also call it [01:07:42] sequence to [01:07:43] sequence [01:07:43] very famous [01:07:44] name [01:07:44] sequence to [01:07:46] sequence [01:07:47] version [01:07:48] please remember [01:07:49] this word [01:07:50] okay [01:07:56] so I have [01:07:58] covered it [01:07:58] yeah [01:07:58] it's very [01:07:59] important [01:08:00] now I [01:08:01] am just [01:08:02] I am [01:08:04] sorry loop [01:08:04] is still there [01:08:05] in every [01:08:06] process sequence [01:08:07] yes loop [01:08:07] will be [01:08:08] there [01:08:08] loop [01:08:08] will be [01:08:08] there [01:08:08] sorry [01:08:09] you are [01:08:09] correct [01:08:09] you are [01:08:10] correct [01:08:10] yeah [01:08:12] loop [01:08:14] always be [01:08:14] there [01:08:15] always be [01:08:15] there [01:08:16] so whenever [01:08:17] I am [01:08:17] writing this [01:08:18] this is the [01:08:18] RNA [01:08:19] architecture [01:08:19] it can [01:08:20] have a [01:08:20] single [01:08:20] hidden [01:08:21] layer [01:08:21] it can [01:08:21] have a [01:08:22] multiple [01:08:22] hidden [01:08:22] layer [01:08:22] got it [01:08:23] this is [01:08:24] total [01:08:25] RNA [01:08:25] architecture [01:08:26] yeah [01:08:26] thank [01:08:28] you [01:08:28] so now [01:08:29] I am [01:08:29] bringing [01:08:29] you [01:08:30] from [01:08:30] RNN [01:08:31] to the [01:08:33] LSTM [01:08:34] next [01:08:35] model [01:08:36] so there [01:08:36] are some [01:08:37] problem [01:08:37] with the [01:08:38] RNN [01:08:38] there are [01:08:39] some [01:08:39] issues [01:08:39] with the [01:08:41] RNN [01:08:41] those issues [01:08:42] can be [01:08:42] solved [01:08:42] in the [01:08:43] LSTM [01:08:44] so let [01:08:45] me explain [01:08:45] the background [01:08:46] about the [01:08:46] issues [01:08:47] okay so [01:08:50] Anujay I [01:08:51] will I [01:08:52] have a [01:08:52] plan to [01:08:53] cover encoder [01:08:54] and decoder [01:08:54] okay so [01:08:55] in the [01:08:56] coming classes [01:08:56] your answer [01:08:57] will be [01:08:57] given at [01:08:58] that time [01:08:58] got it [01:08:59] so in [01:09:02] there are [01:09:03] two kind [01:09:03] of problems [01:09:04] I think I [01:09:05] have covered [01:09:06] it earlier [01:09:06] or not [01:09:07] vanishing [01:09:08] gradient [01:09:10] problem [01:09:10] or [01:09:14] exploiting [01:09:15] gradient [01:09:16] problem [01:09:16] exploiting [01:09:19] gradient [01:09:19] problem [01:09:20] very famous [01:09:20] questions [01:09:21] and favorite [01:09:22] questions in [01:09:22] the interview [01:09:22] it is [01:09:24] the [01:09:25] characteristics [01:09:26] or [01:09:29] problem [01:09:30] that can [01:09:32] with [01:09:33] any [01:09:34] deep [01:09:36] learning [01:09:36] model [01:09:36] so do [01:09:37] not [01:09:38] consider [01:09:39] this is the [01:09:40] concept of [01:09:40] the RNN [01:09:41] it is the [01:09:42] concept of [01:09:42] machine learning [01:09:43] these two [01:09:44] kind of [01:09:44] problems [01:09:45] any deep [01:09:46] learning model [01:09:46] can suffer [01:09:47] understand [01:09:48] any deep [01:09:49] learning model [01:09:50] can suffer [01:09:50] but [01:09:51] RNN [01:09:52] suffer with [01:09:53] this problem [01:09:54] with very [01:09:55] frequently [01:09:56] very [01:09:58] frequently [01:09:59] that is a [01:10:00] problem [01:10:00] any you [01:10:01] cannot say [01:10:02] there is [01:10:02] there is a [01:10:03] there is a one [01:10:03] model that [01:10:04] never suffer [01:10:04] from this [01:10:05] kind of [01:10:06] gradient descent [01:10:06] gradient [01:10:07] vanishing [01:10:08] or [01:10:09] vanishing [01:10:10] gradient [01:10:11] or [01:10:11] recording [01:10:12] gradient [01:10:12] involved [01:10:12] there may be [01:10:13] any model [01:10:14] can suffer [01:10:15] with this [01:10:15] problem [01:10:15] but RNN [01:10:16] suffer very [01:10:17] frequently [01:10:17] why [01:10:18] so what are [01:10:19] the problem [01:10:20] first [01:10:20] recall the [01:10:22] back propagation [01:10:23] recall the [01:10:25] back [01:10:25] propagation [01:10:28] in the [01:10:29] back propagation [01:10:30] what happen [01:10:30] we start [01:10:32] updating [01:10:33] the weight [01:10:34] we start [01:10:34] updating the [01:10:37] weight [01:10:38] okay [01:10:39] understand [01:10:41] RNN [01:10:42] suppose [01:10:42] let me [01:10:43] take the [01:10:44] example of [01:10:44] sentence [01:10:45] okay [01:10:46] sentence [01:10:46] suppose [01:10:47] sentence [01:10:48] size is [01:10:48] 30 [01:10:49] agree [01:10:49] a very [01:10:50] simple [01:10:51] sentence [01:10:51] size is [01:10:52] 30 [01:10:52] and the [01:10:54] network [01:10:54] RNN [01:10:56] network [01:10:56] suppose [01:10:57] have a [01:10:57] 5 hidden [01:10:58] layer [01:10:58] how many [01:10:59] hidden [01:10:59] layer [01:11:00] 5 hidden [01:11:01] layer [01:11:01] okay [01:11:02] so [01:11:03] first hidden [01:11:07] layer [01:11:07] how many [01:11:09] time [01:11:09] the loop [01:11:10] will be [01:11:10] executed [01:11:11] how many [01:11:12] times the [01:11:12] loop will [01:11:13] be executed [01:11:13] 30 [01:11:15] times [01:11:15] second [01:11:17] hidden [01:11:17] layer [01:11:18] this again [01:11:21] executed [01:11:22] 30 [01:11:23] times [01:11:23] similarly [01:11:25] for [01:11:25] H3 [01:11:26] very [01:11:27] very small [01:11:28] network [01:11:28] I have [01:11:29] taken [01:11:29] 5 hidden [01:11:30] layers [01:11:30] very small [01:11:31] network [01:11:32] I have [01:11:32] taken [01:11:33] this is [01:11:34] 30 [01:11:34] times [01:11:34] 30 [01:11:35] times [01:11:35] this is [01:11:36] 30 [01:11:36] times [01:11:36] so [01:11:37] between [01:11:37] these [01:11:38] how many [01:11:38] loops are [01:11:39] there [01:11:39] 150 [01:11:43] times [01:11:44] agree [01:11:44] 150 [01:11:46] times [01:11:46] so [01:11:48] assume [01:11:49] that [01:11:50] 150 [01:11:52] times [01:11:53] ultimate [01:11:56] a lot [01:11:57] of loop [01:11:57] a lot [01:11:58] of loop [01:11:58] lot of [01:11:58] loops [01:11:59] are there [01:11:59] and [01:12:00] every [01:12:01] loop [01:12:01] we need [01:12:02] to [01:12:02] during [01:12:02] every loop [01:12:03] we need [01:12:04] to update [01:12:04] the weight [01:12:05] we need [01:12:05] to [01:12:05] update [01:12:07] the [01:12:08] weight [01:12:08] in [01:12:09] reverse [01:12:09] order [01:12:10] so [01:12:11] look how [01:12:11] many [01:12:12] times [01:12:12] we have [01:12:12] to update [01:12:12] the weight [01:12:13] very small [01:12:13] network [01:12:14] we have to [01:12:14] small [01:12:15] network [01:12:15] suppose [01:12:16] this [01:12:16] is [01:12:19] so we have [01:12:22] to update [01:12:23] the weight [01:12:23] here [01:12:23] first time [01:12:24] then we [01:12:25] have to [01:12:26] update [01:12:26] the weight [01:12:26] we update [01:12:28] the weights [01:12:29] we have to [01:12:31] update the [01:12:31] weights [01:12:31] similarly [01:12:32] how many [01:12:34] times [01:12:34] dot dot dot [01:12:35] 150 [01:12:37] times at [01:12:37] least [01:12:38] is it [01:12:39] clear [01:12:40] back [01:12:40] propagation [01:12:41] is clear [01:12:41] to everybody [01:12:42] and how [01:12:48] to update [01:12:49] the weight [01:12:49] w [01:12:52] new [01:12:53] will be [01:12:53] I think [01:12:54] everybody [01:12:54] agree [01:12:54] w old [01:12:55] plus [01:12:56] alpha [01:12:57] gradient [01:12:59] of the [01:12:59] loss [01:12:59] with respect [01:13:00] to the [01:13:00] weight [01:13:01] okay [01:13:02] yes [01:13:05] Anuja [01:13:06] yes [01:13:07] during the [01:13:07] back [01:13:07] propagation [01:13:08] your [01:13:09] model [01:13:10] during the [01:13:11] forward [01:13:11] propagation [01:13:12] remember [01:13:12] everything [01:13:13] how many [01:13:14] times [01:13:14] you have [01:13:15] executed [01:13:15] the [01:13:15] loop [01:13:16] it will [01:13:16] remember [01:13:17] it will [01:13:18] maintain [01:13:18] during [01:13:19] back [01:13:19] propagation [01:13:20] same [01:13:20] number [01:13:20] of [01:13:20] time [01:13:21] you have [01:13:21] to [01:13:21] update [01:13:22] the [01:13:22] weights [01:13:22] so [01:13:23] Anuja [01:13:23] you are [01:13:23] correct [01:13:24] is it [01:13:26] clear [01:13:27] Anuja [01:13:27] yes [01:13:30] so [01:13:32] you just [01:13:33] think about [01:13:34] how many [01:13:34] loops will [01:13:35] be there [01:13:35] so if [01:13:37] there are [01:13:37] 30 [01:13:38] loops [01:13:38] 5 [01:13:39] hidden [01:13:39] layers [01:13:40] then [01:13:40] for [01:13:41] first input [01:13:42] you have [01:13:42] 150 [01:13:43] loops [01:13:44] will be [01:13:45] there [01:13:45] so [01:13:46] 150 [01:13:46] loops [01:13:47] you can [01:13:48] unfold [01:13:48] that is [01:13:49] why I [01:13:50] have [01:13:50] discussed [01:13:50] unfold [01:13:51] agree [01:13:52] this is [01:13:53] unfolding [01:13:54] with the [01:13:56] time [01:13:56] so how [01:13:58] to update [01:13:58] the weight [01:13:58] so normally [01:14:00] this is [01:14:00] very small [01:14:00] number [01:14:01] if you [01:14:02] practice [01:14:02] it [01:14:03] it is [01:14:03] a very [01:14:04] small [01:14:04] number [01:14:04] this is [01:14:07] again [01:14:07] very [01:14:07] small [01:14:08] number [01:14:08] very [01:14:10] small [01:14:10] number [01:14:11] and [01:14:13] it [01:14:14] this [01:14:15] you are [01:14:15] propagating [01:14:16] from [01:14:16] layer to [01:14:17] layer [01:14:17] layer to [01:14:18] layer [01:14:18] layer to [01:14:18] layer [01:14:19] layer to [01:14:19] layer [01:14:20] layer to [01:14:20] layer [01:14:20] layer to [01:14:21] layer [01:14:21] layer to [01:14:21] layer [01:14:22] and every [01:14:23] time [01:14:23] what you [01:14:24] are [01:14:24] multiplying [01:14:24] you are multiplying very small number [01:14:27] multiplying very small number [01:14:30] agree [01:14:31] so it is making [01:14:32] making very very [01:14:34] very small number [01:14:36] the problem is clear to everybody [01:14:39] yeah [01:14:40] so what happen at the initial [01:14:43] layer [01:14:43] at the initial layer of your network [01:14:47] initial layer of network [01:14:48] suppose these are the initial layers [01:14:50] for example these are the initial layers [01:14:52] so your weights [01:14:54] so what happen [01:14:56] weight new will be [01:14:59] weight old [01:15:02] plus alpha [01:15:04] this thing [01:15:06] and it will become 0 or near to 0 [01:15:08] so what are you meaning of that [01:15:11] new weight [01:15:12] is equal to [01:15:14] old weight [01:15:16] got it [01:15:17] so no weight update [01:15:19] no weight update [01:15:22] no weight update means [01:15:24] no weight update means [01:15:26] no learning [01:15:26] no [01:15:27] learning [01:15:29] got it [01:15:29] so this is called vanishing gradient problem [01:15:32] just opposite [01:15:34] is [01:15:36] exploiting gradient problem [01:15:38] exploiting [01:15:41] gradient problem [01:15:45] just opposite [01:15:46] suppose [01:15:47] this is [01:15:49] it is rarely [01:15:50] happened [01:15:51] this is a big number [01:15:52] you have taken [01:15:53] already [01:15:54] derivatives are big [01:15:56] in case [01:15:56] understand [01:15:57] and alpha [01:15:58] is also [01:15:59] you have taken like [01:16:00] hundred [01:16:00] big number [01:16:02] alpha [01:16:02] normally [01:16:03] it is a guideline [01:16:04] alpha is [01:16:05] normally [01:16:06] you keep [01:16:06] very small number [01:16:07] but suppose [01:16:08] you have taken [01:16:08] hundred [01:16:08] it is again [01:16:10] a big number [01:16:11] so what is the meaning [01:16:12] of that [01:16:12] you are multiplying [01:16:14] with [01:16:14] big number [01:16:16] multiply [01:16:16] with [01:16:16] big number [01:16:18] ultimate [01:16:18] super big number [01:16:20] super big number [01:16:23] means [01:16:23] now think about [01:16:25] weight update [01:16:27] will be [01:16:28] w old [01:16:30] plus [01:16:30] very big number [01:16:32] very big number [01:16:33] means [01:16:34] your weight update [01:16:35] is very drastically [01:16:36] drastically [01:16:38] okay [01:16:40] so [01:16:41] in this case [01:16:42] your learning [01:16:43] will be slow [01:16:44] or [01:16:46] not [01:16:46] good [01:16:47] learning [01:16:48] not good [01:16:49] learning [01:16:49] this is called [01:16:52] exploiting gradient [01:16:55] problem [01:16:55] okay [01:16:56] so [01:16:57] yeah [01:16:58] another [01:17:00] RNN problem [01:17:02] the third problem [01:17:03] I am discussing [01:17:04] it [01:17:05] it does not [01:17:08] learn [01:17:10] long [01:17:11] dependency [01:17:12] long [01:17:14] dependency [01:17:16] it's very [01:17:18] important [01:17:18] concept [01:17:19] long [01:17:20] dependency [01:17:20] long term [01:17:21] dependency [01:17:21] so let me [01:17:23] explain [01:17:23] here everything [01:17:24] is written [01:17:24] you can go [01:17:25] through it [01:17:26] yeah [01:17:28] long term [01:17:28] dependency [01:17:29] so what [01:17:30] happen [01:17:30] you need to [01:17:32] understand [01:17:32] in the [01:17:32] particular [01:17:32] text [01:17:33] particular [01:17:35] text [01:17:36] suppose [01:17:37] text [01:17:37] set [01:17:37] return [01:17:38] a lot [01:17:38] of [01:17:38] terms [01:17:39] text [01:17:43] have [01:17:43] lot [01:17:43] of [01:17:43] term [01:17:44] 20 [01:17:44] 21 [01:17:46] so [01:17:46] suppose [01:17:46] you are [01:17:47] processing [01:17:47] this term [01:17:48] you want [01:17:49] to encode [01:17:49] or you want [01:17:50] to translate [01:17:50] or you want [01:17:51] to classify [01:17:52] anything [01:17:52] so sometimes [01:17:53] this term [01:17:54] may be [01:17:55] dependent [01:17:55] depend on [01:17:57] the previous [01:17:57] term [01:17:58] by 10% [01:18:00] or [01:18:01] may possible [01:18:02] the decision [01:18:02] you are making [01:18:03] at this time [01:18:04] can be taken [01:18:06] from the term [01:18:06] that appears [01:18:07] long before [01:18:08] and the relation [01:18:10] is very strong [01:18:10] 90% [01:18:11] so this is called [01:18:13] long term [01:18:14] dependency [01:18:15] the term [01:18:18] or word [01:18:19] at this [01:18:20] moment [01:18:20] may not be [01:18:22] heavily depend [01:18:22] on the previous [01:18:23] terms [01:18:24] it may heavily depend [01:18:25] on the terms [01:18:26] that appear [01:18:26] much before [01:18:27] so this concept [01:18:28] we call [01:18:29] long [01:18:30] term [01:18:32] dependency [01:18:33] okay [01:18:36] so this is [01:18:37] RNN [01:18:38] fail [01:18:38] RNN [01:18:40] cannot learn [01:18:40] the long term [01:18:41] dependency [01:18:42] so what do you [01:18:43] mean by the [01:18:43] long term [01:18:44] dependency [01:18:44] I will explain [01:18:45] with one [01:18:45] very good [01:18:46] example [01:18:46] look [01:18:48] so look [01:18:49] this is the [01:18:49] sentence [01:18:50] please [01:18:50] have a look [01:18:52] on screen [01:18:52] Ram studies [01:18:53] in the 10th [01:18:54] class [01:18:54] sentence [01:18:55] and dot [01:18:56] he is a [01:18:57] good boy [01:18:57] what is he [01:18:58] this term [01:18:59] is he [01:19:00] or she [01:19:00] is referencing [01:19:02] for what [01:19:02] class [01:19:03] or 10th [01:19:05] or studies [01:19:06] or Ram [01:19:07] you answer [01:19:08] whenever [01:19:10] the RNN [01:19:11] is processing [01:19:12] this term [01:19:12] he [01:19:13] what RNN [01:19:14] should understand [01:19:15] he means [01:19:15] what [01:19:16] Ram [01:19:17] it is a [01:19:17] long term [01:19:18] dependency [01:19:18] it is a [01:19:19] long term [01:19:19] dependency [01:19:19] he is [01:19:21] good boy [01:19:22] and attend [01:19:22] the class [01:19:23] daily [01:19:23] sentence [01:19:24] and again [01:19:25] he [01:19:25] he means [01:19:26] what [01:19:27] he means [01:19:28] again [01:19:29] a term [01:19:30] appears [01:19:30] much [01:19:30] before [01:19:31] at the [01:19:31] beginning [01:19:31] Ram [01:19:32] got it [01:19:34] now [01:19:35] he lives [01:19:36] in Agra [01:19:36] that famous [01:19:37] for [01:19:37] Taj Mahal [01:19:38] sentence [01:19:39] and which [01:19:40] now [01:19:41] what is [01:19:41] which [01:19:41] here [01:19:43] the RNN [01:19:45] has to [01:19:45] learn [01:19:45] automatically [01:19:46] which means [01:19:47] not Ram [01:19:48] here [01:19:48] now [01:19:49] which means [01:19:50] Taj Mahal [01:19:50] so [01:19:52] RNN [01:19:53] has to [01:19:54] forget [01:19:54] everything [01:19:54] and [01:19:56] develop [01:19:57] the new [01:19:58] relationship [01:19:58] okay [01:20:00] so that [01:20:01] was built [01:20:02] in the [01:20:02] year [01:20:02] 1700 [01:20:03] it is [01:20:03] a symbol [01:20:04] of love [01:20:04] it means [01:20:05] Taj Mahal [01:20:06] this is [01:20:08] the example [01:20:09] great [01:20:10] so [01:20:12] all [01:20:14] these [01:20:14] problems [01:20:15] are in [01:20:16] the RNN [01:20:16] and we [01:20:17] solve [01:20:17] this problem [01:20:18] by using [01:20:19] LSTM [01:20:19] so [01:20:22] LSTM [01:20:23] is a [01:20:23] solution [01:20:23] LSTM [01:20:26] so let [01:20:27] me [01:20:27] explain [01:20:27] with [01:20:28] LSTM [01:20:28] okay [01:20:32] so [01:20:33] yes [01:20:34] very [01:20:35] interesting [01:20:36] in [01:20:38] RNN [01:20:38] please [01:20:40] understand [01:20:41] RNN [01:20:43] what [01:20:43] happen [01:20:43] we [01:20:44] have [01:20:45] a [01:20:45] feedback [01:20:49] this [01:20:51] is [01:20:51] one [01:20:51] loop [01:20:52] agree [01:20:52] we [01:20:52] call [01:20:53] it [01:20:53] hidden [01:20:53] state [01:20:54] agree [01:20:54] we [01:20:56] call [01:20:56] it [01:20:56] hidden [01:20:56] state [01:20:57] okay [01:20:59] it is [01:20:59] clear [01:21:00] in [01:21:01] LSTM [01:21:01] we [01:21:02] have [01:21:02] one [01:21:02] extra [01:21:02] loop [01:21:02] one [01:21:03] extra [01:21:03] kind [01:21:04] of [01:21:04] loop [01:21:04] we [01:21:05] call [01:21:06] it [01:21:06] cell [01:21:06] state [01:21:06] that [01:21:08] is [01:21:08] a [01:21:09] one [01:21:09] big [01:21:09] difference [01:21:09] between [01:21:10] the [01:21:10] RNN [01:21:10] and [01:21:11] LSTM [01:21:11] we [01:21:12] have [01:21:13] a [01:21:13] hidden [01:21:13] state [01:21:14] in [01:21:14] the [01:21:14] RNN [01:21:15] we [01:21:16] have [01:21:16] additional [01:21:16] one [01:21:17] state [01:21:17] in [01:21:18] the [01:21:18] LSTM [01:21:19] I'm [01:21:19] covering [01:21:20] about [01:21:20] the [01:21:20] LSTM [01:21:23] have [01:21:23] additional [01:21:24] state [01:21:25] we [01:21:26] call [01:21:26] it [01:21:26] cell [01:21:26] state [01:21:26] agree [01:21:28] so [01:21:30] hidden [01:21:30] state [01:21:31] also [01:21:31] the [01:21:32] name [01:21:32] short [01:21:33] term [01:21:33] memory [01:21:33] hidden [01:21:34] state [01:21:35] in [01:21:36] review [01:21:36] of [01:21:37] RNN [01:21:37] we [01:21:37] call [01:21:38] it [01:21:38] short [01:21:39] term [01:21:40] memory [01:21:40] short [01:21:41] term [01:21:43] memory [01:21:44] and [01:21:46] in [01:21:46] LSTM [01:21:48] we [01:21:48] will [01:21:48] have [01:21:49] cell [01:21:49] state [01:21:50] this [01:21:51] is [01:21:51] called [01:21:51] long [01:21:52] term [01:21:52] memory [01:21:53] long [01:21:54] term [01:21:55] memory [01:21:57] got it [01:21:58] that's [01:21:58] why [01:21:59] LSTM [01:21:59] full [01:21:59] form [01:22:00] of [01:22:00] LSTM [01:22:00] is [01:22:00] what [01:22:01] long [01:22:02] short [01:22:04] term [01:22:05] memory [01:22:05] because [01:22:06] it [01:22:06] have [01:22:06] both [01:22:07] short [01:22:07] term [01:22:07] memory [01:22:08] and [01:22:08] long [01:22:08] term [01:22:09] memory [01:22:09] agree [01:22:10] so [01:22:13] let [01:22:13] me [01:22:14] explain [01:22:14] again [01:22:14] with [01:22:15] this [01:22:15] very [01:22:16] beautiful [01:22:16] example [01:22:17] yeah [01:22:20] so [01:22:20] just [01:22:21] focus [01:22:21] over [01:22:21] here [01:22:22] during [01:22:24] the [01:22:25] learning [01:22:25] sometime [01:22:26] okay [01:22:28] so [01:22:29] during [01:22:30] the [01:22:30] learning [01:22:31] during [01:22:32] the [01:22:33] learning [01:22:33] understand [01:22:34] the [01:22:34] aspect [01:22:35] first [01:22:36] we have [01:22:37] to forget [01:22:38] something [01:22:38] we have [01:22:39] to forget [01:22:40] something [01:22:41] I think [01:22:42] you have [01:22:42] to say [01:22:43] yes or [01:22:43] no [01:22:43] if you [01:22:44] are [01:22:44] agree [01:22:44] forget [01:22:45] something [01:22:45] that is [01:22:46] not [01:22:46] important [01:22:47] that is [01:22:49] not [01:22:50] important [01:22:51] or [01:22:51] relevant [01:22:53] I think [01:22:53] everybody [01:22:54] agree or [01:22:54] not [01:22:54] also [01:22:57] we have [01:22:58] to add [01:22:59] or [01:23:00] learn [01:23:01] new [01:23:02] thing [01:23:03] new [01:23:04] concept [01:23:04] yeah [01:23:05] new [01:23:05] thing [01:23:05] that is [01:23:07] relevant [01:23:08] that is [01:23:09] relevant [01:23:11] or [01:23:12] important [01:23:13] I think [01:23:14] everybody [01:23:14] agree or [01:23:14] not [01:23:14] for example [01:23:16] this [01:23:17] so [01:23:18] he [01:23:19] is [01:23:20] important [01:23:21] and [01:23:21] relevant [01:23:22] he is [01:23:22] important [01:23:22] relevant [01:23:23] whenever [01:23:25] you enter [01:23:25] the next [01:23:26] sentence [01:23:26] we have [01:23:28] to forget [01:23:28] the relationship [01:23:29] between [01:23:29] he and [01:23:30] Ram [01:23:30] we have [01:23:31] to add [01:23:32] the new [01:23:32] relationship [01:23:32] which [01:23:33] and [01:23:33] Taj [01:23:33] Mahal [01:23:34] it [01:23:35] with [01:23:36] the [01:23:36] which [01:23:36] it is [01:23:37] the Taj [01:23:38] Mahal [01:23:38] this is the new [01:23:39] relationship [01:23:39] we have to [01:23:40] learn [01:23:40] earlier [01:23:41] relationship [01:23:42] we have to [01:23:42] forget [01:23:42] slowly [01:23:43] okay [01:23:44] so this is the [01:23:45] concept [01:23:46] is implemented [01:23:48] generated by [01:23:48] rnnn [01:23:48] okay [01:23:54] so look [01:23:56] this is the [01:23:56] architecture [01:23:57] of the [01:23:58] rnn [01:23:58] okay [01:23:59] please [01:24:01] understand [01:24:01] here [01:24:02] look [01:24:02] architecture [01:24:03] of the [01:24:03] rnn [01:24:03] so here [01:24:05] this is [01:24:06] one line [01:24:06] ht [01:24:07] ht-1 [01:24:08] means [01:24:08] h0 [01:24:09] typical [01:24:10] rnn [01:24:11] this is [01:24:11] one layer [01:24:12] I am [01:24:12] maintaining [01:24:12] typical [01:24:13] rnn [01:24:14] we have [01:24:15] additional [01:24:16] state [01:24:16] cell [01:24:16] state [01:24:17] so two [01:24:18] states [01:24:19] at a time [01:24:20] we are [01:24:20] maintaining [01:24:21] hidden [01:24:22] state [01:24:22] and the [01:24:22] cell [01:24:23] state [01:24:23] and these [01:24:24] two [01:24:24] states [01:24:25] have to [01:24:25] communicate [01:24:26] with each [01:24:26] other [01:24:26] so that's [01:24:28] why we have [01:24:28] three kind [01:24:29] of gate [01:24:29] so rnn [01:24:30] all about [01:24:31] the rnn [01:24:32] is the [01:24:32] gate [01:24:32] concept [01:24:33] rnn [01:24:34] having [01:24:35] three [01:24:35] gates [01:24:35] forget [01:24:36] gate [01:24:36] input [01:24:37] gate [01:24:38] and [01:24:38] output [01:24:38] gate [01:24:38] what is [01:24:40] the functioning [01:24:40] of each [01:24:41] gate [01:24:41] let me [01:24:42] explain [01:24:43] forget [01:24:45] gate [01:24:45] think about [01:24:46] if something [01:24:47] is not [01:24:48] important [01:24:48] right now [01:24:49] something [01:24:50] is not [01:24:51] relevant [01:24:51] like [01:24:52] the relationship [01:24:53] between [01:24:54] he and [01:24:54] ram [01:24:54] at this [01:24:55] current [01:24:55] position [01:24:56] is not [01:24:56] important [01:24:57] not [01:24:57] relevant [01:24:58] we have [01:24:58] to forget [01:24:59] it [01:24:59] we have [01:25:00] to forget [01:25:00] it [01:25:01] so information [01:25:02] that is [01:25:02] no longer [01:25:03] important [01:25:04] we don't [01:25:05] want to [01:25:06] convey [01:25:06] we want [01:25:07] to [01:25:07] delete it [01:25:10] we want [01:25:10] to remove [01:25:10] it [01:25:10] an important [01:25:12] part [01:25:12] is [01:25:13] that [01:25:13] please [01:25:13] understand [01:25:14] whenever [01:25:15] we [01:25:16] remove [01:25:16] something [01:25:17] we [01:25:20] forget [01:25:22] something [01:25:22] or [01:25:23] we [01:25:24] add [01:25:24] something [01:25:25] it [01:25:26] cannot [01:25:26] be a [01:25:26] binary [01:25:27] you can [01:25:28] say [01:25:28] sir [01:25:28] forget [01:25:29] 90% [01:25:30] things [01:25:32] you can [01:25:32] forget [01:25:32] about [01:25:33] that [01:25:33] relationship [01:25:34] you can [01:25:35] remove [01:25:36] or forget [01:25:36] 80% [01:25:37] of [01:25:37] that [01:25:38] relationship [01:25:39] you can [01:25:40] say [01:25:40] 10% [01:25:40] of [01:25:41] that [01:25:41] relationship [01:25:42] if [01:25:42] that [01:25:42] relationship [01:25:43] is not [01:25:44] important [01:25:44] at all [01:25:45] you can [01:25:45] say [01:25:45] 0% [01:25:46] don't [01:25:46] remember [01:25:47] if this [01:25:48] relationship [01:25:48] is 100% [01:25:49] you can [01:25:50] say [01:25:50] 100% [01:25:50] keep it [01:25:51] like that [01:25:52] so here [01:25:54] it is not [01:25:54] binary [01:25:54] because [01:25:56] somebody [01:25:56] will ask [01:25:56] this [01:25:57] is [01:25:58] he [01:25:58] and [01:25:59] ram [01:25:59] at the [01:26:01] beginning [01:26:01] the [01:26:02] importance [01:26:02] is [01:26:03] 100% [01:26:04] agree [01:26:05] it [01:26:06] may [01:26:07] happen [01:26:07] at [01:26:07] the [01:26:07] later [01:26:08] this [01:26:09] he [01:26:09] and [01:26:09] ram [01:26:10] is [01:26:10] not [01:26:10] coming [01:26:11] together [01:26:11] in [01:26:12] the [01:26:12] story [01:26:12] we [01:26:13] slowly [01:26:13] start [01:26:14] forgetting [01:26:14] first [01:26:15] forget [01:26:15] 90% [01:26:16] then [01:26:16] forget [01:26:16] 80% [01:26:17] then [01:26:17] 70% [01:26:18] like [01:26:18] that [01:26:18] if [01:26:20] again [01:26:20] he [01:26:21] and [01:26:21] ram [01:26:22] appear [01:26:22] in [01:26:22] the [01:26:22] sentence [01:26:23] we [01:26:24] can [01:26:24] add [01:26:25] it [01:26:25] we [01:26:26] can [01:26:26] add [01:26:26] it [01:26:26] through [01:26:27] the [01:26:27] add [01:26:28] gate [01:26:28] so [01:26:29] it [01:26:29] is [01:26:30] not [01:26:30] like [01:26:30] that [01:26:30] if [01:26:31] you [01:26:31] forget [01:26:31] about [01:26:32] he [01:26:32] and [01:26:32] ram [01:26:32] you [01:26:32] cannot [01:26:33] add [01:26:33] it [01:26:33] next [01:26:34] time [01:26:34] if [01:26:34] it [01:26:35] appears [01:26:35] in [01:26:36] the [01:26:36] data [01:26:36] set [01:26:36] you [01:26:36] can [01:26:37] add [01:26:37] it [01:26:37] okay [01:26:39] Narayan [01:26:40] that [01:26:40] was [01:26:40] your [01:26:41] question [01:26:41] so [01:26:43] forget [01:26:44] gate [01:26:44] is [01:26:44] about [01:26:44] forget [01:26:45] something [01:26:45] that [01:26:45] is [01:26:46] not [01:26:46] important [01:26:46] input [01:26:46] gate [01:26:47] is [01:26:47] means [01:26:47] whenever [01:26:48] you [01:26:48] feel [01:26:48] the [01:26:49] information [01:26:49] is [01:26:49] something [01:26:50] relevant [01:26:50] important [01:26:50] you [01:26:51] add [01:26:51] to [01:26:51] the [01:26:51] memory [01:26:52] it [01:26:52] is [01:26:52] happening [01:26:53] to [01:26:53] the [01:26:53] cell [01:26:54] memory [01:26:54] only [01:26:54] cell [01:26:55] state [01:26:55] I [01:26:57] am [01:26:57] just [01:26:58] discussing [01:26:58] about [01:26:58] only [01:26:59] the [01:26:59] cell [01:26:59] state [01:26:59] because [01:27:00] hidden [01:27:01] state [01:27:01] is [01:27:01] as [01:27:02] it [01:27:02] is [01:27:02] we [01:27:02] have [01:27:02] discussed [01:27:02] with [01:27:03] the [01:27:03] RNN [01:27:03] as [01:27:04] it [01:27:04] is [01:27:04] so [01:27:05] you [01:27:05] can [01:27:05] think [01:27:06] here [01:27:06] in [01:27:07] LSTM [01:27:08] we [01:27:08] have [01:27:08] two [01:27:09] kind [01:27:09] of [01:27:09] state [01:27:10] LSTM [01:27:11] so [01:27:12] this [01:27:13] is [01:27:13] the [01:27:14] hidden [01:27:15] state [01:27:15] hidden [01:27:17] state [01:27:18] that [01:27:19] we [01:27:19] have [01:27:19] seen [01:27:20] in [01:27:20] the [01:27:20] RNN [01:27:21] then [01:27:22] we [01:27:23] have [01:27:23] a [01:27:23] next [01:27:24] state [01:27:24] cell [01:27:24] state [01:27:25] cell [01:27:26] state [01:27:27] it [01:27:27] is [01:27:28] new [01:27:28] and [01:27:29] there [01:27:29] is [01:27:29] also [01:27:29] communication [01:27:30] between [01:27:30] hidden [01:27:31] state [01:27:31] and [01:27:31] cell [01:27:31] state [01:27:32] here [01:27:33] we [01:27:33] have [01:27:33] three [01:27:33] kind [01:27:34] of [01:27:34] gate [01:27:34] okay [01:27:36] so [01:27:36] like [01:27:37] forget [01:27:37] gate [01:27:37] input [01:27:38] gate [01:27:38] and [01:27:39] output [01:27:39] gate [01:27:40] so [01:27:40] this [01:27:41] is [01:27:41] the [01:27:41] architecture [01:27:41] very [01:27:43] interesting [01:27:43] architecture [01:27:44] look [01:27:45] yeah [01:27:47] so [01:27:48] very [01:27:48] simplest [01:27:48] one [01:27:49] in [01:27:50] this [01:27:50] is [01:27:50] input [01:27:50] is [01:27:51] coming [01:27:51] from [01:27:51] the [01:27:52] data [01:27:52] set [01:27:52] it [01:27:54] is [01:27:54] previous [01:27:55] state [01:27:55] output [01:27:56] typical [01:27:57] RN [01:27:57] previous [01:27:58] state [01:27:58] output [01:27:58] it [01:27:59] will go [01:27:59] to [01:27:59] the [01:28:00] network [01:28:00] then [01:28:01] output [01:28:02] will [01:28:02] go [01:28:02] through [01:28:03] the [01:28:03] this [01:28:04] operation [01:28:05] and [01:28:06] it [01:28:06] will [01:28:07] check [01:28:09] cell [01:28:10] state [01:28:10] if [01:28:11] this [01:28:12] is [01:28:12] like [01:28:13] a [01:28:13] he [01:28:13] and [01:28:13] ram [01:28:14] relationship [01:28:14] is [01:28:15] important [01:28:15] or [01:28:15] not [01:28:16] if [01:28:16] it [01:28:17] is [01:28:17] important [01:28:17] it [01:28:18] will [01:28:18] keep [01:28:18] at [01:28:19] is [01:28:19] it [01:28:19] as [01:28:20] it [01:28:20] is [01:28:21] if [01:28:21] it [01:28:22] is [01:28:22] not [01:28:22] important [01:28:22] it [01:28:23] can [01:28:23] reduce [01:28:23] by [01:28:24] 90 [01:28:24] percent [01:28:25] by [01:28:25] 10 [01:28:25] percent [01:28:25] or [01:28:26] completely [01:28:26] forget [01:28:27] okay [01:28:28] similarly [01:28:29] the [01:28:30] input [01:28:30] will [01:28:30] go [01:28:30] to [01:28:31] the [01:28:31] next [01:28:32] two [01:28:32] operations [01:28:32] and [01:28:34] it [01:28:34] is [01:28:34] called [01:28:34] as [01:28:35] input [01:28:35] state [01:28:36] it [01:28:37] will [01:28:37] decide [01:28:37] during [01:28:38] the [01:28:38] training [01:28:38] the [01:28:39] input [01:28:40] the [01:28:40] new [01:28:40] relationship [01:28:40] like [01:28:41] it [01:28:41] and [01:28:42] taz [01:28:42] mail [01:28:42] at [01:28:43] this [01:28:43] time [01:28:43] suppose [01:28:44] it [01:28:44] can [01:28:45] decide [01:28:45] this [01:28:45] new [01:28:46] relationship [01:28:46] okay [01:28:46] you [01:28:47] should [01:28:47] learn [01:28:47] it [01:28:48] so [01:28:48] it [01:28:48] will [01:28:48] add [01:28:48] to [01:28:48] the [01:28:49] cell [01:28:49] state [01:28:50] forget [01:28:51] state [01:28:52] sorry [01:28:52] output [01:28:53] state [01:28:53] means [01:28:53] how [01:28:54] much [01:28:54] of [01:28:55] hidden [01:28:56] state [01:28:56] and [01:28:56] cell [01:28:56] state [01:28:57] by [01:28:57] combining [01:28:58] you [01:28:58] can [01:28:58] give [01:28:58] as [01:28:59] output [01:28:59] of [01:28:59] the [01:28:59] hidden [01:29:00] state [01:29:00] so [01:29:01] there [01:29:01] will [01:29:01] always [01:29:02] be [01:29:02] the [01:29:02] two [01:29:02] output [01:29:02] so [01:29:04] here [01:29:04] you [01:29:05] can [01:29:05] think [01:29:05] about [01:29:05] somebody [01:29:06] will [01:29:06] ask [01:29:06] how [01:29:06] many [01:29:06] input [01:29:07] in [01:29:07] the [01:29:07] RNN [01:29:08] having [01:29:08] the [01:29:08] three [01:29:08] inputs [01:29:09] at [01:29:09] a [01:29:09] time [01:29:09] how [01:29:10] many [01:29:11] inputs [01:29:11] in [01:29:11] the [01:29:11] LSTM [01:29:12] RNN [01:29:13] having [01:29:14] two [01:29:14] inputs [01:29:14] at [01:29:14] a [01:29:14] time [01:29:15] in [01:29:15] the [01:29:15] LSTM [01:29:16] the [01:29:16] three [01:29:16] inputs [01:29:16] at [01:29:17] a [01:29:17] time [01:29:17] so [01:29:18] input [01:29:19] from [01:29:19] the [01:29:19] dataset [01:29:20] hidden [01:29:20] state [01:29:20] input [01:29:21] and [01:29:21] the [01:29:21] cell [01:29:21] state [01:29:22] one [01:29:22] additional [01:29:22] input [01:29:22] similarly [01:29:24] in [01:29:24] the [01:29:24] RNN [01:29:24] we [01:29:24] have [01:29:25] a [01:29:25] single [01:29:25] output [01:29:26] that [01:29:26] is [01:29:26] called [01:29:26] HD [01:29:26] hidden [01:29:27] state [01:29:27] output [01:29:28] here [01:29:28] we [01:29:28] have [01:29:28] two [01:29:28] output [01:29:29] cell [01:29:29] state [01:29:30] and [01:29:30] hidden [01:29:30] state [01:29:30] these [01:29:32] are [01:29:32] the [01:29:32] operations [01:29:32] these [01:29:33] are [01:29:33] the [01:29:33] operations [01:29:34] these [01:29:35] are [01:29:35] the [01:29:35] operations [01:29:36] point [01:29:37] wise [01:29:38] operations [01:29:38] these [01:29:38] are [01:29:38] the [01:29:39] point [01:29:39] wise [01:29:39] operations [01:29:40] okay [01:29:41] look [01:29:42] here [01:29:42] one [01:29:48] more [01:29:48] diagram [01:29:49] a lot [01:29:50] of [01:29:50] things [01:29:50] are [01:29:50] everything [01:29:51] I have [01:29:52] written [01:29:52] here [01:29:52] whatever [01:29:53] I have [01:29:54] explained [01:29:54] more [01:29:57] detailed [01:29:57] picture [01:29:58] is [01:29:58] here [01:29:59] yeah [01:30:01] this [01:30:02] is [01:30:02] look [01:30:03] this [01:30:03] is [01:30:04] simple [01:30:04] sigmoid [01:30:04] function [01:30:05] this [01:30:06] simple [01:30:06] sigmoid [01:30:07] function [01:30:07] sigmoid [01:30:08] function [01:30:08] what [01:30:08] does [01:30:08] output [01:30:09] value [01:30:10] will [01:30:10] be [01:30:10] between [01:30:11] 0 [01:30:11] to [01:30:11] 1 [01:30:11] okay [01:30:12] so [01:30:13] what [01:30:13] is [01:30:13] the [01:30:13] meaning [01:30:13] of [01:30:14] that [01:30:14] so [01:30:16] this [01:30:17] is [01:30:18] suppose [01:30:18] hidden [01:30:19] state [01:30:19] is [01:30:20] input [01:30:21] is [01:30:21] suppose [01:30:22] st [01:30:22] 0 [01:30:23] I am [01:30:24] passing [01:30:25] from [01:30:26] the [01:30:26] data [01:30:26] set [01:30:26] it [01:30:27] has [01:30:27] calculated [01:30:28] something [01:30:29] suppose [01:30:29] he [01:30:30] and [01:30:30] gram [01:30:31] agree [01:30:32] he [01:30:33] and [01:30:33] it [01:30:34] is [01:30:35] going [01:30:35] with [01:30:35] the [01:30:36] sigmoid [01:30:36] operation [01:30:36] sigmoid [01:30:38] operation [01:30:38] means [01:30:38] what [01:30:39] it [01:30:39] ranges [01:30:40] between [01:30:40] 0 [01:30:41] to [01:30:41] 1 [01:30:42] agree [01:30:42] so [01:30:43] this [01:30:44] is [01:30:44] the [01:30:44] vector [01:30:44] output [01:30:45] vector [01:30:46] hidden [01:30:46] state [01:30:46] output [01:30:47] vector [01:30:47] is [01:30:47] what [01:30:47] three [01:30:49] values [01:30:49] will [01:30:49] be [01:30:49] there [01:30:50] agree [01:30:50] and [01:30:52] suppose [01:30:52] this [01:30:52] value [01:30:53] is [01:30:53] 10 [01:30:53] this [01:30:54] value [01:30:54] is [01:30:54] 20 [01:30:55] this [01:30:55] value [01:30:56] is [01:30:56] 30 [01:30:56] agree [01:30:57] it [01:30:58] through [01:31:00] passing [01:31:00] through [01:31:00] the [01:31:00] sigmoid [01:31:01] operation [01:31:01] this [01:31:02] operation [01:31:02] output [01:31:04] value [01:31:04] will [01:31:04] be [01:31:04] what [01:31:05] output [01:31:07] value [01:31:07] will [01:31:07] be [01:31:08] suppose [01:31:08] it [01:31:08] is [01:31:09] 0.1 [01:31:10] it [01:31:11] is [01:31:11] 0.2 [01:31:12] it [01:31:12] is [01:31:13] 0.1 [01:31:13] again [01:31:14] agree [01:31:14] so [01:31:15] this [01:31:16] is [01:31:16] your [01:31:16] output [01:31:17] this [01:31:18] is [01:31:18] your [01:31:18] sigmoid [01:31:20] state [01:31:20] output [01:31:20] you need [01:31:21] to [01:31:21] multiply [01:31:22] you [01:31:23] will [01:31:23] see [01:31:23] output [01:31:24] is [01:31:24] what [01:31:24] 1 [01:31:26] 0.4 [01:31:29] 0.1 [01:31:32] 0.4 [01:31:32] 0.3 [01:31:33] agree [01:31:34] so [01:31:37] it [01:31:37] is [01:31:37] reducing [01:31:37] or [01:31:37] not [01:31:38] it [01:31:38] is [01:31:39] reducing [01:31:39] or [01:31:39] not [01:31:40] please [01:31:43] focus [01:31:43] on the [01:31:44] screen [01:31:44] it [01:31:44] is [01:31:44] reducing [01:31:45] or [01:31:45] not [01:31:45] it [01:31:46] is [01:31:46] reducing [01:31:46] it [01:31:49] if [01:31:49] it [01:31:49] is [01:31:50] important [01:31:50] so [01:31:50] it [01:31:51] will [01:31:51] keep [01:31:51] 1 [01:31:52] so [01:31:52] if [01:31:52] it [01:31:52] is [01:31:53] important [01:31:53] 1 [01:31:54] means [01:31:54] now [01:31:56] you [01:31:56] can [01:31:56] see [01:31:56] the [01:31:56] multiplication [01:31:57] will [01:31:57] be [01:31:57] 10 [01:31:58] 20 [01:31:58] 30 [01:31:59] so [01:32:01] means [01:32:01] everything [01:32:01] we need [01:32:02] to [01:32:02] retain [01:32:02] everything [01:32:03] we need [01:32:03] to [01:32:04] retain [01:32:04] everything [01:32:04] suppose [01:32:05] it [01:32:06] is [01:32:06] 0 [01:32:07] during [01:32:08] training [01:32:08] it [01:32:08] model [01:32:08] will [01:32:09] learn [01:32:09] then [01:32:10] output [01:32:10] will [01:32:10] be [01:32:11] 0 [01:32:11] forget [01:32:12] everything [01:32:13] forget [01:32:13] everything [01:32:14] very [01:32:16] interesting [01:32:16] so [01:32:17] just [01:32:18] in [01:32:18] this [01:32:19] PPT [01:32:19] I [01:32:20] have [01:32:20] so [01:32:21] these [01:32:21] are [01:32:21] the [01:32:22] simple [01:32:22] operations [01:32:22] that [01:32:23] you [01:32:23] can [01:32:24] go [01:32:24] through [01:32:24] it [01:32:24] in [01:32:25] PPT [01:32:25] I [01:32:26] have [01:32:26] discussed [01:32:26] every [01:32:26] operation [01:32:27] in [01:32:27] detail [01:32:28] every [01:32:28] operations [01:32:29] forget [01:32:30] gate [01:32:31] what [01:32:32] is [01:32:32] happening [01:32:32] what [01:32:33] are [01:32:33] the [01:32:33] activation [01:32:33] functions [01:32:34] already [01:32:34] covered [01:32:34] okay [01:32:38] so I [01:32:39] will upload [01:32:39] this PPT [01:32:40] for your [01:32:41] reference [01:32:41] you can [01:32:42] refer to [01:32:42] it [01:32:42] so any [01:32:44] use [01:32:45] case [01:32:45] we [01:32:46] should [01:32:46] prefer [01:32:46] RNN [01:32:47] over [01:32:47] the [01:32:47] list [01:32:47] despite [01:32:48] our [01:32:48] drawback [01:32:49] more [01:32:52] hidden [01:32:53] layers [01:32:53] means [01:32:53] there [01:32:53] are [01:32:54] more [01:32:54] chance [01:32:54] of [01:32:54] vanishing [01:32:55] yes [01:32:56] Ritika [01:32:56] you [01:32:56] are [01:32:56] correct [01:32:56] you [01:32:58] are [01:32:58] correct [01:32:59] so [01:33:00] sort [01:33:01] of [01:33:01] I [01:33:01] don't [01:33:01] have [01:33:01] any [01:33:02] direct [01:33:02] answer [01:33:02] but [01:33:02] if [01:33:03] the [01:33:03] data [01:33:04] set [01:33:04] don't [01:33:05] have [01:33:05] any [01:33:05] long [01:33:06] term [01:33:06] dependency [01:33:06] in [01:33:07] such [01:33:08] case [01:33:08] you [01:33:08] can [01:33:08] use [01:33:08] the [01:33:09] RNN [01:33:09] and [01:33:10] you [01:33:10] have [01:33:10] only [01:33:10] very [01:33:11] few [01:33:11] number [01:33:11] of [01:33:11] hidden [01:33:12] layers [01:33:12] otherwise [01:33:13] there [01:33:13] is [01:33:13] no [01:33:13] such [01:33:14] case [01:33:14] where [01:33:15] RNN [01:33:15] you [01:33:16] can [01:33:16] say [01:33:16] always [01:33:17] be [01:33:17] better [01:33:17] than [01:33:17] LSTM [01:33:18] more [01:33:19] hidden [01:33:20] layers [01:33:20] more [01:33:20] deeper [01:33:20] model [01:33:21] so [01:33:22] Ritika [01:33:22] you [01:33:22] can [01:33:22] ask [01:33:22] the [01:33:23] question [01:33:23] like [01:33:23] that [01:33:23] if [01:33:24] model [01:33:24] is [01:33:24] more [01:33:24] deeper [01:33:25] more [01:33:25] chance [01:33:26] for [01:33:26] vanishing [01:33:26] gradient [01:33:27] problem [01:33:27] is it [01:33:29] clear [01:33:29] Ritika [01:33:29] okay [01:33:35] so [01:33:36] time [01:33:36] is [01:33:36] also [01:33:37] over [01:33:37] I [01:33:37] will [01:33:37] upload [01:33:38] all [01:33:38] that [01:33:38] notes [01:33:38] to [01:33:39] the [01:33:39] Moodle [01:33:40] you [01:33:40] can [01:33:40] refer [01:33:41] to [01:33:41] it [01:33:41] you [01:33:42] need [01:33:42] to [01:33:42] learn [01:33:43] you [01:33:44] need [01:33:44] to [01:33:44] refer [01:33:44] a lot [01:33:44] other [01:33:44] videos [01:33:45] and [01:33:45] sources [01:33:45] the [01:33:46] RNN [01:33:47] and LST [01:33:47] are [01:33:48] bit [01:33:48] tricky [01:33:48] okay [01:33:52] thank [01:33:53] you [01:33:53] okay [01:33:54] so [01:33:54] thank [01:33:55] you [01:33:55] so [01:33:56] next [01:33:57] class [01:33:57] maybe [01:33:57] one [01:33:58] announcement [01:33:58] next [01:33:59] class [01:33:59] maybe [01:34:00] I [01:34:00] promise [01:34:01] I [01:34:03] request [01:34:03] one of [01:34:04] my [01:34:04] scholar [01:34:05] Dr. [01:34:05] Asis [01:34:06] Patel [01:34:06] it will [01:34:09] take [01:34:10] one [01:34:10] class [01:34:10] maybe [01:34:11] in the [01:34:11] next [01:34:11] class [01:34:12] I think [01:34:13] next [01:34:13] Tuesday [01:34:14] maybe [01:34:14] next [01:34:15] Tuesday [01:34:15] about [01:34:16] sequential [01:34:17] modeling [01:34:18] sequential [01:34:20] modeling [01:34:20] it is [01:34:20] given [01:34:21] in your [01:34:21] course [01:34:22] by using [01:34:23] ARIMA [01:34:23] or [01:34:24] relevant [01:34:25] model [01:34:26] okay [01:34:27] so next [01:34:28] time [01:34:28] maybe [01:34:28] next [01:34:29] Tuesday [01:34:29] Asis [01:34:30] will be [01:34:30] there [01:34:30] for [01:34:31] handling [01:34:33] one [01:34:34] class of [01:34:34] sequential [01:34:34] modeling [01:34:35] in [01:34:35] detail [01:34:35] okay [01:34:43] thank [01:34:43] you [01:34:44] is it [01:34:44] clear [01:34:45] so [01:34:53] I [01:34:54] talk [01:34:54] about [01:34:54] this [01:34:55] important [01:34:55] part [01:34:56] so [01:34:57] maybe [01:34:58] I [01:34:58] just [01:34:59] stop [01:35:00] sharing [01:35:00] this [01:35:00] is [01:35:00] so [01:35:01] next [01:35:01] class [01:35:02] maybe [01:35:02] about [01:35:02] sequential [01:35:04] modeling [01:35:04] where [01:35:05] the [01:35:05] machine [01:35:05] learning [01:35:06] algorithm [01:35:06] that is [01:35:07] extension [01:35:07] of the [01:35:08] linear [01:35:08] regression [01:35:08] ARIMA [01:35:09] or SARIMA [01:35:10] kind of [01:35:10] model [01:35:11] will be [01:35:11] explained [01:35:12] by [01:35:12] one of [01:35:13] my [01:35:14] scholar [01:35:15] Dr. [01:35:16] Asis [01:35:17] Patel [01:35:17] he will [01:35:18] cover about [01:35:18] this thing [01:35:19] in the [01:35:19] next [01:35:20] Tuesday [01:35:20] may be [01:35:20] possible [01:35:20] okay [01:35:22] please [01:35:22] remember [01:35:22] thank [01:35:26] you