# Advance Machine Learning

- **Course:** 6103 - Advanced ML
- **Recorded:** 2026-09-22 18:30
- **Transcript:** 815 segments, 9837 words
- **Made by:** deepdml/faster-whisper-large-v3-turbo-ct2

---
Good evening, everybody. Am I audible to all, please? Thank you. Thank you. Thank you very much. Thank you. Okay. So we are starting our class today. And the topic, the new topic for today is introduction of deep learning. From today, we are starting a deep learning. Ultimate, it is a neural network. your neural network okay so this is the tpt so i will touch upon the introduction of neural network or sometime you can say the artificial neural network ann so ann is 10 for artificial neural network we'll discuss about the structure characteristics and how the neural network working concept is different from the conventional digital system type of neural networks. Okay, so I will read some of the definition of the neural network for you and then we'll dive into the detailed discussion. So first bullet point says that ANN or neural network or deep learning is information processing paradigm that is inspired by the way of human brain or human

nervous system work. I am very much confident many of you already know the deep learning or neural network is the concept that is inspired by the way human brain or human nervous system work. Second blood point is very much important. I will have a detailed discussion. The neural network is massively parallel computing system consisting of extremely large number of simple processors with many interconnections. So it says that some of the words are highlighted in a different color like it is a parallel computing system. So this second bullet point includes almost all the property of the neural network. And it also defines how deep learning or neural network algorithms are different from the conventional machine learning algorithm. Why? Because many students are confused how the deep learning is different from the machine learning. So this second blurt point explains everything. First, neural network or deep learning algorithms work in a parallel way.

Have you seen any of the machine learning algorithms like linear regression, logistic regression or any of the algorithms that you are already aware about from the machine learning? They work in a sequential manner. So the first point that makes the deep learning or neural network different from the machine learning is it is parallel computing paradigm where extreme large number of simple processes with many interconnections. So what do you mean by that? So let me develop one logic. So what happen in the brain or in the neural network in computer science, we have a lot of neurons, we have a lot of neurons, these are the neurons. So if you assume this is a human brain, this is a human brain, human brain having millions of neurons, millions of neurons. So the information is given to the brain, okay, it is received by many neurons parallelly. Okay, suppose you are listening something, so a couple of thousand legs of neuron will

be involved over there. You are moving somewhere, you are driving the car, you are watching the movie. So a lot of neurons are involved to understand that scene. So those neurons receive the information or sense from outside parallelly and they process on the information and pass the information neurons by neurons, neurons by neurons, neurons by neurons and they understand something. maybe maybe suppose you're watching a movie you are writing something so what the simple thing i want to explain a brain having a millions of neurons and neurons work in parallel manner that i want to come on another important part here first we have understanding about they work in parallel manner. They work in a parallel manner. These small small neurons are the basic computational unit. These all neurons neurons are basically or you can say smallest computational unit. computational unit means what is the meaning of the computational unit in this sense means anything

that can receive the input that can receive the input and give you some output so it have a some processing inside it has a some processing inside okay so this is called the neuron or in computer science point of view what you can call it processor what you call it processor because it process it process the input so in brain we have a millions of neurons okay what it does another property of those neurons in brain or also in deep learning another property there are interconnected they are interconnected like that they are interconnected like this what kind of connection don't worry about that they are interconnected so what do you meaning of interconnected the output output of this neuron goes to multiple neurons then output of their neuron goes to again multiple neurons so this is called interconnection So three things we have seen here. I think everybody now parallel computing, they receive the information in parallel way. Then they have a large number of neurons or processor,

a small processor or they are interconnected. Agree? So, these three properties we can see in our deep learning algorithms or deep learning architecture or deep learning methods. Deep learning methods or algorithms also for the parallel computing also have a huge number of neurons or processors and they are interconnected. Okay. Yeah. So it's a background. I think the day when I have covered it, people feel that neural network or deep learning are the newest subject. No. So it is not in your course, but everybody must know about the history of neural network. So, in around 1940 or 41, there were two scientists who were working to present a mathematical model that works based on the human brain works. So, they have given one model and the model was so famous that is called MCP model, Maculac-Pitts model. That is algorithm, that is a model, but it's not in our course. So that is the first neural network model we consider.

Then advancements was there. And the famous model is the HABs learning rule or HABs rule. Then perceptron. So in our course, we will start from the perceptron. What? We will start from the perceptron. We are not going to cover the MCP model or HABs learning rule. We will start directly from the perceptron. Initial models like Maculay-Quitz and Hepp's learning rule were the supervised learning, okay? Then from the perceptron, we got the first algorithm that comes under the supervised learning. Earlier, all the models like MCP or Hepp's comes under the unsupervised learning. So that just, it is a background, the historical fact I have covered, okay? So this is analogy you can view our artificial neural network or deep learning way of working, inspired by the human way of working. So I will give you one analogy, just it's a background again. So first one, top of it, one figure is given to you. It's a representation of the biological neuron.

