# Advance Machine Learning

- **Course:** 6103 - Advanced ML
- **Recorded:** 2026-10-03 09:26
- **Transcript:** 686 segments, 10925 words
- **Made by:** deepdml/faster-whisper-large-v3-turbo-ct2

---
okay so good morning all yes yes good morning good morning so we'll just wait for two to three minutes that everybody have to come then we'll start the session yeah good morning good morning okay so we'll start the session so first time sharing the screen so in today's class in today's class we'll start the deep learning kind of concept okay deep learning of concepts so in the last class we had already covered the uh deep sorry the machine learning kind of things where we had seen the one algorithm for the regression that is linear regression after that we had seen the one classification algorithm that is a logistic regression okay so in that particular class we had already little bit started with the gradient descent that how we can update the weight and what is the impact of updating the weight so we had seen all these things in the logistic regression now we are totally coming towards the deep learning so

in the theory also you had we had already started about the perceptron and all so we can now discuss the single layer perceptron so that you can able to learn how the this perceptron will work okay so for understanding this we need to understand the mathematics behind the perceptron okay the mathematics behind the perceptron so if we are talking about the mathematics of the perceptron then there will be the two things are available the one is the forward propagation and one is the backward propagation so this is the very starting thing this is the very starting thing is there just like deep learning so the first module in the first module this forward and back propagation we need to discuss about the perceptron okay about the perceptron so we are taken the very simplest neural network okay we are taking the very simplest neural network so in the deep learning this is the very first uh concept that we need to learn

okay so first thing is that we need to understand the forward propagation because perceptron means we are having the one neuron and we are considering that that as a perceptron we are giving the input or escape path we need to apply anything and we need to get the uh thing okay so we are now taken the very simplest neural network and that will be the one input neuron one hidden layer as well as the one output neuron okay so we are considering like this if we are having the one input neuron one output neuron as well as in between one hidden neuron if we are having sorry if we are having the single hidden layer if we are having the single input layer single hidden layer in the complete architecture then we can say that particular model is a deep learning okay so machine learning deep learning case difference here we are having the hidden layer where we can move in the more feature extraction bar bar we can perform the more mathematical thing so this is the very first concept is there

okay so now i am considering the one input neuron one hidden neuron and one output neuron and if we are going from left to right like this okay we are moving like this that means from the input we are moving toward the output then that particular things are called as an forward propagation okay so in the forward propagation what happened we are doing the mathematical things in this so suppose that we are having the x x is an input okay x will be the input so this theta 1 theta 1 is the weight okay weight between the input layer as well as the hidden layer okay input or hidden layer ke bich ka weight will be called as an this particular thing okay this is the weight that will be the theta one and this is the hidden neuron now hidden neuron will be tell us what is this this is the weight okay this is the weight then the theta one so we are doing the input with the dot product with the theta one so this is the product we need to

do okay at this particular thing so this particular neuron is of two part case this particular are the two part one is the linear combination or second one is the activation function okay so suppose this particular thing is there now x into theta one so this is the that particular now this g is the activation function and we are applying the theta one into x that is also there so this is called as this particular so the output of this particular neuron is like this okay output of this particular neuron like this now we are doing this with multiplication of the theta 2 okay theta 2 we are doing the multiplication okay so now theta 2 is multiplying with this so we are multiplying like this so the a 2 theta 2 we are doing this now we are going doing this particular combination again that means this is the input and we are performing the theta 2 so we are doing this dot product and we are applying the one more activation function

and we are getting this particular output and this is called as an output that will be called as the predicted output okay so this is the overall forward propagation is there okay this is the overall fine uh uh forward propagation is there so forward propagation is going like this so there will be the each neuron is having the two thing one is the linear combination of the input and bit and second one is the activation function activation function will be the same for all the layer no we can change okay it's it is in our hand okay it is in our hand that we need to apply the which activation function in the bridge layer okay because during the during the coding during the coding or during the writing the code we can apply sometimes the sigmoid operation sometimes the softmax operation so it's up to you okay so you can change the activation function so why do we need yes the activation function ki need yeh hoti hai ki there are the linearity in

there okay because we got the linear combination so if we need to add the non-linearity okay non-linearity in the model then we are requiring the activation function so activation function ka linear combination ko non-linearity me create kardena okay linear uh linear combination ko non-linearity me kardena okay i'm not allowing i had no option okay uh you can come with the iit patna uh email id so you can directly join i can't allow him okay so yeah so yes this is there the non-linearity if we need to convert it into the non-linear manner then we can use the activation function so activation function we need to do actually the i don't know what happened because but i don't have a permission to allow you like this okay now does does it possible to have a multiple type of activation function in the single no no no we cannot apply the multiple type of activation function in the single layer of the neuron like a few neuron can be the one activation function no no no this is not like

