Thank you. Okay. So, okay. So, we will see the we need to Okay. So, okay. So, okay. So, okay. That's Okay. So, Okay. edges then vertical edges is going like this that means and there will be the horizontal edges is also there okay so this can be the horizontal edges and this can be the vertical edges so that means we need to extract that particular uh the that particular edges in the image but kaysay image kaysay age ko find out karei ga suddenly intensity change ho gai hai suddenly brightness change ho gai hai so that manner yaha pardekhojay se yeh hai suddenly is particular ke baad change ho gaya hai okay yeah yeh poori image hai and this particular the big image is there okay so yaha yaha yaha that in all that particular position that the image is not there but here the intensity is changing so we need to find out its edges ki humne is this tarikay se we need to find out its edges so we got that particular edge okay so for the vertical edges for the horizontal edges so there will be the two thing is there okay so suppose we are making that means whenever we are having the image data set we need to convert it into the matrix then only we can feed into the deep learning model okay so the image ko matrix me change currently how we can change the matrix so we are having this kind of the vertical edges is there and we are converting the image into the matrix the similarly the horizontal edges is there and it is also the uh images is that the data is there so here you can see wherever the age is there the word in the horizontal manner the edge is like this the it here also there will be the edge so that means we are having the that particular sum of the value over there while other value can be the zero so that can be the vertical edges and the horizontal edges is there okay so this is also the edges is there now what is the once we are done with the edge okay humne edge ka calculation kar liya then we need to predict or we need to classify okay we need to classify so how we need to do the classify i am going in the little bit faster manner with the theory but in the coding i am moving in the slow manner okay because you had already understood about the cnn theory so i need to recall that particular concept okay so suppose we need to say whether a picture is of x or the zero there will be the two picture is there one is taking care about the x and one is taking care of the zero so a k x for a k zero so these two things we need to store okay so x and zero is there so x ko yadi humko call karna hai then there will be the cnn model is there okay so that means here the input data is there that means it is is having the two dimensional array of the pixel is there okay two dimensional array of the pixel is there so this is there okay suppose this is there so now the cnn model will tell either that particular value is an x or either that particular value is an zero okay so zero or x donno prakar ka value will be there okay so that kind of the value is there so either that particular value is an x either that particular value is an x or n zero so that particular value is there so now there will be the example is there suppose this kind of the images is there we need to predict the x or if this kind of the picture is there then we need to predict the zero and how who will do that particular will work that will be the cnn okay now we need to understand how this cnn will work okay so there are the different different uh combination is there so this is also looking like this sometimes the input will be like this sometimes the input is like this sometimes the input sometimes the input is like this so this all can be classified as an x this all can be classified as the zero okay so through the cnn so we need to learn the cnn now how we can decide or this particular image or this particular image are the equal because here so we for that we need to do the feature extraction okay feature extraction just like there will be the one dog image is there another dog image is there now both the dog image are not the same okay it may be the different different thing is there uh sir what is the loopy pattern in the x here loopy pattern that means there are the different different uh image data set is there okay there is a different different image data set is there that means uh you need to concerned about uh this or i am taking the different example suppose that you need to classify the dog and cat there are thousands of the image are putting in the dog dog different different variety okay the dog can be the different different variety so kuch dog so all are the coming and all can be considered as the dog but different different different ho sakti loopy pattern possible hey x ka bhi dog ka bhi kisi bhi category ka okay that means that contain the input value but how identify that particular image as a dog or second image ko bhi dog are the cnnf we are the human but how the machine can understand okay so machine can only understand that particular value that will matching the pattern so this is the one one one one one one one so they can or that all the value are the one while here also wherever the image exists that particular value will be treated as a one while other value is treating as a minus one so now computer need to be match or feature need to be selected yes a feature extraction okay just like i am giving the real world example suppose that there will be the dog and cat is there okay so now dog having the different different feature is there just like its hair is there its eye is there its ears is there okay there are lots of structural body differences there so that can be considered as the feature okay that can be considered as the feature so once we are determining the multiple features when we are training then we need to see and we are training so that can be used so this is how the computer can see that particular thing now the convent matches the pieces of the image okay so that means we need to do give it into the pieces we need to run into the small small patches like this okay that is the 3 x 3 x 2 x 3 x 2 like this okay so this convolution network can match the pieces so this convolution network can match the pieces so this can match the pieces like this okay like this like this they need to matching the different different different so when it is matching the feature matches piece of the image so this image so this image like this okay so sorry sorry sorry sorry so now what we need to do okay now what we need to do we need to take the small small pattern so we need to take into the pages so we need to consider the small small pages okay so input okay so input pages we need to determine okay we need to determine okay we need to determine the input pages now the first technique that we need to understand that will be the filtering okay because whatever in the mlp is a wet okay here we are working here as a filter okay CNN okay CNN may we are calling as a filter okay filter so what we are doing we need to line up the feature and the image pages we need to define then we need to multiply each image pixel by the corresponding feature scale then we need to add them and we need to divide with the total number of the pixel what is the meaning of this here you can see here you can see here you can see this can be the image and this this can be the image and this this is the first page of the image you need to consider you need to think about this this are the images okay okay this is the images so image convert we have 5 cross 5 okay suppose that you are doing that particular in the 5 cross 5 now you need to define the filter filter filter meaning the filter can be the weight so what we are defining sorry sorry what we are defining that you need to understand yeah so here is the filter filter filter filter size okay so here is the filter filter size okay that we need to decide that means the computer need to be decide that when we are uh deep learning we are creating any model then we need to decide that 10101010101 that means if you we are taken the input image size is a 3 cross 3 then our filter size is also considered as the 3 cross 3 okay okay now we need to uh randomly generate that particular value because in the last to last class i told about that we need to generate the random okay then we need to go ahead and we need to get the error in the forward propagation so during the back propagation we need to update that weight so here we are updating the filter size okay okay so in the first forward propagation we need to take that particular 1010101010101 all this thing is there sir you had mentioned in the beginning of the course that quantum computing will be having broaden scope over the binary since quantum works above and beyond the zero and one yes it is there but nowadays right now right now right now quantum is not used over there right now okay because that particular is the it is the hypothetical solution is there it is not practically implemented yet once it is practically implemented then only we can think about koi si algorithm jo quantum pe work hogi then we can discuss okay but right now there will be the no algorithm is built in the filter in the quantum computing okay computer can right now our computer can understand only the one zero okay our computer is not understanding the quantum weights because we are not having the quantum computer at all okay so don't we go in that direction that is the different story that is not related to the cnn so we had completed the filter then we had to assign that filter in the random order now we need to multiply this with this this with this this with this like this and this is how we had make the convoluted feature so this is the convoluted feature is there that means we have the input so input multiply with the filter okay now we got this particular first feature now in the next step what we are doing we need to make what we need to consider this as a image okay now we need to use so this is the image and this is how we need to go ahead okay and we need to multiply now we got this one now again we need to run this way now we need to run this way now we can fill some of the value here now we need to consider this as a three three feature code sorry three cross three like this and we can done and we can create this convoluted feature okay now this is the first process of the convolution that we need to prepare the convoluted feature okay so this is the convoluted feature so now we are having this this suppose this is the filter and this is the image okay now first it will take this particular now we need to multiply after that we need to take this particular feature after that we need to take like this okay so when you say the five in the convoluted feature are you saying here that the you have to put up only one element up to up that is five no not like this we are doing like this we need to take the input we have to take this input okay this is the input and this is the filter size this red one is the filter size sir can you please explain yes i am telling i am telling suppose i am telling in the blank sheet suppose that the input is this i am taking the two cross two one zero one zero one one like this this is the input okay suppose that and the filter will be the one one zero zero like this now we need to make a this okay this particular what is this this into this that one into one plus this into this that is the zero zero cross one adding this into this one into zero plus one into zero so this particular the answer is this is zero zero zero so the answer is one so we can write we can do that particular combination and we can put like this okay so this is the convolution operation okay this is the convolution operation in the pages we are working in the pages so how this 0.77 comes how this 0.77 comes so this 0.77 comes like this this is the filter size what is the filter size this is one minus one and minus one this this this one i am copying this the minus one one minus one the minus one minus one and one so this is the main size okay this is the filter size this is the filter size now what is the input input we need to consider okay okay say this particular three cross three this is the minus one minus one minus one minus one minus one minus one and one so this and we need to do the convolution operation and this is how we are getting the 0.77 either you you can do that particular you can do that particular thing okay so uh please explain how 5 is coming in the first cell i had told i told this one is multiplying with this so this is the one plus zero then this is one then plus this is zero this is again one this is zero now this is one now this is zero now this is one so one plus one plus one plus one plus one plus one this five will come okay so this is how that particular value is there input is sliding from the given image we take the pages by 100 percent we guess input is is decided by us because we have input the input image image image numerical data matrix convert okay now how much image image that is up to us if we need to take the three cross three as an input then only our multiplication or our convolution operation will work okay what is the filter here data that are the multiplying is the af z is the pages z where yes you can contain oh sorry is convoluted already convolution is done and that is the result hundred percent hundred percent convolution how we decide the filter at the first time at the first time now you can think at the first time you need to decide the filter is a random jsa from beta sign correct mlp the similar approach we can decide as a random but when the sorry yeah huh when the forward propagation comes forward propagation we got the error so during the big propagation we need to update the filter just like whatever update we had done in the wet wet image update correct the same update we can done with the filter here the filter is similar as the wet in the convolution neural network we are calling filter as a wet sorry wet as a filter okay what will be happen we have a low resolution low resolution image okay we are having the sum of the data although it is not working fine we need to enhance the image during the data pre-processing okay during the data pre-processing you need to enhance the image then only are some of the value are over there suppose that your resolution is not good so here is the value it might be possible it is not like the zero or one okay size of the filter matrix will be decided by the size of the input page hundred percent hundred percent otherwise how we can perform the convolution okay otherwise how so this is the first filter okay we need it taken this is the first filter now in the next epoch in the next epoch epoch meaning whenever the one forward propagation happened then the big propagation so during the big propagation this filter will be updated okay because we can't change the input we can update the filter okay so yeah slow resolution caused the deformation in the hundred percent it will be doing late but that so here you can see we need to take this okay and next time you need to take this okay now here one more thing that you need to understand if that particular things are understand first this need to be multiply this then this node 2 we multiply this so this will give the answer as this now this will give as the answer is this now next time it is moving like this and now this is multiplying with this and this will give the value as the 0.11 like this like this filter can only contain the value in the infinity uh no it can take the value as a zero to infinity oh sorry minus infinity to infinity but what happened we are performing the normalization okay we had performed the normalization and then our value may come as a minus one to minus sorry minus one to minus one to one because we are doing the normalization okay normalization perform the minus one seven that's why our filter will be in the that particular size you can take any filter minus infinity so infinity will have but to whenever we need to perform the convolution operation or multiplication is little bit difficult with the bigger value that's why we are converted it into the sum of the values okay minus one to one sir how do we decide what will be the size of the input it's up to you it's up to you there is nothing like this that's how many input size it's totally up to us the size of the convolution matrix of uh you can say filter of the metric hundred percent jitna size hoga yadhi yaha pa 3 cross 3 kar dhengye input and filter is 3 cross 3 to ye kya bana dega ye ek value create karega okay so like this your size will increase okay like this your size will be decided now one more thing i want to tell right now what i am doing i am considering this as a first input uh filter is basically kernel matrix hundred percent hundred percent kernel matrix and filter is the same is there any mathematics behind this or it's around the trial and error about what anuja i am not getting trial and error related to i think you are talking about the input sides if input pages of the three cross one then the filter is always hundred percent the therefore is there any mathematics there is nothing mathematics behind this you can take any size of the input but jitne ka input loghe similar ka filter lena padega that's it okay you can change the input size you can change the input size input size you can take as a five cross five in that particular manner you need to make a filter size as a five cross five that's it so you need to decide whether in the coding you need to decide okay so this is the uh theory now what we need to assign okay just wait just listen that particular thing whatever i am telling now i am taking this as a first input is ko mine first input le liya okay now next time next input is going like this okay but is it correct thing so now here one more things are coming that can be called as a stride okay and what is telling why the stride if your stride is one then we can jump in the one mode that means humara first input is going like this the second input is starting from here when the stride will be the two then our next input will be coming as this that means we can jump from here to here we can jump from here to here okay the convolution is a mathematical operation that can give the uh operation between the input or filter size ka combination ko dikhata so this is the convolution okay this is the convolution operation okay it can make the feature map okay it can create the feature map and this particular things are called as a feature map okay this is the feature map okay this can be the feature map so this can be the feature map okay now the stride according to the stride stride is the com stride means we need to jump kitana jump karna sir stride ka theory thoda elaborate kiji yes okay what happened suppose i need to showcase the sum of the slide that are little bit okay just wait i need to rough it so that at least we can understand okay i need to rough it yeah okay now now you need to understand the stride just wait okay just listen listen listen listen sir uh you said that the size would be the same for both same for both ka meaning abhi i'll tell i'll tell that means jaha par operation ho jai i'll tell this particular answer first time take taking about the size stride so suppose your size of the input will be the three cross three this is the three cross three now the stride will be the one stride one then what we can say okay here we can move and we can think about this so this is the stride number one we can jump over like this when the stride is equal to two okay stride ka meaning kya hai this particular will be selected so next kya select hooga this particular will be selected okay or you can think that you can think that stride here is the stride here is the stride to have to select this particular will be selected okay so next combination me next step me this will be multiplying this will be multiplying so this combination is kya size it that can be reduced reduced reduced ho jayegah due to the stride okay yes mohit is telling kya square ke mina hooga kya c square ke mina haa now now your answer suppose that your input is the three cross one okay so we are considering tummahara input kya okay this is the three cross one now yaha par bhi kya hona chahi hai three cross one then yaha yaha yaha yaha yaha it may be possible okay yadi yaha one cross three hai abhi i am telling this is if your answer abhi you need to understand one cross three hai then what you need to do your input is three cross one yes this is three cross one but your uh filter will be the one cross three there is sorry this is your filter will be the one cross three sorry one cross three means like this so you need to do the transpose i'm transpose card in a nice car or we can do the multiplication okay transpose card then give all the mathematical operation is there okay so what i mean three is three is in input then the filter is required to be the three cross three yes it is there but if the three cross one is multiplying with the three cross one then we need to know how we are not doing the multiplication it's totally it is not the multiplication it's the convolution operation it is little bit difficult matrix multiplication you need to understand okay this multiplication is done with this this multiplication is done with this this multiplication is done with this then we got some of the value then this multiplication is some with this this multiplication is with this this multiplication is this way so this is the matrix multiplication this is not equivalent to the convolution operation in the convolution operation it is little bit different from the matrix multiplication yes it involves the mathematics one but it is not the same okay it not the same you need to understand the convolution mathematical operation in the convolution mathematical operation only that is there okay so i told iska and iska will be the different okay yes mohit you are also correct you are also correct only i am talking about the it will involve the matrix multiplication yeah here the metric multiplication is the element wise that is the correct answer yes you can do the filter transpose so it's all the mathematics our thing is that that's it and that is the convolution operation okay so you can see you can see this like okay with the different different filter size different different answer will be there okay this is the first answer this is the second answer this is the third answer you need to just hold the one second just one minute okay so i think uh you had understood the theory in the theory class i i i am little bit surprised that you are having the so much confusion in the because i need to tell about the coding part but i don't think that will be covered in today's class so definitely we'll see that particular thing in the next class 100 percent because in today's class you need to understand the concept of the convolution no issue at all okay so yes but but be prepared in the next class also so that you can get this particular thing okay so oh yeah so this is the convolution yes this is the convolution this is the sorry this is the filter this is the filter 2 this is the filter 3 okay uh i am taking your question in after the 10 30 or 10 40 okay because uh right now i need to tell the much more thing okay so this is the convolution okay this is the convolution so this particular are the input size now there will be the different different filter size if one image becomes the extent of the filter image you have filter filter we use then that could be the answer okay so i that is all about the first operation the first operation is the convolution the second operation is the pooling the third operation is then here the relu operation is also mentioned okay now after that the fully connected okay so that can be there okay that can be there so now we had completed the convolution after that we need to apply the relu operation okay a filter in the cnn act as a pattern detector each filter slide over the image perform element wise multiplication submission and produce the one feature highlighted where the pattern 100 percent 100 supposed to be written the complete theory of now now now we had done the convolution convolution convolution comes here okay now we need to apply the pooling pooling ka matlab kya hai image ko shrink karna hai okay image ko shrink karna hai now we need to pick a window size we can take any window size either two three four you can see we need to pick the stride or each window ka we need to take the maximum value so i will tell what what we need to do so here that can be the pooling suppose this is the convicted image or the filter filter damage or after the convolution we had applied this convolution ke bah we had applied uh we got this particular as a image okay village mimics know we need to get the pooling how we need to get the pooling we need to get the pooling while 1,2,3,4,5,6,7 so 7 x 7 image okay 7 x 7 image 4 x 4 convert that means we are shrinking but what we are how we can shrink we need to take a window size so we had taken the window size as a 2 okay so 2 window size then how we can decide so this is the 2 x 2 okay this is the 2 x 2 so this is the 2 x 2 now in this whatever the maximum value is there we need to write this is the maximum value so this can be the maximum value okay next time what we need to do we need to decide the stride next time i am taking this so out of this what is the maximum value this is again one now next time it is taken this complete value now this is the 0.33 but here what we are doing we are considering the stride as a 2 we are not considering the stride as a 1 okay yes takes the maximum value from the small reason two of the feature 100 percent but it is all also depend on the stride now here stride 1 stride 2 2 okay so that is there now one more thing there is not only the single pooling is available max pooling he option nahi hain average pooling bhi option hain global average pooling bhi option hain or max pooling bhi option hain so normally we are using the max pooling max pooling ka concept kya whatever the maximum value in this 4 we need to write here but in the average pooling what we need to do what we need to do we are having the 0.11 0.33 minus 0.11 plus 0.33 yeh poore ko average bhi le sakte hai and that we can write over there okay so that that can be the pooling concept okay that can be the pooling concept so that can be the pooling concept so this is called as an global uh sorry the average pooling is also the one option as well as the max pooling is also the one option so this is also the maximum value here we are doing the stride as a 2 here you can see first we have taken the stride as a 2 so this stride and filter size this all can be the hyper parameter this is the trial and error method and we need to change during the run time during the training time we can change this stride this filter size and all okay we can change okay why is max pooling generally prepared over the average pooling for the feature extraction in the cnn which yes i am telling this the max pooling this the max pooling is the better option because what it indicate here that means that particular value will tell that our feature is available here so this higher value higher value will define the feature in the better way okay that means that particular image is having that much of the brightness it is the highest or the strongest feature mapping is there that's why we are taken care of the maximum here there will be the four value that means you have a very less value you have very less value or you have a strong value so why we are why not we are considering the strongest value over there okay why not we are working or is the strongest over there okay yeah sharp feature this all can be the same kind of the answer is there it will tell the sharp feature and all thing is there okay so this is the pooling kind of the concept is there here you can see that there are the maximum value we are taken okay so once we are done with the max pooling then we can go ahead and we can think that we have 7 cross 7 filtered image we had converted into the 4 cross 4 okay now next in the next process we are using this okay suppose we are having the input we are having the filter then we had applied the convolution then we had applied the pooling and then we have the pooling now we have the pooling so this is the pooling if we are having the stack of the image so we are having the different different filter image okay now that is that is the pooling operation so first we had done the convolution convolution done then pooling the two concept is done uh there is a one question right now we are talking in the term of the black and white okay right now i am talking about the black and white because in the black and white channel is only the one that means suppose that our image input image is 28 cross 28 into one that one is telling that we are working on the black and white that means our size is that is 28 sorry 20 sorry 28 cross 28 but if it is in the rgb then we can write or we can update this as a three to this is the first this is the second and this is the third so this is the 20th cross 28 cross three but that we need not to do that particular the machine need to be too but their representation are like this okay their representation are like this phb there are the multiple channels there that's it okay we need to go ahead like this this is the same pattern but there will be the input will be changing okay input will be changing now the two operation we had completed we had completed the two operation now the third operation will be the relu and that is the activation function to convert the data into the non-linearity i mean non-linearity ko ko karna hai create okay non-linearity ko create karna hai so what is the use case of the non-linearity ke hamay jo hamara feature linearly learn karra tha rather than we need to learn them into the linear wiener humane okay so now for that we need to use the relu operation real operation kia formula kia hota hai that mean max 0 comma that particular value okay that means jitney bhe negative value hooghi jitney bhe negative value hooghi that will be comes as a 0 and that will be the positive value is comes as this particular so now here you can see here you can see all the negative value are comes as a zero okay while all the other value can be considered this so relu operation is the here we are not using the different operation because the convolution can there he there will be the fixed thing is there that we need to use the convolution then we need to use the pooling then we need to use the relu then only we need to go ahead and we need to think about the heat forward neural network or the mlp is there multi-layer perceptron is there so relu is the fixed activation function we are not using the different activation function in the cnn or could use karnay so you can go ahead and you can use at the different layer but we cannot use the different activation function because it is the fixed definition is there and we need to use that particular function okay so now the this is called as an relu activation function so relu activation function is doing that particular so we had understood this three thing okay so relu different images this is the image page one image page two image page three and this is the what we are saying after the relu there is a one relu two and relu three so this particular thing is there okay now now you are thinking now you are thinking this is the perfect uh explanation of uh class till now this is the input input we are applying the convolution process this is the first approach now after that we need to apply the relu or then apply the pooling so either the relu is applying after the pooling or before the pooling it's up to you if we need to apply on the bigger matrix bigger matrix okay but here here we apply both the things are same because this is what we can do negative value to zero and here what is negative value to maximum max pooling that will be considered as a zero so either this process we can switch this particular two process either you can use the convolution pooling then relu or pool the convolution relu then pooling but this is the perfect combination first we need to apply the convolution then we can go ahead with the relu and then we are applying the pooling so that we need not to deal with the negative value in during the pooling during the pooling negative value okay so that is all about that can be the perfect feature map okay this is the perfect feature map okay so this is the complete operation about the conversion for the feature extraction not for the classification classification okay so i hope this much things are understand by you this much things are understand by you if you are then i need to move ahead okay now now now now what what you need to do the deepest stacking that means we can use the layer i am open your mic because just after 10 to 15 minutes okay we are completing this particular complete theory then you can ask the complete thing okay yeah deepest stacking is there now the layer can be repeated several times that means we are not using the single time single time we convolution use multiple connect we use so the convolution relu then we are applying the further scandal then we can concur then we are applying the pooling then in the gallery and then we are applying the pooling then convolution then we are applying the pooling so different combination performed on the Eğer for the more feature extract chain okay more feature extraction oh okay more feature extraction is we can perform any number of the examined so it's It's a trial and error method. We have to use how many convolutions we have to use and how many pooling is up to us. Okay, again, it's the hyperparameter tuning. We have to get the better result. Two convolutions we have got the better result. One convolution we have got the better result. So that can be considered. Now we got some of the input. Sorry, some of the output from this particular input. So this is the deepest taking. Okay, now that is all about the feature extraction. Okay, that is all about the feature extraction. This is all about the feature extraction. Okay, so this is our feature extraction. Now our next combination. What do we need to do the classification? We need to do the classification. Either the dog or Kate ki image dihi hai. Us ka classification bhi karna hai. So now we did the feature extraction. Yahaan tak feature map we had created. Now we need to combine it into the fully connected layer. Now fully connected layer. And MLP are little bit same. Okay, I am not telling the exactly. But it is little bit same. Okay, we can use any SLP, any MLP for that. Ki kuch bhi use ka sakte. Now every value get a vote. Okay, every value ki voting hai. So this can be there. This can be there. Or this can be there. Okay. Now what you need to do. We got this input. Abh is ko kya kal do. Flatten layer apply kal do. We apply the flatten layer. Ta ki ye sara input mulch ho ke jai. Sara input mulch ho jai. That means this is the 2 x 2. This is 2 x 2. Now this will be the 4 x 4. That means 12 x 1. So now this is the flatten layer. Okay. Now we are converted the flatten layer. Now after the flatten layer. After the flatten layer. We need to make a MLP, any. Just like this. There will be the. Now this can be considered as an input. Okay. Now you can choose the multiple hidden layer in between. Yaha par multiple hidden layer you can use. Okay. Multiple hidden layer you can use. It's up to you. That means if you are making the any architecture. You can use any MLP over there. That contain this is the input layer. And this is the output layer. Because output layer pe there will be the 2 combination. 2 classes is there. That means 2 neurons will be required. So input me kitte neuron required hai? 12 neuron. Because there will be the 12 input is there. And output me kitte neuron hai? That means 2. But in between there are multiple hidden layer 1, hidden layer 2, hidden layer 3. You can use the multiple neuron aur kitna bhi combination you can draw. Okay. Jo hamne MLP dekha tha. Wohi multiple operation you can draw. And at the end you got the probability value. That 0.92 percent there will be the chance is it is X or we are considering this as a dog. So 92 percent chance hai ki wo dog hai. And there will be the this particular class is there. Okay. So there will be the different different operation is there. MLP is just like a multi-layer perceptron. Jho hamne last class phe padha tha. Multi-layer perceptron. Where feed forward neural network. Or fully connected layer. All the things are same. Okay. All the things are same. Jho bhi hamne yeh dhekho yehaan pher. Yeh jho hai input. Or yeh output. Iske bich meh you can use any network. Jho classification kerti. Okay. Jho classification kerti. That's it. That means. Hameen kya hai input chahiye. Input ke baad. Hameen convolution operation perform karna hai. Then relu perform karna hai. Then pooling perform karna hai. Then. Fully connected layer. Or then output. Now with this fully connected layer. You can use anything. Khethine number of the combination. You can use. Like this. So this is the combined effort. Here you can use the multiple. Ek yeh use kal liya. Ek yeh use kal liya. Ek yeh. Tien baar use kal liya. That means three hidden layer. This is the three hidden layer. You can stack any number. It's up to you. Again. It's a trial and error. Khethine combination b. You can choose. Now you can. We are pulling up all the thing. Now you need to think about this. You need to think about this. After such deep staking. How the interface output and matrix is decided to be stacked in the actual form of the classified device. Can you give some light? I'll tell. In MLP. How do we choose the optimal number of the hidden? Again. I'll give the answer of the Sanjay. That it is not like this. It is only the trial and error method. How many hidden layers choose to choose. This is all the hyper parameter. From the domain knowledge. If you are running the thousands of programs then only you can understand. How many hidden layers? Yes. The answer is good. In the MLP. In the MLP lecture. We have seen. First we have created an architecture. Then we have created a layer rate. Our accuracy is not increased. In the end. Equal layer increased. Our accuracy is not increased. So it is not like this. It is not like this. And then we have used ADM optimizer. Then our value is increased. So that means it is not up to us. We need to determine the better accuracy. Now Anuja has asked that we are deep stacking How the output matrix is decided? Now this is the question So now we are doing what is the input We are extracting the input I am taking the example dog and cat So dog has some features Feature 1, Feature 2, Feature 3, Feature 4 A number of features we will extract during this Here we will extract the feature Now we are giving this into the training part That means that this is the type of feature Then this will be called as a dog This is the type of feature Then this will be the cat So this is the training So during the training Next time new dog image goes like this Just like this This is the dog Suppose that I am giving this So this is the feature match So again it is going into the model So here the thing is there Now you need to consider Okay Sir can you please help me how mathematically how it is going to fully connected layer and how it is chosen as a I will tell mathematically I will test test with one image I will test with one image Okay one neuron in the output for binary classification is 1 Is it not in the slide 36 I am one neuron in the output layer for binary classification So okay okay okay okay it is not the probability it is not the probability yeah I am telling yes yes yes yes Actually this is the we are considering Yahaan per humne softmax activation function use kal liya hai Okay we are using the softmax this is just like an example If we are using the sigmoid activation function Then 100% value is 92 And is ki value 0.08 Then only probability is always 1 But we are using the sigmoid activation sorry We are using the softmax activation function This can be used for the multiclass classification So in this whatever the maximum value We need to consider this This is the multiclass classification is there Okay so it depends on the activation function Okay so it is there So now I need to back propagate Now our right answer should be the one That means the answer is 1 But our answer is 0.92 And if the answer is the 0 That is the Y actually is there So Y actually is this one But Y predicted is this one So now this one is an error We need to go ahead and we need to do the back propagation During the back propagation what we can change Here is the filter size Here is the filter size First we need to wait Wait update Okay Now here is the filter filter Update Then here is the filter update Then here is the filter update Then here is the filter update This will be updated Then again it is running as a Forward propagation Forward propagation Now next time we are getting this as a 0.93 And this is the 0.49 That means now this will be rectifying This is going towards the 0 This is going towards the 1 Then only our answer will be the better Okay so this is the back propagation So here you can see the little bit of visualization Here the 32 cross 32 Error for 0 should be 0.51 But we have to answer 0 Because the right answer is 0 But this will be the 5 So this is the 0 point That means error is this one Sorry here the error will be the 5 Okay here the error is 5 Do not confuse with this This is the 5 Okay Yeah Minus 5 Minus 0.51 But error is considered as the 0.51 Okay Because it is taken in the absolute matter So now For the Anujai There will be the experiment is there So 30 cross 32 Cross 32 3 image Okay 3 will be the depth That means this is the RGB image Okay Now we are having the filter size That means 5 cross 5 into cross 3 So this is 5 cross 5 And 3 Now you can see This we are using And our feature Convert We have a convolution operation perform With the different different stride And we have 28 cross 28 And 1 Convert We have created So we have created So we have created So we have created We have created We have created The feature Okay Now This is the 28 cross 28 And this is the activation function Create Okay Now you can see This is the thing That is the thing That we have a new image That we have created That we have created 6 different activation May appear created Okay Now We have created Convolution and Relu operation And we got this Okay Which we have made Mathematical operation perform It is up to us We have coded Now again We have created Information and Relu operation Okay Then We have created This way We have created Okay Now you can see We have created connected layer पर चले गए और उसके बाद we are applying the softmax और उसके बाद whatever the answer is there we need to get the 0.9 to like this okay we can't tell about the complete mathematics here if I am I am having the complete one to one hour class then I need to solve that particular day एक पूरे एक घंटे के अंदर एक calculation हो पाएगा because it is too much difficult calculation is there but you need to understand the mathematical operation कि क्या क्या operation perform करना है the convolution operation perform करना है then क्या करना है pulling operation perform करना है then operation perform करना है then speed forward fully connected layer use करना है then output करना है that's it okay if you need to do that particular operation to two cross two key image लेके your filter का size लेके you can go through okay so what is the reason of having only now it's up to you it's a random thing five cross five cross three it's up to you you can take any filter size okay you can take any filter size during the propagation it is updated okay size same रहेगा बट फिल्टर के points update होते जाएंगे that is the thing so when the training a cnn on the small data set where the standard data augmentation dropout aren't enough to stop over hitting what is structure or incisive strategy do record before that हम में तो यही बात करूंगा कि if that kind of the situation is there that is asked by the Ganshan sir that we need to take the input input is not in our hand input तो हमारा fix होगा तो हम input को सबसे पहले resize कर दें that is our in our hand कि हमने जो भी input है उसको resize कर दिया यदि वो image one 1024 1024 into 1024 में है तो इसका use करने की बजाए we can go ahead and 128 cross 128 में चले जाए यह सबसे पहले करें so that filter का size हमारे पास आसान हो जाए और हमारा जो complexity है that will be the easy manner हो जाए then उसके बाद हमको रेलू operation perform करना और fully connected layer use करना that we need to do okay so here you can see there will be the images there then we need to see the in the first convolution we got the low level feature then mid level feature high level feature then we need to do the trainable so here in the first layer first convolution we need to extract the low level feature just like dog or cat है उसमें जो air है आई से यह सबसे पहली बार में find out कर लो mid level का feature क्या है उसका solder के साह है उसका body structure high के कुछ features है जो आख के अंदर रेटीना है इन सबसे भी वी केंटेटेटेटें भी the high level feature is there okay so suppose this is the car and we had applied इस सबसे पहले convolution apply किया रेलू then convolution रेलू then pooling convolution रेलू convolution रेलू pulling convolution रेलू convolution रेलू then pulling then fully connected इसके बाद आर result की इतना सबसे हाइस है ये गार फिर इसका ये truck रेफ्टा एर फ्लें रिता सेप और रिता हाल्स so this can be there okay this can be there so this is all about the convolution operation okay this is all about the CNN so I need to tell about the coding part but definitely I am telling the coding part in the next class because it is taking the time again so if anybody having no no no issue no no question is the basic question it's a very important thing you can ask the so many questions no question is the basic question it is very much easy it is very much important thing okay so no because i want to ask something so i am allowing the mic because after that i will give the mic as you are good morning good sir my question is if there is any error in the predicted output every time we are getting we got the error we do have mathematical formula for that we use gradient descent maximum like estimation likewise do we have the mathematical formula for tuning the hyper parameters that we are talking about number of strides and then input size the patch input size and then the filter size is a mathematical formula or no no it's a trial and error hyper parameter tuning kubhhi bhi kuchyaj fix hoti model mein jesai gradient descent vague propagation but joh hyper parameters hoti that can't be fix hyper parameter ka meaning ji yeh hai ki that things that that we can change during the training un sare parameter ko hi just don't we can how to go move бес mahsels how to behave in each parameter so this is what we can query after working may yet do zero alternative but come you can learn to parameter to hyper parameter definition is that we can change the training during change but actually here there are multiple variables we have the number of strides, size of the strides, number of inputs I understand. So you need to make a combination. You need to make a combination first check with two strides, then check with three, then check with four. It is like this there are lots of combination is there there is but I am telling that for you people it is a little bit difficult but if you are training the thousands of the program you know very well that means it is the domain knowledge is required that is the best that is the beauty of the machine learning deep learning that as much as you run the program you will get the clarity that sir in one stride there is nothing in one stride sir always we are taking the two. The next one will be the answer if you are running the thousands of the program. Like last time when I was doing MLP we had made model 1 and model 7. If I am preparing that particular model so I know the basic understanding about this that with four layers there is nothing to do with the work. I have 10 thoughts about transfer learning that you have heard of mobile net or inception v3. There are 196 convolution layers that are used in 196. So we are talking about one convolution here. So they know very well that 196 will be the work. So domain knowledge is very much important for that. Sir one more thing. You mentioned that when we during back back propagation basically we update the weights and while updating the weights it ought it also updates the filter right 100 percent so can we say that it also updates the strides 100 percent stride hum nahi stride humara hyper parameter we will break propagation change nahi kar raha big propagation is the mathematical method joh kebal hemara derivative create kari derivative kya ho raha hai derivative of the error with respect to the weight but it will not it will not telling the derivative of error with the respect to the strides stride kya ko ko combination hinii nahi hai stride pooling stride pooling yasab ko hikish filter filter filter kya ho raha hai na haan to filter vho yas derivative of error with respect to the filter filter is also the weight model kya ho beth hi pata hai woh hama hama na naam diya hai usko filter model kya ho kuch na kuch weight hai okay okay and then one last question about strides so you can get a stride that we can get a stride stride three cross three it's up to us basically this way we can get a stride stride or fixed window non overlapping stride consider two options available Yeah, mathematically, two things wrong, mathematically, two things are wrong. Recommendation is different. If you are overlapping, the output size will be bigger. If you are overlapping, the output size will be smaller. Notice. So, this is our choice. If we have the output size is smaller, then we can have some position that we are going to die. If we have dog and cat, we know that we are going to die. Correct. So, there is a different scenario. So, only for you people, you need to understand the concept. Sir, strike means this, this means this. That's it. Right. And sir, one more question. And the last question. Sir, regarding feature extraction. So, you mentioned that when we apply the convolution, the image gets compressed. Right. 100%. So, the convolutional image is compressed. And when we do the pooling, what happens to the image? Does it also get? Again, shrink is. Again, shrink is. Again, shrink is. Convolution is. Then, pooling is. the maximum feature. Right. You are already putting on the matching. You are both. Sorry. In pooling, the 4 points are. Highest. The highest point. That first, which we get the highest point is. That the highest feature is. And highest 5th feature is our highest good feature. That the minus. Which we get we remove. Or 0, which we get the extra. So, Why do we get the output? Why do we get the output size increase? Because already, so many mathematics is so. So, we get the type of feature I don't take away. foreign like this okay so it's like this the we often hear that the early layer of the cnn learn the feature yeah it is there hundred percent minus slide by the time starting low feature extract medium feature last feature okay it is like this if they are just texture matcher how robust are they are actually in the real world scenario it is very much helpful why کیونکhi ہمارے پاس we are not working on the single image ہم one lakh image के اوپर train कर रहे हैं in the real world scenario okay हम एक दो layer एक दो image के उपर नहीं कर रहें matching okay इसलिए हमारा robust है model कि हम एक दो image के उपर नहीं कर रहे हैं एक लाख image के उपर train कर रहे हैं कि एक लाख image से इतने number of feature generate होके आ रहे है so उतने number of features है हमारा वो फिर हम test कर रहे है उसके बाद after that we are testing that particular thing so it is not the very easy thing it is the very big combination is there so it will 100% robust in the real world scenario okay the CNN and YOLO are the complete different thing YOLO is used for the object detection but CNN is used for the feature extraction and the classification although inside the YOLO the CNN will work okay YOLO के अंडर भी CNN ही वर्क कर रहे है okay but YOLO is used for the object detection so it's a complete different application is there but CNN is a super sorry CNN will be the super set while the YOLO is the one of the algorithm that can use the CNN model so I am ending this particular class because that kind of the question are coming so in the next class also we are completely dedicated for the CNN in the because CNN is the most important algorithm okay so CNN पर ही focus करेंगे बट CNN में आप थेओरी नहीं बता हूंगा directly we are moving towards the practical implementation जो हमारा practical होगा कैसे input data लेना है कैसे train हो रहा है all these things बट जितना भी आज बता है whatever I had told in today's class that all things are considered in the next class ये सब चीजे पता होना चाहिए अधर्वाइस इस अगें little bit difficult to understand okay so thank you all thank you so much for connecting I am ending this particular class okay so we can say the texture measure are preferred over the age or CNN in the agent 7 yes 100 percent 100 percent the texture measure are preferred okay if the single the if it is the very small image is there then we can prefer the texture measure but हम हमें ट्रेनिंग के थ्रू हम एक एक इमेज को कैसे matching करेंगे if we are having the one leg image then we need to go ahead with the CNN it is very much easy okay okay so that is that's it from my side we'll meet in the next class and we'll start the CNN part again for in the coding part okay so next Saturday we'll get that particular thing so thank you so much for connecting thank you thank you thank you all okay okay fine I am ending this particular class uh I'll give this particular answer in the next class okay I am telling does in the next class Anuja you can open the mic and we can think about this because I had another class from 11 okay yeah so just bear with this okay okay okay okay so thank you so much I am stopping the recording you