and below is its mathematical equivalent that is given by the macular inputs. So, let me give the analogy. So, in biological neuron at the center, we call it nucleus or the soma. Soma means what? It receives the input from the dendrites. These are the biological dendrites. so it received the input like from the fingers whatever you are sensing you are recalling or you are watching some movie so that the input goes to these dendrites so multiple input one neuron can receive so so whenever the dendrite means all the part where from where the neuron received the input. Synaptic means kind of weights. So some of the informations are important, some of the information you are receiving are not important. That is controlled by the synaptic weights. So once those information goes to the nucleus or soma, it calculates something. okay and complete this body is a cell body and output of this soma we call it the exome.

So those output or this output this output can go further and become the input to the next layer of neurons. The same analogy I have given in the right hand side what we call here cell body or complete cell we call the neurons, dendrites means the input we are receiving we call the input, synaptic we call the weight, soma we call the input, how to calculate the input I will explain the mathematical formula and output of the neuron exome we call here simple output. So, in this current semester, we are going to discuss this important part, very fundamental. This class is very much fundamental, normally people don't cover it, they directly start with the algorithms. So I will give you one end, more than one class to cover the fundamental terms and terminologies. a lot of terms are used, a lot of terms in deep learning, a lot of terms and terminology people use it. If you don't know that terminology, you will not able to understand the algorithms working

because once I explain the working of the algorithms, all those terminology will be used and these are the fundamental okay. So I have taken one complete class for this purpose. So this is the mathematical model. What says that you give the input number of input doing a single neuron and input will be associated with some weights and there will be some summation operation. Then there will be some activation function like that. What are those? I will explain and output can go far further to the next layer of neurons. So what are those symbols? How they work? This is the characteristics we have seen. Our neural network or deep learning works in a parallel way. It is a complete distributed computing. Another word that makes it different from the machine learning. There is no distributed computing concept in the machine learning. and redundant and fault tolerance. What do you mean about that? So in the neural network

we are going to make many neurons and we know each neuron is a small processor that can process something. So ultimately we are computing here, we are making computing here, we are making computing here, we are making computing here, everywhere. So it is a kind of distributed computing, parallel plus distributed computing. You can consider the same ANN, neural network or deep learning is a buzzword only. Deep learning is nothing but a simply artificial neural network or neural network. So they are same. If you put this question in the Google, it will try to give you many answers, but all are set. Okay, great. So, it is a distributed computing. Great. And like we have a lot of neurons in neural network algorithms. So, every neuron process the data. Okay. So, what happened? And they are interconnected. They are interconnected. you know they are interconnected. So what happens if some of the neurons stop working, if some of the neurons stop working, even if you remember your

brain can continue to work, continue to work. This is called fault tolerance because the data or the information that you have given input to the model, it goes layer by layer, layer by layer through all the neurons. So if some of the neurons stop working, the data is redundant, the information is not only stored in one location, the input or information are duplicate or copy of that information are shared by many other neurons. So even some set of the neurons stop working, your model or your brain will continue to work. So it gives you one property that we call the fault-tolerant. So here the information is redundant, it is not in the typical conventional computer system. So this is one table I have given just to understand the analogy, how your digital system is. The interesting part that's why I have included only and this is a biological neural system working. see in a digital computer the processor is very complex, very powerful, very heavy. Okay and we

have few or couple of processors only. But the god and nature made us, we have a simple processor like neurons. They work in the low speed but they are in large number, millions of neurons we have. We work in distributed or parallel manner but most of the digital computer are centralized, controlled and they work in the sequential pattern. And our computers are designed to work with the numeric and symbolic manipulation. Our brain is designed for perceptual problems. Okay, our brains having a millions of neurons, we have a shared information, that's why they are robust and fault tolerant. And our brain is poorly defined. You cannot clearly define understand the way each and every neuron works but the system a mobile system or computer we have they are properly defined they have a lot of constraint that that in that case they can work on so this is the one analogy i have given only now come to again the deep running

or our course, there are two kind of networks. So you may be wondering about in here why we call the network. Why the word network? Like a neural network. Network means what? You can connect with the word connection. Network means connection. If we have a multiple neurons, we have a multiple neuron, how you are connecting? This is the one way of connecting. Another way of connecting is what? Every one will connect to all the neurons of the next layer like that. So these are the only because of this we have a multiple processing unit neurons. How you are arranging it? How you are making the connection between them? How you are arranging. Because in this context we call it the neural net. So it's now your responsibility as a data scientist, as an engineer, data engineer. It's very much different from the machine learning where the things are fixed. Here it's a freedom if freedom is given to you. Suppose data scientists a problem is

given to you. You want to solve it. So you can consider the n number of neuron. It's up to you how you are designing the system. n means 100 for someone, for student B it may be 200, for student 3 it may be 300 and any number, any number you can take. Second connection, the way you are connecting them. It's up to you. N number of ways you can connect the neurons. So it is more about designing the network, arranging, connecting the neurons. And based on that you can solve the problem. So here two kind of networks are there. Two kind of networks are there. feed-forward network. Please remember this word feed-forward network or feedback network. Feedback network also another name I think is very famous recurrent neural network. How many of you listen this name? Recurrent neural network or sometime we call it RNN. Okay and this is a feed forward neural network we call it FNN. Yes. So come to the slide we have a two kind of network