this anucha has asked the question so we cannot allow in the single layer we need to apply the single activation function so during the forward progression how do weight wires and activation function together to convert input into final yes it is like this this particular combination whatever i told just like the input is the x now theta 1 is the weight now we are multiplying this and we need to apply the z so this is the z2 that will apply the combination of theta 1 and x now the a2 we need to apply the g over this two okay so this is the hidden layer output now we need to multiply with this to new weight and this is how the linear combination is there after that we need to apply this so this is the output so this is how forward propagation work forward propagation so you had asked because has asked the question so this is there okay sir one suggestion can you please refer the theory class in order to be consistent with the mathematical notice

it will help us to relate the thoughtful uh theory class theory class is also covered this particular thing i had already the sir had already informed to me that he covered the perceptron so uh he's telling like this but i'll i'll match this particular the z is equal to wtx wtx plus b is just like okay if you are writing the wt x plus bias okay so both the things are same the wt is called as a theta here okay and the x i am talking about the programming concept that's why we are writing the theta and x is the input and we are doing sometimes we are doing the transport transpose all not all the time plus bias okay if some of the bias is there then we can add the bias so all the formula is same okay can you share the detail once so perceptron are the hidden perceptron are the neuron only okay perceptron is the neuron it is not like key in hidden neuron perceptron all the input neuron ko nahi or output neuron

ko yet this circle is called as an one kind of perceptron okay one kind of the perceptron no we cannot apply the multiple activation function over there we cannot use this one hidden layer in multiple activation function because we got the linear combination and we have to convert that's why we are putting the activation function okay we are putting the activation function so this is there but now the output is sorry now we cannot apply the different the g is fixed here the g will be the sigmoid though is puri layer me the activation function is the sigmoid only okay so now we got now we got the forward propagation in the forward propagation what we can do with there the formula is almost the same either we can say like this or the theta plus this theta one into x all the things are same okay all the things are same so this is how we need to do okay sir if forward propagation only calculate the output then when uh and how the neural neural network actually learn i'll tell

forward propagation yes yes that is the that question is there that's why i am moving ahead okay easy question answer we are moving ahead so you had already read the forward propagation now this is the output now a3 will be the output and by will be the actual output so this is the predicted output and this is the actual output now the predicted minus the actual or the actual minus the predicted this is an error okay so what is an error so we need to write the cost function okay cost function either we can say the cost function or the errors so what is an error the actual minus the predicted and we are doing the squared off so that we can remove the negative effect sometimes the predicted value will be the higher sometimes the actual value will be the higher that's why we are doing the squared thing so this is the cost function okay this is the cost function or we can say that error now if the error is so much high okay so if we are doing

the one forward propagation then you are getting some of the error so we need to reduce this error okay we need to reduce the error there and for reducing the error for reducing the error we need to do the back propagation okay for reducing the error we need to do the back propagation and during the wake propagation they are actually the neural network will be trained okay the divided by two is just getting the average because this is one this is second so this is the divided by two okay so that we can get the average error okay this is called as mean squared error okay this is called as mean squared error so in the forward okay we cannot no no no in the forward propagation we are only doing the multiplication and applying the uh that applying the activation function only we cannot do sir can you please tell the concept first then we can go through the question yes yes yes actually that is a problem because there are multiple people are there they

are flooding like a question so yes just wait for the minute just wait for the minute after taking the just 15 minutes okay i am explaining each and everything after that you can ask the question just 15 minutes okay so i am taking all the question after the 15 minutes okay so just bear with this yes it is very good suggestion because if some dead things are happened then complete time will be collapsed okay yeah so now we are having the input we are having the hidden neuron we are having the output yeah so we need to do the x that will be the input multiplying with the theta one and we are getting the linear combination after that we need to apply the activation function then again we are multiplying with the new weight and after that we need to apply the output neuron then we are getting the activation function and then we are getting the output so this is the forward propagation we are getting now we are getting the target we are already

already having the actual the actual minus out predicted will be the r error so we need to reduce the error that's why we are we need to go ahead and we need to learn about the back propagation okay we need to learn about the back propagation so during the wake propagation what happened during the back propagation we need to update the weight okay during the back propagation we need to update the weight so this is the first event and this is the second weight so the weight between the input and hidden layer is called as a theta one and between the hidden and output will be the theta two so we need to update the weight okay with respect to the loss function okay we need to update the weight using the loss function so how we can update the weight so during the relationship we need to get the so this is the derivative of j theta j theta ka meaning kya what is the j theta j theta is just like one by two the actual weight minus the predicted weight

and we do doing the square now we need to update this with respect to the theta one so this things also we need to do and these things also we need to do so we need to update the theta two and we need to also update the theta one so this is how we need to do if we are getting this particular value and this particular value is called as an gradient descent okay gradient descent okay this is the gradient descent so if we are getting this then how we can update the weight this is the weight new okay this is the weight old then there will be the plus and minus in the last class i had already uploaded i had already told plus minus the learning rate divided by the j theta so this is how we are updating the weight either we can say this so we are writing here the old or this is this we are talking about the theta new so theta new update the old will be there and there will be the plus and minus sometimes the gradient descent in the positive manner sometimes the