feed forward network FNN feedback or recurrent neural network we call it RNN. How these two are different? These are the category. Okay these are the category. So feed forward neural network says that signal means input. So if you feed input to the network, it moves only one direction. It moves only one direction. There is no cycle. So there is no cycle means there is no feedback. Okay, information flow always in the straight direction. That's why it don't have memory. so I will explain that is very confusing word memory because if you refer any of the book what they will say they will say feed forward neural network don't have memory do not have memory and people say recurrent neural network have memory that is a common word have memory. So if you are the new, you will be confused with this word. Memory means not something storage system. It is not about some storage capacity. You don't think feed

forward network has some separate memory where you can store something. It is not like that. So, if there is a loop, I will explain everything. If there is a cycle, and you call it feedback. This is we call the memory. This concept we call the memory. This concept we call the memory. So, why we call the memory? Interview, during the interview, people ask a lot of questions here. So, suppose I have given one image. I will explain one hypothetical example. I have given some image. It is going to one neuron. Neuron will receive this image as an input, agree and process it and give you outputs. output. This is image 2. Suppose this is image 1 processed by the neuron. Small changes you can assume he has made it and this is image 2. And it will go to the next neuron. It will go to the next neuron like that. But if the output of this neuron image 2, if you are going to feed back to the same neuron. So this neuron can understand what was the first

input and what he has made changes. This awareness, this comparison we call the memory. Here now if you are sending back the output of the neuron as an input then it can compare, it can recall what was the input and what changes I have made it. So this because of this comparison we called memory. Okay, this concept is memory. Agree? Is it clear to everybody? Yeah. So here there is no feedback, there is no loop, there is no cycle. That's why we call it feed forward network and since we don't have any loop or cycle that's why there is no any memory. Such kind of network normally we use in regression or classification problem. A lot of classification algorithms are in the measurement. So I don't need to explain what is classification, what is regression. This is supervised learning most of the time okay. So if you have a regression kind of problem, you have a classification kind of problem you are going to use the feed forward okay like this so look three new terms we are

given at the bottom the neurons are divided in the neural network in the layer concept of the layer we have a multiple layer so consider the three categories of the layer input layer hidden layer and output layer. Input layer is the layer that receives the input, whatever the input you will feed to the network, those input will be received by the input layer. Similarly, final output of your network, this network is an algorithm. Don't confuse with the network, this is the algorithm. Output of your network, output of your algorithm will be given by the output layer on. Between input layer and output layer we have hidden layers. There may be multiple hidden layers. Input layer, hidden layer, output layer will have any number of neurons. It is not necessary. Please note it down. It is a confusion with the newcomer. What they assume that number of neurons in each layer should have equal. No. All layers are independent to each other. There's

no such rules. Any layer may have any number of neurons. Cut it? Yes. So Sachin has asked a question. So this type of connection, we call it fully connected neural network. Okay. So most of the neural network or algorithms we are using nowadays are fully connected. But it is not necessary, it is not a rule. Agree? So whatever way you want you make a connection. This is a fully connected neural network and all the algorithm we are going to cover are the fully connected neural network. Fully connected neural network means what? Every neuron will be connected to all the neuron of the next layer. So this connection is true in this sense, every neuron is connected to all the neuron of the next layer. Yes, Hrithika, this is the algorithm. So the deep learning, only this network is algorithm, nothing else. So how you are making the connection, what activation function you are using, how the input will flow, those rule makes these algorithms. So this is the fundamental.

Now complete network is algorithm not each dot. This complete network input will be given here, output you will get it, the way these neurons are connected and will function is an algorithm. okay so for example assume this one analogy suppose this is the data set is given to you and data set have one output variable y it's a classification problem and we have a input variable x1 x2 x3 so you can consider x1 is a age x2 is a salary and x3 is a weight whatever you want. So here below of this network or bottom is the input layer. So how many inputs you have? You can see from the data set. In the data set three variables are there. So that's why in the input layer the three neurons we have given x1, x2 and x3. Then it's up to you how many neurons, how many hidden layers you want and output layer. Just understand the analogy. So, you need to do the input to the input layer, it process layer by layer and it will

give you output whether it is class 1 or it is class 0. Okay, so what we learned one thing, how to decide number of neuron in input layer, okay. is going to equal to the number of features. Agree? Number of variable from the dataset. Got it? And output neuron defined, suppose is a classification problem. Suppose it is a classification problem. So number of neuron at output layer depend on number of classes, number of classes. Actually, it is equal to number of classes minus one. Agree? So we are not going to change this analogy. Depend on the future, we will predict the output variable same thing we are going to do with the deep learning difference is the way we are doing okay the difference is the way we are doing all of it such concepts like a neurons layer were not there in the machine learning okay so this is a big question so why we need the deep learning you will understand at the end of the semester how powerful it is okay i have i have

given the sense, I think you didn't catch it. It is a parallel processing it offer. Okay, Saurabh, I have discussed characteristics of the deep learning, parallel processing, fault tolerant, okay, distributed computing. All those characteristics will make a huge difference whenever you are going to handle the complex problem. What do you mean by the class 1 and class zero. Asis I am very surprised to see this question. You don't know what you meaning by the class. Okay. Asis answer it. You don't know really what do you mean by the class. Anybody anybody else please help him. Yeah it's a classification number of classes. Okay because Gupta it's a whole semester is there to understand what happened all those things in day one you cannot understand. So it is a hit and try, hit and try. Whenever you design any of the algorithm, that things you have to play. Increase the number of neurons, number of layer, it help a

lot. Okay, so if in simple way, if I try to answer is if complex problem is given. Complex problem. What do you mean by the complex problem, a simple problem? and simple problem complex problem means what language translation it is a simple problem or complex problem language translation object detection complex problem okay if complex problem are given you need to use many many hidden layer many hidden layer you have to use many neurons Okay, so that is the capability given in the neural network only. It's up to you. How many hidden layer you want, you can change it. How many neurons you want, you can change it. Such things are not possible with ML algorithm. You cannot change anything in the ML algorithm. Everybody agree or not? Okay, is it clear? Here you have a lot of things to play with number of neurons, number of activation function, number of layers, everything you can do. But in ML, you call a linear regression problem. We have discussed in the last class. What

is in your hand? Nothing. If features are given a dataset, those features you have to use. Other than that, you don't have anything in your control. But the way you come in the deep learning, many things many parameters are there you can use it okay so slowly slowly you will get clear sort of and other student this is the first day we are covering let it go so at the end of the semester you will understand the power of uh neural network okay so yeah so there are various kind of feed forward network like a convolutional neural network it is in our course i will cover it it. Okay. Encoder, decoder, I will cover it. Perceptron, I will cover it. So these all comes under the feedforward neural networks. Now, yeah, so I think we don't need to now much discuss about the recurrent neural network. This is a feedback neural network category. So there is one difference only. In the feedforward neural network, the information goes from

one end we need to enter and it will it will out from the one end. There is no feedback, there is no loop, there is no cycle, but it is there. In the feedback neural network, there is a loop. So that's why we call it memory. So once we have a loop, the concept comes in the state, context come into the state. Through the loop, you can change, you can understand the state or condition status is changing or not. So if you have a sequential information, like a stock market, like the sentences are the sequential information. So sequence is very important to maintain. So where we have a sequential data, you should always use the feed forward, feedback, legal network. So like stock market data, stock market data, IoT data, sensor data or sentences that suppose it is written in the English, all are the sequential data. Why? Suppose I have written I eat banana. Sequence is important or not. I cannot rearrange it, banana, eat, I, it's wrong. So if sequence does matter, in such cases, we use a feedback neural network.

It is in our course. Don't worry about feedback. Neural network. So, RNN in our course. LSTM, I will cover. Encoder, decoder, I will cover. Okay. GAN, I will cover. Transformer, I will cover. So, these are the almost levels. Okay. So, these are the algorithms. Methods comes under the feedback neural network. CNN, I will cover it. Before that, I will cover the CNN. CNN comes under the feedforward neural network. So I will cover it. Yes, yes, yes, yes. Okay, so let me go to the next slide. there are a lot of questions slowly slowly everything will be clear don't worry about that so yeah so look here how neuron in this case resolve update while going feed forward it will take time so Anu Jai these are the questions that will be covered in the coming discussion okay so this really means multi-threaded and multi-processing while no. So, if you see it, multi-processing and multi-thread concept in typical computing system, they are not distributed computing in the real sense.

It gives you a picture, but it is not real distributed computing. So people are trying to make machine learning algorithm the parallel version, and there are where they are planning to implement machine learning algorithm, the big data, big data analytics, because in big data like Hadoop and where the data are not in centralized location and that are distributed in many, many, many other nodes. So, there are the parallel versions of the machine learning algorithm, but the way of their working is totally different the way the neural network works. It is more confined, more cohesive, more coupled way of small-small neurons are connected. Okay? So, it will cover in detail slowly, slowly. So give me time to explain the further concept and you will get your answer there. So this is the one example of the recurrent neural network. If there is a single loop, it will be called as a feedback or recurrent neural network.

This is the one, technically it is a feedback neural network, okay? So if any way there is a loop, it comes under the feedback or recurring neural network. We are not designing such kind of network in the real life, but technically it is correct. So LSTM, RNN, encoder, decoder, transformer are the example of feedback neural net. So these are similarly, you can divide the algorithms from the deep learning and the supervised learning or unsupervised learning. So this is the way you can understand the basic of the deep learning. now i will going to start to introduce the more terms and terminology that people use to explain the neural network so here i will try to answer of your many questions i will introduce some terms like input layer output layer hidden layer weights net input activation function neuron firing threshold forward propagation back propagation all those things are will a part of coming discussion so here most common things we listen in the