gradient descent in the negative manner how if we are going like this okay so some of sometimes your error here sometimes the error here and we need to reach here okay because we need to and this is how our movement is there so this movement will be told by told by the learning rate so this is the learning rate and this is the things that we need to do so during the wake propagation during the wake propagation what happened during the back propagation only the weight updation is there and for the weight updation what things are there we need to update we need to use the gradient descent and we need to multiply with the learning rate and this is how we need to reach toward the error is a zero okay so the ideal situation is that whenever the error will be the zero this will be the ideal situation for us okay now this is the complete things about the forward propagation already we had explained okay already we had explained that theta 1 z

theta 2 all the things and at the end we are getting the performance and this performance is called as a loss function okay we are calling loss function error function both are same okay either we can call the error function either we are calling the that now we need to start with the weight updation now first thing is that we need to update and we need to apply the j theta with respect to the derivative of the theta 2 that means we need to get the iska derivative with respect to this okay so how we can update so the derivative of j theta with respect to the theta 2 that we need to find out okay that we need to find out so we need to apply the chain rule okay we need to apply the chain rule that will be called as a partial derivative so this is the j theta and we need to do them first with this the j theta with the derivative of a3 so this is the first now we need to apply this thing the derivative of a3 with respect to the z3 here we are writing

the three okay here the typing mistake is there just like this okay now at the end we are doing like this okay the z3 okay divided by the z theta 2 so this is how this is how we are getting this is how we are getting the j derivative of j theta divided by the derivative of j theta 2 okay so this is how we are updating the weight oh this is how the j theta 2 is updated so how this is updated that this is updated the theta two and that will be the new one we are saying the old theta two that will be the old one minus or plus whatever the thing is there then there will be the learning rate okay and there will be the derivative of j theta with respect to derivative of the theta two so this is how we are getting the learning rate we need to fix this is the hyper parameter so we need to update during the training we can update so this is the 0.00 one will be the y default thing and there will be the old weight is there then this is how we are updating the new bed now if

we had updated this weight also we need to update this weight then again we need to do the forward propagation so during the first propagation during the first forward propagation suppose our error will be the 0.80 then we are doing the back propagation and again we need to do the second forward program now our beta now our error will be the updated as the 0.78 this is how we need to do the multiple forward propagation multiple backward propagation forward backward forward so this complete thing one forward propagation plus one backward propagation is called as an one epoch okay we are calling this as a one epoch okay we are calling this as a one epoch so this complete things we need to do so suppose that we had updated the theta two and now how we can update the theta one okay how we can update the theta one so here the control here the thing are there here you can see okay if we need to update the j theta okay if we need to update okay

if we need to just wait okay we need to remove little bit things so that you can okay so that you can understand yeah so if we need to update this j theta okay with respect to this theta one okay if we need to do this okay if we need to do this then how the j theta we need to go in like like this the j theta with this okay then a3 with this now this with this now this with this and this is how we can do okay so this is how we can update the j theta with the theta one so we we can write the j theta here the j theta with the a3 yes a3 with the z3 yes z3 with the a2 here this particular the a2 with respect to the z2 yes the z2 with the theta one now we got this also now if we need to update the theta one old okay sorry new new new okay so theta one old plus the learning rate and the derivative of j theta with respect to the theta one so this is how we can update from it okay this is how we can update the weight and we got the complete

big propagation okay complete big propagation now in the next time your theta is updated theta because we cannot change the logically if you are thinking logically then we cannot change the input is the fixed thing only one thing is there what we can do okay that will be the weight because all the other things are the same now we need to next time we are using the new weight so here are the new weight so in the every iteration in every iteration we can go ahead and we can update the weight and through the updation of the weight we need to get the new error function and every time we are using that new error function and again we need to go ahead so every time the gradient descent is updated and every time the new weight is updated so this is how our weight is updated and uh when we need to stop when we need to stop suppose that sometimes our computational we need to restrict over the computational time so sometimes we need to run

over the 50 epoch sometimes the 60 epoch sometimes the 100 epoch because every epoch can takes the uh more computation power okay because here are lots of mathematics is there so when we need to stop when your error will not change suppose that 51st epoch way your error will be the 80 52 0.80 53 0.80 54 your error is 80 so some if the your error is uh not changing or it is not reducing then we cannot we can stop after the 54 or 53 whatever is there sometimes what happens in the 51 0.80 52 0.78 and 53 0.81 83 just like the error is increasing okay so we can stop at the 52 okay so for for stopping there will be the different kind of concept is there that will be the early stopping or callback all the things are there so we can modelize this that particular thing so this is how we are updating the weight okay so this is the visual uh representation okay this is the visual representation is there so if we are having the input so this is called as an

forward propagation and this is called as a backward propagation so in the forward propagation what happened the theta 1 theta 2 and the linear combination then the activation then the linear combination then the activation and this is how we got the z theta and we are having the y also now in the backward we need to update so the first updation is this this and this this is for the first thing and if we need to do the theta one then we need to use this this this this and this and this is how we are updating the theta one as well as the theta two so this is called as an forward propagation as well as the backward propagation so this is all about the uh concept about the single layer perceptron so this is called as a single layer perceptron where the single neuron is there as well as the single hidden layer is there suppose if the hidden layer are increasing and the neuron in increasing then the mathematically things are behind this