area of deep learning is architecture can you define the architecture of resonate people ask the question what is the architecture of yolo architecture of rnn architecture of image net, a lot of famous architecture of what. So when they will talk about the architecture means, they are talking about the network, how many layers are there, number of neurons each layers, how the weights are being initialized, what are the activation function has been used, how the learning happen in that network. Combining all such concepts, then we can say this is the architecture or this is the algorithm. So starting with the basic, this is the smallest working unit or processor that you use in your network designing. It is called DLON. So it can accept any number of input. Assume here. Understand here. It can accept any number of input. Each input is associated with some weight. Here, red color cross means weights. And those weights goes to the summation operation.

That is a must operation. Then output of this summation operation will go as an input to the activation function. And output of activation function, we will call as an output of the neuron. It is not a perceptron, it is a neuron. Okay, perceptron is an algorithm. Okay, so yes, it's a better version. Input is given from the input. These are the two input. Input 0, input 1, or you can say input 1, input 2. two inputs are given associated with the weight and it will go to the neuron neuron will have a summation operation and the activation function and output of the activation function will become the output of the neuron so i'm giving a lot of visual diagram figures that are in various books so that when you refer any book or any any other resources for learning you you feel you are comfortable and you are familiar with this one. So, sometimes people use this kind of way to represent the neuron. Sometimes people use this kind of figure. This is the most perfect

way of defining working of single neuron. Okay, this is a single neuron. So, here it clearly says n number of input are possible to the single neuron. Each input must, Please remember this word. Each input must associate with some weight. Weight means what? These are the coefficients as we have seen in the linear regression logistic regression. Theta 0, theta 1, theta 2, theta 3 like that. These are the weights. Every algorithm, either it is a machine learning or deep learning, there are weights that you need to insulise randomly. So every input associated with the weight. Remember this is the bias, additional weight, additional input. Remember this is it is a must. Every neuron have additional input. We call it bias. It is not bias in various concepts in machine learning. It is an input, additional input. So, summation operation performed. Output of this summation operation is we call it net input. Net input goes to the activation function. Output of the activation

function is the final output of this neuron. Now come to such kind of designing a network. So this network have a two input x1 and x2. We have a one layer, this is the hidden layer. Hidden layer having a two input, two neurons sorry and we have output layer having a single neuron. So what is happening? You see these are the some symbol or variable you need to define during the implementing classes, during the coding classes. It doesn't happen automatically. So you need to learn the proper convention to naming the variables. So what is the meaning of W11. First input goes to the first neuron of the hidden layer. That's why W11. First input goes to the second neuron of the hidden layer. That's why W12. Second input goes to the first neuron of the hidden layer w21 w22 like that okay what is z1 here z1 means all the input like x1 and x2 we have given this neuron so z1 means this summation output of this summation

we call z1 this z1 will goes to the activation function of this neuron and output of this neuron I am calling F1. So, F1 means what? F1 output of this activation function I am calling F1. Okay, this. Similarly, F2. So, the same process we have to repeat to the next layer. Output of the previous layer will become input to the next layer neuron. So, F1 is the output of this neuron will become input to the next layer like that f2 and again weights are associated and output of this neuron will consider as an output of this network. Okay, anything, any question in this diagram? In this diagram only. Okay, no question? Yeah, How does the hidden layer? You have a more number of hidden layers. You have a more number of neurons. You have a more processing power. You have a more way to understand the input. Means performance will increase. Got it Akas? Okay. How the weight W1 and W2 will be combined? We will discuss later.

Yes. F1 and F2 are the output not activation function. Hrithika. That's why I don't skip anything. If you skip any of the understanding, you will get confused. What I say, f is the activation function. Output of the activation function, I will consider output of the neuron. So, this f1 is the output of neuron. Okay, means whatever the activation function you have used in this neuron, that activation function gives you some output. This is f1. It is not activation function, output of the activation function. That I will consider output of the neuron. It is a more complex version. What it says that you have a more number of neurons in the hidden layer. Now output layer, we have more neurons. In earlier example, we have only one output layer. yes i will not discuss the bias right now bias will be everywhere so here will be bias also so whether i am mentioning additional input bias during the network design doesn't make

any difference in every neuron this is a neuron this is the neuron this is the neuron there will be additional input that I will call bias. It is by default. Okay. So, this is another way of understanding the network. Okay. How the weights are defined, you can see how the input layer by layer is propagating to the next. Okay. So, Gyanchan we will discuss later. It's not a right time to discuss the bias. It's a bit difficult. So, got it? So, how to decide a number of neuron in the output layer? I will give you one intuition only. Suppose you are working with the classification problem. Okay, classification problem. Suppose there are three classes. You want to give an image can be a dog, can be a cat, can be a horse. Okay? Horse. There are three classes. Assume that this is your network, just rough network I am making. This is your network like that. It is fully connected network like that, you are giving the image as an input to this network like that.

So suppose three neurons at the output layer, assume that this is for cat, this is for dog, this is for force. It will give you probability through the softmax function. I will cover later. It normalizes the probability. So, here we use the softmax function. Don't worry about what is softmax function. It gives the probability. Suppose it gives the probability of the cat is 0.6 percent. Probability of the dog is 0.3 percent. Probability of the horse is 0.1 percent. What will be your final output? You tell me the final output. I mean image is given to the network and you have three classes. That's why three neurons. So final output will be like that. So now you got it. How to decide what number of neurons you required in the output layer? I have given one idea. Actually here require always n minus 1. n means number of classes. Number of classes. If there are three classes then two neurons are required. So that sense I have given. More complex network. Sir, on what basis or the ground truth

the percentage is getting calculated? It's through the algorithm. So Vikas Duttal, you need to understand the algorithm first. You just search the image.com. Yeah, image net. Understand it's working. It will talk about how these things are being calculated. How it happened in the logistic regression, can you answer me? Because the same way. Okay, in logistic regression, how it was giving the probability. Similarly here, yes, Rohit has asked good questions. Why? N minus 1. Just I'm going to give you any idea. Suppose binary classification. Okay, how many classes are there in binary classification, tell me, two classes, agree. How many neurons are required in output layer, two or one, you answer, two neurons are required or one neurons are required, one neuron is required, one. So always one minus, always number of classes one, because if it is not in this class, there is a otherwise otherwise or else that represents the last class okay that's why always we have

number of neurons in the last layer and minus one because that is a we can use one class as a reference class this is a concept please understand reference class okay what is a reference class, you can Google it and understand. Yeah, so yeah, such kind of complex networks are there. You can design it. Yes, it is more perfect network. Why? Here explicitly bias are given. So understand these are the input. Okay, input are given the first hidden layer. then we have a next output layer every neuron must have the bias, don't any exception it is by default yes you can solve the DL in the regression problem the coding classes it will be there yes typical regression problem you can solve by using linear regression or by using a neural network both are possible we will do it in coding class So bias will be everywhere. Now, please focus on the screen, where you are going to save the weights between the layers. Suppose these are the weights, W1, are the weights that represent all the weights between

input layer and hidden layer. Then we have weights between these two hidden layers. we have weights between last hidden layer and the output layer. Anyone can have an idea how to save those weights in the memory? Anyone? How it happened? Matrix. Yes, matrix. I will give you example. Suppose this is the input x1, this is the input x2, this is the input x3. Then we have three neurons in the hidden layer h1 h2 and h3 suppose how it is connected w11 w12 w13 agree this is w21 w22 w23 then w31 w32 w33 these are the weights how to store matrix what will the size of matrix you tell me number of neurons in the hidden layer of input layer 3 number of neurons in the hidden layer 3 so your matrix will be 3 by 3 like w11 w12 w13 w21 w22 w23 w31 and W, 3, 2, W, anything like that. Similarly, it is also possible 3 neurons, then 2 neurons, it is also possible. So, what will the size of matrix? It depends on you, what you want to see, row-wise or column-wise, it can be 3 cross-through.

Got it? So, this is a matrix that represents during the coding, it's explicitly you have to define its size of matrix and how you are going to store the weight. So this is the matrix 2, store the weights between these two hidden layers like that. So slowly you will have a better understanding about the neural network. totally introduction and basic concepts I am covering. What are the weights? Weights are nothing but like let me call a linear regression. What output variable? Then if you remember we have a like a theta 1 age plus theta 2 salary. If you remember, Similarly, you can say fate, this is bias, intercept, okay? You already learned it, intercept or bias in the linear regression. And w1 age plus w2 salary, like that. So what is happening here? We have an input x1, that is an age in the form of neural network I am presenting. It is a salary, x2, agree. You are giving the next layer neuron, we have additional input, we call it bias, agree.

So consider this is w0, this is w1, this is w2, agree. So what is happening here? Output of this is y, what is the output in the linear regression? w0 plus you are multiplying w1 with this age. Look, you have already done it. Then it is w1 age plus w2 salary like that. This is a structure. There is nothing but it is a linear regression way I have defined it. Got it? So this is the summation operation I was talking about. This is the summation operation, you know. I will explain, don't worry about that. So what are the weights? It means you know about. So every connection associated with the weight, this is nothing but simply a memory or variable that stored the information. And initially, we need to initialize either 0 or 2 or with a small value. It gets adjusted during the training. We need to update the weight during the training. the way you know the coefficient of weight in the machine learning exactly the same concept.

Okay, so weights are clear. It's nothing new as we have discussed in the linear relation. So now let me explain with the next part of here. Okay, these three things I have already covered. Now I'm going to discuss this part. Look, if number of input is given to the single neuron, What is summation operation? Output of this summation operation, we call it net input. This term is very important. Please remember net input. Weighted, it is nothing but simply a weighted sum. What is this? This. Whatever the input is given, you have to multiply with associate weight, input with associate weight, input with associate weight, sum it, we call it net input. Agree? You can write in this way. Got it? But in the red color, I have written it is incomplete. White is incomplete. Anyone have idea? Yes, great. This is the bias or w0, whatever you want. You can think about that one. So what this is, z is written, it is a linear regression or not?