in the programming there are the different kind of concept is there We have a lot of concepts made in programming. Already there are lots of classes there. So we need not to perform this because inside the Keras already all the things are there. Only we need to call. But mathematically things are going like this. If you had understood this particular thing then only you can understand the back propagation as well as the forward propagation of this. okay so if anybody having any doubt right now then you can ask one by one okay yes you can write the question after that we will start the coding part sir what is an epoch yeah epoch is just like an iteration okay epoch is a terminology that will carry the one forward propagation and one backward propagation oh one time forward propagation or one time backward propagation this will be called as one epoch one epoch suppose that you are accuracy or your error

will be the 0.80 to second epoch test this is the 0.78 the third epoch third epoch meaning this is like this enable the mic enable the mic is little bit difficult at the end we can enable at the end only okay uh how does the perceptron decide which value it can change how it know the input are fixed then so you perceptron need not to decide only every time the weight is only updated other than we are not having we are not having the different concept we are having the x and we are having the theta only that's it so if the input is fixed so if the input is fixed so how what we can change we can only change the weight so the pulse electron doesn't decide anything every time we need to update the weight okay every time we need to update the weight okay one epoch means the one cycle of the training hundred percent one cycle of the training right so how the ml is different from the dl in the ml in the ml in the

machine learning what we can do we are having the different feature extraction methods there okay हम क्या करते थे we are having the input or input के हिसाब से हमारे पास feature को extract करने के लिए feature extraction हम there will be the different method are applying over the machine learning but in the deep learning we are giving the neural network we are creating the concept like our human okay so that it will call as a neuron or mathematical operation perform करने के लिए feature already extract होते है we need not to do that particular thing feature extraction all are inside the neuron okay feature extraction neuron के अंदर ही होते है then we are going like this sir here the z2 yes it here with the z2 is there yeah you can do the terminology here we are saying not here here this is called as a z z okay so this we are using okay this we are using here we are not saying the z2 okay yes it is the very similar thing here the z2 okay sorry sorry

yes here the z2 because we are taken so here the z2 is there sorry for the misconception here the z2 is there 100 percent the same thing is there whatever the task the deep learning will do same task the machine learning can also do but the deep learning doing the very efficient manner deep learning advanced feature is multiple neurons say or accuracy enhance whenever we are having the large data set then we can use the deep learning for that sir how the z is the linear combination if we are if we are in activation function because this is the here we are not applying the activation function activation function okay activation first we are getting the linear combination first time first we are only using the x and multiplying with the theta only we are doing this so this is the linear combination because we are multiplying only the weight with the uh input okay so this is the linear combination after this after this particular linear combination

we are putting this multiplication over the activation function then only we can say that we are converting it it into the non-linearity manner so in this case the output neuron should be the z3 output neuron is z3 it is not like this the z3 is not we are getting the activation output so this is the a2 okay now we are multiplying with the theta 2 and we are we are getting the z3 here okay z3 are here z3 are the linear combination of this okay non-linearity apply but after the non-linearity we are getting the sum of the value then again in the next layer we need to apply the activation function otherwise it is called as a linear combination sir what different operation hidden neuron and output neuron does because both seem the linear combination uh different operation hidden neuron and output no no it is not the both have the same kind of all the neuron are doing the same we can change the number of the neuron okay i'll tell i'll tell through the coding you will

definitely get this particular answer all the neurons are the same except the input neuron okay either it we are choosing the output neuron or the hidden neuron all the neuron are same the neuron operation are the same so looks like writing question is not giving the gist as to what i am yes yes i'll open the mic at last okay the only advantage i can see dl above ml is that we can apply the different activity yes it is it is the biggest concept okay we can perform the feature extraction inside the neuron this is the bigger concept is there this is not the only advantage okay the a3 a3 will be the z z3 hundred percent hundred percent lakshmi harika has written that is the hundred percent true is there okay it is hundred percent true is there sir how the z theta formula comes z theta is not a formula it's a actual minus the predicted and we are doing the square so that this is the actual in output and this is the predicted output and we

doing the squared of this particular okay and we are having the two things we are getting the average why we are doing the square to remove the negative effect okay so hidden neuron multiplies incoming input by the specific bed could you please explain one's role of the huh we got we got the linear combination okay we got the linear combination once we got the linear combination it is the linear function okay it gives the value with the linear function now we need to convert the linear function into the non-linear manner that's why we are putting the activation function for this so if we are using this law theta 1 into the x we are using in the sigmoid operation then we are getting the activation function because the activation function is just like a mathematical function if we are getting anything over this we can get the output okay we can get the output so this is called as in the role of the activation function

yeah i need to yes we guess is asking something so where is we guess yes we guess i am allowing your mic tell thank you sir thanks a lot sir i have a question around this activation function if you could switch the slide i can see the teams yes in the output neuron you are multiplying uh theta two with activation function right yes and we we know that we add activation function in order to uh bring the non-linearity right so if a non-linear function is being multiplied with a weight then how it will become a linear combination okay now after the activation function okay here here i am talking about the hidden layer output again again it is treating like a input okay again it is treating like input for this particular output neuron clear this is also treating like like an input although it is the non-linearity non-linearity is just like it is giving some of the range okay just like whatever the previously it is minus infinity to infinity

it is like this okay it is like this the that is the minus infinity just as koi bhi real value data that will be comes in here so humne sigmoid operation sigmoid operation will also always give the value in between the zero to one so humne zero to one Now our input are like this, our input will always be in any form, like this, anything. Now whenever we are writing or we are multiplying with the theta 2, again we are getting the linear combination. Because what happened, we are again converting it into, only the difference is that that we have real data minus infinity to infinity that we can change the weight again if we are our weight suppose that our output this is the output of the hidden layer okay although this is the nonlinear this is coming as a 0 to 1 but our weight can be the any real value okay value ke saath 0 se 1 ka multiplication kareenge to it is not coming again as in between the 0 to 1

yeh charoori nahi hai it is all again coming sir sir mera eek question hai ki sir agar haap mere paas eek non-linear curve hai agar aap us non-linear curve ko kisi theta ya weight se multiply karo ge to curve either it will shrink or it will expand yes but but the The shape of the curve won't change. It won't become a linear straight line. Yes, but we cannot say. Sometimes what can happen in weight is that combination can create anything. The major advantage of activation function is to create non-linearity. The other thing is to put in the data within the range. Just like 0-1. Okay, so this range can be higher if our weight will be high. Okay, if weight is high, again it is not 100% true that non-linearity is linear. It is not like this. Here the linear combination is just a name. We are not saying that non-linearity again in linearity. It is not like this. Non-Linearity, Non-Linearity, non-Linearity, but its range can be changed,

then the range is minus infinity to infinity, then we have to take it from 0 to 1. Why does it take it from 0 to 1? Because our output will be in 0 to 1. Okay, so when we have our output, it will also be in 0 to 1, then we can correlate it. But this is true in case of binary classification. This is not true for regression. I mean, yeah, no, no, no, it is not true for the regression because regression. Regression are range between the minus infinity to infinity. But in the classification always are things are going in between the zero to one. It will give the probabilistic value. Logistic regression was always 0-1, so if it is in between the threshold 0.5 then we are considering this is the class A and 0.5 it is the class B And we can apply a multi-class classification too. Right. So in this case, since you are mentioning that we have a binary class problem, so we won't be having this error function that we are using.

Yes. This is for regression, right? Y hat minus A3. What? What? Okay. This particular loss function will be different for classification. It will be your cross entropy loss. Yes. It is the binary cross entropy loss. Okay, that will be the binary cross entropy, this is only the loss function explained to the regression function. Actually, this is the only prototyping is there, what I am understanding forward propagation. It is not for the classification, classification only in the output layer, if we are having the single neuron, it will give the answer the 0.7 for the yes class and 0.3 for the no class it is like this if we have multi class classification then we have multiple output neuron should be this output when trigger actually activation function use whenever we are having the sum output, is neuron ko activate karna hai ya nahi, yeh kone decide karega activation function is neuron ko activate karna hai ya nahi

kone decide karega neuron, yadhi iska kuch na kuch value I just like 0.2, 0.3 0.5 so this is the 3 class, class A, class B, class C so class C we are considering ki it is matching, suppose that there will be the dog, there will be the cat and there will be the giraffe, to input So this particular image, which we have given the model, is that it is 0.2% dog, 0.38 and 0.50. So whatever our threshold is there, accordingly we can decide. Okay. So this is just like a prototyping once we are solving the classification problem or the regression problem through the deep learning you will better get that particular thing. So I am telling right now only the prototyping how the DL works. So DL has a forward propagation and a backward propagation. That's it. yeah and sir one more question so in in the linear combination we have two parameters one is w which is weight and then the bias okay bias bias is just like sometimes the bed will be the zero okay and your output will be becoming as

a zero that's why we are adding the little bit random error and that will be called as a bias okay it is not the hundred percent true okay always we need add the bias right so while calculating the error we have to make sure that we are taking a derivative with respect to both of these parameters 100 100 if if because there will be the if we are adding the bias then there will be again some of the weight is there are you getting that particular So if we are having the bias, so in that case, what will be the overall loss function or the derivative that we are calculating? So at the end, the loss function are the same. Here is the same. But what will happen here? Here is bias or add. Bias. And bias add. After theta 1, 1 we are adding. So what do we need to do? We need to update this weight also. So during the backpropagation. But what will happen here? Linear combination different. Linear combination will happen.