Yes. So, here I will discuss about the property of the bias. What is the role of the bias? We'll discuss later. So, property of the bias is what? It is extra input. We know its activation is always one. Activation always one means what? Its value is one. and it associated also with the weight you can represent with the W0. Activation 1 means its value is 1 and the weight the way you initialize the other weights in the same way you need to initialize the weight of the bias. Okay? Like during the training here yeah, during the training you need to give the different different value of the age different different value of the salary but if there is a bias bias is always one bias is always one weight is variable it will change plus bias value is always one this word we call it activation of the bias is always one okay yes w0 one wrong value is one weight is different thing. I have explained with the example because you didn't get it.

What I say, age, every time value of age always change and w1 also change, but bias is an additional input. Value of bias will be 1 and bias is also associated with the weight w0 it is a variable got it now because weight is a variable weight is not one yes now you got it mohit has returned correctly yes yes yes because you are correct ultimately during training wait decide how important the input is you are correct okay no uh it always one okay it always one. So now come to the next part, activation function. So net input, you see this diagram, after the summation operation it will give you the net input. Net input will go to the activation function. Activation function is output of the activation function is the output of that neuron. Okay, so there are some more terminology people are using, a very famous term, neuron firing. Please understand this word, neuron firing, or neuron is fired, yes or no, people talk about. Okay, people also say the same thing in different way,

neuron activated or neuron not activated. So here if input is given to the neuron, input is given to the neuron, it will process something. If it gives you output, if it gives the output, we call it neuron fired. Okay, understand this concept, neuron activated. Agree? If no output is given, then we call it not fired, not activated, not activated. So these two words I have explained. Now give me answer of this question. Suppose net input, so suppose this is the network, this is the neural, this is neuron. Input is given to the neuron x1, x2, x3, w1, w2, w3 and net input it has calculated. What is weighted sum? It is suppose 2.56. Agree? So, what is the use of it? There is no use. So, you need to bound it. Understand the concept of bound it. You need to bound it. bound mean means what? Suppose you are defining suppose you are defining if net input is greater than 10 then yes if net input is less than equal to 10 answer is no.

Agree? So suppose this is the activation function you have defined. So what it is doing? It is bounding. Now if your net input is 2.56, where it will go? Where it will go? It will go here. Everybody agree? So who does it? Activation function. There are various kinds of activation function I will discuss. Activation function bound. So bound it and give output. Okay, how to decide this number? It's part of training. Okay, we cannot decide right way. Just understand the concept. Bounding means if output is given, based on the output, what you are going to do? Like threshold. You have threshold value in the classification, you remember it, okay? If the threshold is 0.5, then probability is equal to 0.51. For your threshold is 0.5, it will go to the class, yes. Otherwise, class, no, agree? But suppose you change this threshold, in the same case, P is probability of the class 1 is 0.51, but threshold is 0.6. Earlier it was in this class. Now where it will go? It will go to the

no class. Agree? So who is bounding it? What is the use of this net input? What is the use of this value so you need to bound it this is the concept of bounding okay so neuron firing is depend on what what a net input is which kind of activation function you have used and what threshold you have decided based on that neuron will fire or not and what activation function required, activation function required net input and threshold value. Okay. Leave it that part. Yeah. So in the simple threshold based activation function I have tried to write it. So this is the net input. If net input is greater than the value you are deciding then answer is 1 or positive class. If it is less than your threshold value it is negative class or another class. So that is the idea about simplest activation function. There are complex activation function, don't worry. This is the one of the simplest activation function that people use it.

So now we have a, yeah, ReLU is activation function. Yes, great. So let me cover a couple of more activation function. we have a more 15 minutes so yeah we know what is the activation function it is used to give the output of the neuron it is decide neuron will fire or not everything i have covered it so there are three kind of activation function binary step activation function we also call it threshold based activation function then we have a linear activation function then we have a non-linear activation function, okay? Understand, all the modern deep learning algorithms use non-linear activation function, okay? Since people ask question during interview, it is in the literature. That's why I will cover binary step activation function and the linear activation function. But they rarely use nowadays. 99.99% people use the non-linear activation function, okay? Yes, why I will discuss later. Okay, so please ask that question when I will cover the gradient

descent. Okay, so non-linear activation functions support the back propagation and gradient descent. So I will discuss that part later. Okay, just you have that information. These two kind of categories of activation function are not being used because it don't support proper back propagation they don't support gradient descent algorithm optimization algorithm that's why people don't use it so by using these two kind of activation function ultimately you cannot solve the complex problem like object detection language translation and many more okay so starting with a binary step activation function we call it threshold based activation functions that are very simple. So like here, this is the example of binary step activation function. Why binary? Because it gives answer yes or no, 0 or 1 in that form. So this is the one plot of binary activation function. If net input or value of x, f is an activation function or any