This is the theta 1 into x. This is the thing. and we have theta 1 1 into bias. This is also we are adding. Now, this will be Z2. Although the loss function will be the same, whatever output will be in the end and the actual minus will be the same. Only Z2 will be updated and Z3 will be updated. During the back propagation, we need to update the both bits. This bits as well as this particular. During the back propagation, our only objective is to update the bits. weight and through the updation of the weight we need to reduce the error that is our object okay okay got it sir sir one last question as Anu Jay has already put down in the chat window let's say we have hidden layers there are multiple hidden layers so can we have more than one activation function uh is it always have to be yes yes i i i got your point actually what happened if we are having the single neuron just say multiple neuron i am using suppose that there

will be the three input neuron and there are multiple hidden neuron is there so in the one input one neuron only one activation function is there okay a can the activation function That is for sure, 100% sure. If we are using the sigmoid, then we don't need to use the sigmoid. But here, the 100% thing is there, that we have to do the same neuron. If we are at the single neuron in the one layer, then we can use what I am telling, that is true. But here, multiple neuron comes in single layer. So that particular thing is not true, whatever I said. Okay, that means, in one layer, there is multiple activation function. but different neurons Yes multiple neurons then one neuron activation function we can 100% multiple neurons input 3 neuron use output like this neuron so input or output हमारी problem definition के साथ से decide होता है बाकि hidden layer के अंतर neuron will be decided by the यह बिलकुल fix चीज होगी input or output हमारी problem definition के साथ से fix होगा

input or output but we can change this particular hit number of hidden layer हम change कर सकते we can use the one leg hidden layer उतनी बार वो feature का extract okay we can use the thousands of the neuron in the hidden layer okay so it is in our so who will be deciding that how many hidden layers should be there i mean we as a user we as a yeah we as an engineer we need to decide okay okay we have to decide that i'll tell through the coding in the next upcoming classes we will see the multi-layer perceptron in the multi-layer perceptron we are doing is 64 ke saath kareenge 512 ke saath kareenge or we are changing the 128 ke saath kareenge there are this this all things are called as an hyper parameter tuning so during the training 64 ke saath result achha nahi aya we need to add the 512 iske saath bhi result achha nahi aya we need to change with the 1024 like this okay that will be we are changing

that that will that will be called as a hyper parameter tuning but today i am only so guessing you keep mathematics after that coding coding is just like completely moving okay one last question sorry to bother you actually today i am only yes yes tell tell tell no issue sir scrolled up to slide actually yeah okay sir here you have your superscript 2 add 2 in the second it is your notation This is your notation. You can write like here B, so this will be B. No, no, I mean superscript 2 means that it is a second layer. That's what you are referring to. Yes, like this. This is just like a notation, whatever notation. So right now I am explaining that here is 2, so it is a second layer, this is why it is a third layer. The third layer is that's why I am writing the three so basically input neuron is our first layer and then the second layer and third layer like this okay we can use the multiple hidden layer also multiple input neuron also but the input input layer or output layer will be the fix

if one to infinity meaning if one hidden layer is there then we can say it is the deep learning that means this is called as machine learning okay now today I am only clearing the doubt no issue to here again there are more question is there so v case has already asked all the things now there will be forward propagation predict and the backward purpose fix the error hundred percent the certain answer said the forward propagation predict the thing and the backward propagation is fixing the error hundred percent because the forward propagation kya kata hai what the forward propagation will do it will give the linear combination it will give the output either we are not saying the fixed thing about the predict it can also classify the forward propagation always doing the training and backward propagation during the training it will update the weight so always we are not saying the forward propagation are doing this or backward propagation

the completely epoch can perform the training okay the forward inside the complete training there will be the two thing one is the forward one is the backward so during the forward we will get the output or which output is to fix the we will choose the backward propagation now there is the linear combination the 100% linear combination if we only teach the model linearity it will not learn the complex problem where data lies on the different 100% the Gorham has told the correct thing if we do linear manner which is a complex problem because in the real world scenario our data is in the non-linear manner Okay, but in the logistic regression and linear regression, there will be the restriction that we have linear data work. But in the theory class, sir said in one layer, we could have only one activity. That's what I am saying. I have two things to tell. If we are talking about single neuron, if we are using single neuron, then

a clear can the activation function use of different different neuron then we can update the thing okay then we can update the thing sir has already told the right thing I am already told the right thing only the difference is that we are talking about the single layer perceptron single layer perceptron then the answer is true but like some sometimes we are talking about the multiple layer sometimes we are talking about the single layer so you need to understand don't be confused if we are having the single neuron is ke hander hum ekhi activation function use that's it okay ek neuron ke hander ekhi activation function use kar sakte that's it if you are using the multiple neuron then we can use okay both the answer are correct sir is telling telling the correct i am telling the correct only the thing is that your perception that what you are assuming the output is depend on the input or not the output is depend on the input but it is also

depend on the theta weight okay weight we can change because we cannot change the input but we can change the output and in the different layer we are yes so the Anuja has asked one more question so the same question like if we are deciding the neuron for the preparation of the neural network within then how come we come we can't change the activation function for the position or subset of the neuron for the same middle layer huh yes the we can change we can change during the neuron i had already given this particular answer uh nishantes asked different neuron can use the different activation function but normally neuron within the same hidden layer use the same activation because it makes the architecture yes very good correct uh that's what i am getting the clarity yes yes thank you thank you doubt is the slope changed by the weight help in the 100 percent slope if we have data then the slope will change the slope will change the slope will change

suppose that your prediction model are like this okay suppose your data distribution are like this okay our data distribution so suppose that we have this first we will take non-linearity so we will take this type of non-linearity like this okay it is changing like this okay it is changing like this so this is all the things what i am telling okay so one more thing i want to tell after that in the next class we will see the uh all the other thing all the coding part we will see in the next class because i don't think there will be the time right now to read the code so in the next class we will see the coding part okay so today i am little bit more telling about the uh i need to drop this particular thing so that we can see the multiple neurons so that you are able to understand little bit okay i hope so you got the point in the single layer perceptron okay now there will be the multiple hidden multiple sorry multiple input hidden and output layer is

there okay so if suppose that there will be the input okay so if we are having the two input one zero like this okay so this is the input now there will be the hidden or the vikas has asked about the bias the bias we ask but we are not considering for the mathematical perception but in the real life scenario 100 percent bias will be added okay the here the input is there here the output is there now we can use the multiple hidden also now we are also using the multiple output so it's up to you the the fixed thing is that input we cannot change input neuron is deciding by the problem definition same the output neuron is also deciding with the problem but hidden neuron hidden neuron or hidden layer it is in our hand okay so programming we can change the input input we can't change the anything over the input input so we can do like this okay we can do like this so this is there okay now there will be the weight

suppose that this is the weight one weight two weight three weight four so now what happened the input is multiplying with this particular weight and is this x2 multiplying with this so now here the linear combination is there now you can see now you can see okay now you can see this particular thing okay so we are having the x1 we are multiplying with this okay now you can see that this x1 now here this also coming because this is also combined so we are also coming now we are getting the z1 and superscript 2 now we are applying the activation function over there okay now we can get so this is called as an hidden layer okay this is the first combination of the in there so just suppose in the so this is just a prototyping but in sorry this is just a prototyping but in the real scenario what happened we are having the input in the form of 1024 or 512 so how big a combination of the image we are talking about the two

okay so this is just a prototyping mathematically 1024 or 512 that's why we are understanding with the help of the two but in the real scenario it is like a 1024 and hidden layer input how many 512 1024 2048 so you can see or you can think about ki how much mathematical calculation are behind the neural network kithana mathematical combination ho raha hai okay but all things are working like this okay all things are working like this okay sab kuch sab jage same he chee whatever i am telling the everywhere the things are the same okay the conceptually all the things are same so only you need to understand the concept okay only thing is that you need to understand the concept so you getting the hidden layer now you are getting this combination both are the same now again we are getting the error okay suppose that if we are adding the one more hidden layer okay okay so that in between there will be the more weight is there or we better okay there will be the more weight is there so one weight

is just like if we are drawing if we are drawing like this there will be the input there will be the one hidden layer second hidden layer third hidden layer then there will be the output layer okay like this so is ke bich ka ek weight aega is ke bich ka second weight aega is ke bich ka third weight aega is ke bich ka fourth weight aega and it is also combined like this okay it is also combined like this it is also combined like this okay here this also this also this also this also this also this also this also so here you can see how much weight is there okay and at the similar time how much weight is updated so that that is the condition if we need to only learn through from the scratch we can only see the prototype but we cannot do that particular thing because there is a large architecture is there so why we are generally taking the fully connected layer fully connected layer is just like this

because it is already fully connected layer ka use case kya hai sare neuron connected that's it if we are using if we are connected each and everything then we can get and we can consider each and every weight so that we can determine the all the feature inside the model okay joe bhi input candle feature is just like this is the kit and this is the dog to gate or dock ke saare feature ko consider kalenge if we are using the fully connected layer okay how do we decide how many hidden layer we are optimal yes this is just like a hit and trial task first we need to do with the 5 the 64 layer if our result is not good then we can go ahead with the 128 if our result is not good then we can go ahead with the 5 it's just like a hit and try method we are not saying in the deep learning there will be the thumb rule is there then if you are sometimes the increasing the layer can also affect the error also okay hidden layer use

use it will also affect the sorry the error so if we are using suppose that 1024 use kara so 1024 the 512 will give the good thing is there any way that we can define no no no this is not like the optimal things we cannot decide in the machine learning it's just machine learning and deep learning it's just a hit and try method that how many neuron how many uh layer it's up to in our head we are using one neuron but the multiple hidden layer that can we have the more than one activation we are using one neuron but multiple hidden layer that can be we have more than one yes you can use the here the different activation here the different activation is possible sir please also talk about the base normalization i'll tell the base normalization once it is coming don't be confused with the other people because right now that particular things are you need not to understand i'll tell this base normalization