function x is an input. If input is less than 0 answer will be 0 otherwise answer will be 1. So what it does it answer give either 1 or 0 because of this we what we call binary step. There are two steps only. So you may be talking about y 0. We can decide the threshold value. Yes you can decide. So the variant of binary step activation function is that shifted step binary activation function. So here this threshold value can be other than zero depend on your required line. So why we call it shifted? Because it is shifting from the origin. You can shift it either right-hand side either left-hand side. Theta is up to you. If your input value is greater than theta than one otherwise y is 0. So, this is the one way of defining the shifted activation function. One more variant is there, bipolar. Sometime there is a requirement output should not be 0 and 1, output may be minus 1 and plus 1. So, it is a binary step activation function but output is a bipolar.

okay so three variants are there in the step activation function here bipolar output also possible okay so what is the problem with the binary step activation function so through this you will also understand why the need of non-linear activation function somebody have asked the question why the nonlinear activation function is important okay so so here you can sense it binary step activation function is not differentiable everybody know what is the meaning of differentiable differentiable function everybody know it or not it's typical math differential activation function means simple word if i try it once sorry different input it will give you different output. Agree? Simple definition. But what is happening in a binary step activation function? What is happening here? If input is either 1 or 2 or 3 or 1 lakh or 1 crore. In all these values, output will be 1. So, that is the problem with the binary

strip activation function. Since it is not differentiable, you will not be able to apply the gradient descent optimization. It is a part of course. I will cover the gradient escape. Although it is not written in your syllabus gradient descent, but I will cover it. So, this does not support the gradient descent optimization and backpropagation. That's why not able to solve the complex problem. Again, remember this word. I will discuss during the RNN. What is the meaning of vanishing and exploiting gradient? This is the problem. If you use in your deep learning model or neural network, if you use the binary step activation function, there are higher chance your algorithm will suffer this problem vanishing gradient or vanishing or exploiting gradient problem. Okay, what it is, it is not right time to discuss. Must understand. Okay, now it is in the literature that's why I am going to discuss this is a identity function is nothing but whatever the input it will give you output. It is differentiable

but it is not able to solve the complex problem. If your dataset is linearly separable, this activation function will work. Otherwise, for non-linear problems, this function will not serve the purpose. Now, all the activation functions are differentiable. Sachin, you are not attending the class, I think so. I have explained this activation function, final step activation function, it is not differentiable. So, why you are asking this question? all activation functions are differentiable. No, all three activation functions I have discussed these are not differentiable. Got it? So this linear or identity activation function is differentiable but not able to solve the non-linear problem and if your data set is linearly separable that function may work otherwise cannot. Now come to the non-linear activation function that is a part of interest because you are going to use all those things. So first non-linear activation function is what sigmoid, a logistic activation function.

Already I have covered in the logistic regression. So this is again you can use as activation function in the neural network sigmoid. is a beauty of sigmoid or logistic activation function is that it can accept any input from minus infinity to plus infinity output always be between 0 to 1 because because of this property you can use sigmoid function as output layer in the form of probability okay so this is the sigmoid function okay this is the formula of sigmoid function i have covered in the class i have explained everything because output is zero to one that's why output of the sigmoid activation function can be considered as a probability it is a differentiable that's why suitable in the deep deep learning. It supports the backpropagation, the gradient descent. Okay. Then we have another activation function that is called 10h. We also call it hyperbolic tangent activation function. Output is here from minus 1 to 1. Okay. The formula of this activation function is here.

It is a zero centered. There's a difference between 10h activation function and sigmoid activation function is what? 10th activation function is okay. Because I am going fast because I thought these are the activation function, simple function we have studied during our schooling. Like a sigmoid activation function I have already covered during the logistic regression. That's why I don't want to discuss in detail. You can refer that recordings. 10H activation functions are those where it ranges the output from minus to minus one to plus one. I think it is already known to it. That's why we don't use output of hyperbolic tangent function or 10H function as an output layer so i have written look yeah that's why most of the time you will find attendance activation function people use in uh the hidden layers attendance activation function people don't use in the output layer because you cannot consider

its probability. Otherwise, you need to first normalize it. Then you can use it. Okay, because? Okay, in the next class, I will cover ReLU. Here I will go in detail. Because this ReLU function, you might not have studied during your schooling. All other function I have discussed just now was part of your schooling. That's why I have gone in with rapid weight. and all such activation function and fundamentals are not in your syllabus. So, I have to go fast. Otherwise, you will say at the later stage, sir, many of the syllabus have not been covered. You can complain it, okay? So, these are the course I am covering that is not part of your syllabus. I am just reminding again and again. So, you should be in the clear picture. how I have to manage many things. So, ReLU is a function that I think you don't study during your schooling. So, I will cover in the next class. Got it? Mohit, I always upload the slide just after the class.

You will find everything there. Yes, Chandra, this is the problem I am facing. I need to cover fundamental, basic, everything. It is not in slavers. Okay? so but if i go slavers as it is you will understand nothing okay for today uh thank you we will meet again in the next class thank you everybody thank you