in the upcoming class okay don't be confused with the other so that this is how our combination is there so suppose this output suppose here output is required as a one and our output are coming as a 0.7 so this is a 0.3 error is there here the output is just like one but here the output is coming at 0.6 so this so we are getting the one j theta here here we are getting the one j theta so if we need to update the weight and we need to update this then we need to go ahead and we need to do the back propagation for this particular and we need to do the back propagation for this neuron also okay so here you can see here you can see if we need to update the theta one one then how we can update so you can see this is the one way and this is the one way from here we got the z theta here we are also getting the z theta okay now we need to do like this like this then after that this after that this after that this so this is the first thing the second one two three four

five again and we need to give the combination so here we are showing the combination okay don't be confused with this this is the first combination okay this is the first combination okay i am not telling the complete thing same chijay j theta ko theta 1 ke perspective me we are doing then this the first thing second thing third thing fourth thing fifth thing now the orange color is also there so what is the blue color in the orange color blue color is just like this and the orange color are just like this okay so this is how this is how our complete uh fake propagation is there okay this is how our complete back propagation is there now you can ask any question otherwise i am ending this particular class just because just because because we had not started the coding part so in the next class i am hundred percent started from the coding class because already we have a time okay okay hum there we are we need to already discuss so many things in the theory and this is

also the theory okay yeah sir why you said that the neuron can turn off its input is it same as dropping the neuron if yes then is it the same yes it is the very much same drop out function sometimes kya hota hai we are having the thousands of neuron suppose that thousands of neuron but not if after getting the feature extraction from thousands of the neuron our model can be the overfit okay model overfit ho jayega yadhi model overfit ho jayega to testing result okay that's why we need to remove some of the neuron but architecture then it will affect the thing we can use the dropout function the dropout function that means if we are allowing the 25% dropout that means 70% random neuron will be taking as a consideration while the 25 is not taking in the consideration okay so that is the concept of the dropout okay that is the concept of the dropout yes that you are telling the correct okay you are also taking the current

anuja is also telling the correct thing anybody having any doubt because here the complete multi-layer back propagation is already discussed okay here the complete so i am sharing this particular pdf okay so that you can able to think about this okay you need to but our main perspective is only to understand the single layer perceptron okay the multi-layer perceptron i had only tell the little bit thing here we are telling the little bit thing but the all the things are same all the things are same whatever the previous thing is there same similar are here okay so anybody having any doubt or i'm ending this particular class okay so i hope so yeah thank you all thank you thank you we'll meet in the next class then one question then how we can decide where to stop the with the dropout as you are mentioned around the overrooting because in real time okay yes it is very good question ki when we need to decide the dropout that is the

main thing is there the gist of this okay suppose that you are working and you are getting the overfitting kind of things in just a 10 epoch 10 epoch may overfitting so the dropout is not the explicit thing whenever we are getting the dropout we need not to apply it's not like this dropout dropout when we need to use the dropout we had decided that result over fit then only we can go ahead with the dropout so it's not the mandatory thing we should on multi-layer propagation or the single single layer is enough to understanding but if it is just like there will be no restriction you can think about the multi-layer propagation also okay how does the gradient descent know whether it has reached a global minima or the just the local minima it is again one question is there we are always trying to achieve the global minima but the first thing is that we need to achieve the local minima then we need to go

ahead with the gradient more time and we need to achieve the global minima okay as per the notes and ppt i believe all will be covered no need to refer the no need to refer the other book no need to all the things are there as ml engineer what are the decisions we need to take to design the model that you will see because right now you are very much at the initial level once the syllabus is completed then only you can decide okay once the syllabus is completed then only you can able to give this particular answer you are also giving that particular thing okay right now because this is the very first class of the deep learning so that's why that much of the doubt is there okay no issue i understand okay so thank you all thank you thank you we'll see you in the next class uh but uh how we would decide that is the real time where is the actual business case we may not have the ground truth or golden data for the validation

so uh we can't have the image of all time so if if you are not the in the first time in the first time we need not to apply the dropout we don't need dropout apply you can go ahead with the your result okay you can go ahead with the your result suppose you are getting the overfitting suppose that we are not saying you're sorry the overfitting million 99.99 cases we are not getting the error okay it can come with the multiple iteration then how we how to decide yes sir it can come with the multiple iteration uh so suppose that in the first epoch you get the 89 percent accuracy in the second epoch 90 91 in the 10 epoch you are getting the 98 and suddenly the things are not increasing then we can stop we need not to apply the dropout over there dropout apply after this testing scenario testing scenario here type model without the test data we can't validate if we are thinking we need to apply the dropout then only we can apply that dropout so it is like this isn't the

place where it reached to 98 we should look for the early stopping yes it is there early stopping is there before the system yes 100 percent early stopping is there because 98 98 98 coming under various epochs so better we can remove so that we can uh stop or we can reduce its computational complexity computational complexity yeah okay if you are refreshing any issue then yeah we can open the mic in the next class okay thank you all thank you thank you i am ending this recording and i'll upload this slide over the moodle thank you all

