Artificial Neural Networks
Transcript
Artificial Neural network is a computing system designed to replicate the way humans on lies in war it forms the base off all artificial intelligence concepts that it's like you have come from this your guardian on unit moves Now before we go ahead recession I'd like to inform you guys that we have launched completely three black form quickly clinic Adam but you can have access to because is that asked the iCloud And this is marketing intake of the details in the description below Now let's have a quick glance of the agenda so we'll start off typical gentle introduction to artificial intelligence and deep learning Then we'll understand whereby large failure let works and how it inspired us to come up with the concept of artificial neural net books Going head will understand the implementation of artificial neural networks pulling which will called pensively understand what back propagation and then finally will have rhythm over will be implementing this artificial neural networks with our
language Let's start organization in this video even see what is artificial intelligence What does it mean how it has evolved over a period of time and what does it mean to you and me And what does it hold for us in the future Artificial intelligence has been getting a huge moment in the recent world and it's making a tremendous impact you know career Oh comes But before we delve into that let's understand what this artificial intelligence So what is it Let me ask you a question Look at the photo Bo And can you guess who that famous personal days
I think most of you guys would have guessed that it's Albert Einstein but it's not an easy problem Think about how your brain process that information and how did they recognize it It might have noticed the facial features It might have noticed the curly hair It might have noticed the distance between the ice It might have noticed another 1,000,000 features to come to the conclusion that it is Albert instincts So can you make a mission to think the same way which you think that's the process off making a mission to think like how a human dust is what is north However human's ability to think and make a rational decision in a critical situation is unfair Any that science is not able to correct it So what does missions have for them How is that speedy And how is it doing good What do they have is a competition and this is gold Massively In the recent years let me ask you what is the square root off 200 You'll not be able to tell me a second but
where is the computers can But if you were to ask a computer to take a bottle of water from your kitchen will be ableto well The computer needs to know what is immortal What does water me and out of a mezuzah Kitchen fans the humans that don't have any problem in that So making a computer from done about its surroundings adapt and then group is also hear The term artificial intelligence has been known since a long day It was first coined in 1956 by Mr John McCarty at the dartboard Conference so the confidence was hit on the garnish A lot of attention from a lot of players
we're creating this passions are creating the smart questions required a lot of computation power on hardware just apparently no there at that point of time Well the tipping point came in the late nineties where IBM's Deep Blue stunned the entire world by defeating the world champion at Chester So not a fully factually We see fragments off the implementation in our daily day to day life Think off the next time in your type in Google search How does it come up with the fact What
are you going to take next Google has tons of data based upon what have your type so far on its L gold ums are running out the back to find out what I want right next based upon what everybody Netflix predicts what movies you want to wash next based upon what movies you're washing The bust that is Facebook detects all your friends in the same photo which have taken on uploaded based upon the information it has gathered in the past About your friends in
your own profile is usually divided into two broad categories Freshen learning and deep learning Mission Learning is the use of statistical methods to understand and analyze information from a given data It is deep learning a broader area mission learning or abroad A subset of mission only mostly bills with your notebooks computations are growing exponentially Year on year the scope afia has become bust and is being used in almost all the door It's in all the verticals
and across all the industries Beat idea retail calico B A for safe travel e commerce Any of this industries the eye And Emily has a future in all the facets off these industries off This video was helpful to you guys If you like this video like share and subscript all channel and stay connected bitters for future it's So what neural networks are we'll start off with seeing briefly what a biological neural net book is Um we won't go into matter off The details will
just do we know of you because it helps to understand what an artificially order network does Um then we'll see the overview of artificial neural network and a small example Ah pretty small example on Ah what happened and how in your network loans We'll see how we implement Billy and and and different steps that are a part off implementing artificial neural network Ah one off them being back propagation
than now the weights up station and then the error function Then we'll also see the somebody off What The overall learning algorithm that the neural network for lows on dhe Then we'll see how implemented over the network and are using the same using that same either status that that we used to do so that we only know what There's Theus sense of fuse in your love network in art and were able to compare the output off what we did with provisional Carl rhythms and what the neural network gives us Oh okay
So what by logical neural networks you would've seen already how They're the basic building blocks of the um certain What's that The central knows systems or these other diagrams which may be repetitive for you But then they help us understand what our biological noodle network does not going very deep in tow By Lord T Um So it's something that you see in the yellow is a new Ron Okay which is similar to a neuron in the artificial neural network Each contains some data about
the arm input data variables Okay So like the neurons are interconnected at the point called synapses So in the diagram above um you see lead soak away there is a synapse So neurons are interconnected at the wind closing up this and this is similar to the artificial neural network because of the different in what way Variables that you take Um that information is passed to the hidden layer And how that information is passed to the hidden layers is through all point with a similar door The synapse in the biological neural network
Um two There are three parts that are typically present didn't by law to communal network Ah one is the dendrite which is the law Um we can stay like terminals off a noodle network with the responsible to receive signals from the surrounding neurons than ever Accent with They're nothing like a but so are comparing it to the artificial neural network like there is a part when you go from the input layer to the hidden layer there's a part in between our which carries the
information's on the accidents similar to that then it's an obsolete as an abscess are responsible for receiving the signals and learning from the past activities How we correlated to the artificial neural network It's um because if you if you know off the concept of back propagation Even the artificial neural network loans from it past activities and to ableto kind off relate the biological neural network Pretty artificial neural network to eat off your onshore act as a
neuron in the artificial neural network The accident as a part where the information is traversed from one letter off new network to the another layer of neural network and that then right onto Napster's I usedto send and receive information between one neuron to the other And then they also enable the neural network to learn someday passed after with ease And that's how the AL garden improves itself Okay so uh this is essential to I understand Only because the artificial neuron our network gets its name from the biological Your electrical Okay Um
so this is again um smiled I gave them to just show you how the information is passed out with a biological unit Work on a similar kind of thing happened with the arm Artificial unit workers Well capital What happens is sell whenever assorted information is um coming toe a neuron when a certain information is present in the new Ron Um So there's this thing called tray shoulder which would also see with the artificial you know left book So once that threshold has reached one that special has being achieved The neural network transmits a signal through the ag zone And the similar kind of thing happened with the artificial neural network is well whenever the threshold is reached our activation function trekkers and then an information is passed from the input Um
let's dig up a clear So we'll see how each of these steps in the biological neural network helps us also understand what this President Lee artificial neural network Okay so this is Ah how ah basic off how in artifice in your little book works So the input that you see here are nothing but importantly how variables over the data is that they're working with Then there are certain weights which are applied ahh to eat of the important media boots Um until the way it's
not apply that nothing but the help the noodle network tell What is the importance of each off the way vehicles So this is also what we saw with the previous Alcala TEMs be alone So each way be able that is present in our row input data set does not have equal importance Get each input variable does not have equal in port Instead I'll be rebuilt with More important they're very bitter Yes we're important How that has decided is through these weights So whichever variable
is given a higher rate is comparatively more important than a variable Gaza Yes sir Wait So this is how the weights are amused in the northern network So the set of inputs which are nothing but um the variables from the leaders at that thought off us neurons This is how we correlate an artificial neural network widow biological neural network s So then there read according to the weights that are applied what I just told And finally this is Oh we do kind of a
some product off the input variables with the weights Some product means to say X one in tow Doubly one place extra int o w topless extra into w tree in so on Okay so the function that you see here are the summation function of the Sigma function Here The skin also be Caldas It can't work function So this actually performs the some product Settle some of the weight on the input that it receives from each off the neuron The next step is to go to the activation function which will decide whether or not you're on mill fires the similar to the biological neural network wearing with the threshold we decide whether or not arm the information should be sent to the next flesh
Okay So if if the threshold also whatever some you get using the transfer function are you compared it to the threshold If it exceeds the threshold the activation function decides to fire when it fires the information is passed from the inn What led to D out clear like similar to what happened in the biological neural network When the activation function fires information is passed from one led to the other Okay so like I told earlier also the wait can be used to amplify our
d amplify the original input signal meaning to say they are They're used to determine how each variable will be used What is the importance that they be given to eat off the variables Okay Took on today the simple example So this example it's got nothing to do with the neural networks actually um consider that you have to say to input variables X when the next to um So these are two input variables in a data set One off them having away our value off 0.6 and one off them Having overly off one Um on the weights Say that applied to both of these input variables at 0.5
and zero point it again you're also being given out the shoulder off want So what happens in simple terms in the neural network is the first step off A chance will function what we saw in the previous light off Nothing but the sound product will happen here So 0.6 in 20.5 plus one into 0.8 So that gives you 1.1 So this is similar to the R summation function that we had seen here Um next we compare
this value that we've caught with threshold to say our value Oh that we've got is 1.1 But the pressure lives 1.0 So we see that output this more than the threshold that was allowed So since the output this greater than the threshold So the neuron is activated and it fires Okay so this is a very simple example This is not what happened Actually happens The neural network because they're in a bed innovative off the other function And all that is calculated toe edit function is nothing but the actual output Ah a difference between the actual output and the desired output So they're not dead innovative off that is calculated and passed back to the ah neural network But I put this example only to show you how the trash world works
So when whenever the output exceeds the threshold the neural network will know that it needs to fire Um the signal What is meant by fighting the signal is nothing but up back propagation Meaning to say that whenever and now put increase the threshold Um and the algorithm will I'm sorry Whenever the Albert and creators threshold a bad propagation will occur and a reiteration reluctant annuity operation within a neural network will occur And the output other l gotta temple tried Oh improved the output Okay
Now we'll see how we are Implement the artificial neural network So this is a simple diagram to show how a neural network works So there are for example three input variables to output variables here So they can be any number of hidden layers that are present in the neural network And the hidden lives actually perform whatever Um plea and garden needs to be applied Is stunned by the hidden layers only Ah there are different ways on how we decide Ah how many hidden layers are to be present and we'll see that when we work with are So what happens here is that the input Claire will take the input from the input variables So say you have three variables here so each input eat off the neuron that you see in the input layer will have data from one
variable each The input layer will take input Junkie input variables The hidden layer will help The import led to move to the output clear canto The input layer will pass the information to the hidden layer with the weights present And then they hidden layer will move that data to be up there But the hidden letters essentially oh big black box lay like I told you earlier you will never be able to understand what is happening with the hidden yet on the output layer will stroll you the final output So this is a Naderi toe A more detailed on diagram off the off a diagram So what I'm
trying to show here us that there could be any number of notes that once can be present at every layer And then there are who waits that are applied to the Excuse me Okay so then the weights that are applied to the input that take them to be hidden layers if you see in the diagram vill Oh there are three in boats 123 And then there are some weights will turn up blade do the each off the in boots when it is being taken to the hidden layer So each input variables with some way the plight will goto eat neuron in the hidden here So if there are three input variables on there are Rome three hidden layers So eat off the importation The input arm I want Will goto eat off the neuron Really hidden Blair on a different weight will be applied when it goes through each often you're on in the hidden there and there is another category off wait So one is the way it's not applied
to the input variables There's another category your fate which we call Astor bias values Tobias values are a can use to train the neural network So this this can be compared to if you remember with on regression Also we used to have a similar things where now we'll have some weights that are assigned to eat off the baby a ball so that woody coefficients back in our regression when ah you used to get immigration something like Why equals to arm a plus b one x one plus b two extra glitz be three extra and so on So then they were coefficients are in regression out of weights returned neural network But there was also an intercept which was the unexplained our variance or unexplained output that the intercept used to capture so similar happens here with the hidden bias So that is some information that the input
input variables along with the weight cannot cap after that was captured by the hidden bias So but eat off Um the letter that you have apart from the input layer there'll be a bias entered like if you see in the dive from here with the second layer or that is the hidden layer present in the between There's a hidden bias that is added on with each hidden land that you have Like here we have just Hinton lead but each hidden layer that this present they'll be open hidden bias for each off the layers on Finally they're old They will also be an output bias which is present for the output layer Nothing but the intercept What We used to have it The person in question Okay that was the basic off What an artificial neural network does will goto
back propagation Now to see how the neural network loans are camped on the basis of a neural network is a powerful learning Morgan is um um although it is a powerful learning McCann is um but you will never be able to understand what that landing mechanism is But that being said though you relent work has a power for learning McCann is up on It can learn any function given it has enough hidden units So eat off the hidden units that are present enable it doe loan tow the input data set Um and how it loans us by the mechanism that we call us back proper location Okay
so like I told you earlier also when on in Portis fed to the neural network that is when the input variables are fed into the noodle network Um the input will some weights will be applied to the important actress Oh coming Some bias will be applied to the in addition to the input that is coming And finally all that data will go to the hidden layer Same process will be repeated on the data will move to the output layer When you get the date I'd be out clear The difference between what
the actual output or the desired output waas and the output that you are getting some era will be calculated based on the difference Whatever is the error will be fed back to the are forced layer on the whole process Repeats Yeah So these editors off it back to the neural network and then these weights to the question that they were asking the weights are then changed in order to try to reduce the errors and give the correct output to the first situation Random rates
will be assigned but with registration that hap opens the weights are changed Um using the errors that we have caught in the previous letter This is the diagram that explains back propagation So there are some input variables Then there is a hidden layer So say there are oh tree input variables here Then there are no hidden um neurons with wth e headed layer So eat off the input variables is being all fed to the hidden layer And then there's also a bias which is
being applied And then from the hidden lead we're going to the output layer on the output layer The other calculation happens which is nothing but the difference between the actual value and the calculated value Whatever is theater calculation is bad Propagate that and then the weights are want to fight This happens each time the algorithm chants and that Saudi wait are improved And that Saudi unguarded um notes Okay Okay so then once um you're done with back propagation is all you did with back
propagation wants to get the error and pass it back to the old input layer so that the weights are modified Now how the weights and quantify it is Um after you've done the back propagation you need to update the weeds Now if you remember with the previous slide that we've seen here there are rates apply to the hidden layer and then they have big It's applied to the output layer as well The both of thes weights are different Okay so um don't get confused But what Ah the equation here is But
this is just mento show that there are no different weights that are applied off the boat off the layers So w idea that you see here is the week that was um passed to the ray labels from the import lair on W J K is tthe e awaits that applied to the neurons from the hidden layer comes of both off them We'll launch from the errors that they're doing on both off the weights will be updated Don't go very deep into what the mathematical terms here are But this is just meant to tell you that both off the wait will be more the fight based on the error that we're seeing from the previous generation off the car There's another thing which you would be CEO to seeing here which is
the Alfa Value So Alfa values nothing but the learning rate known ingrate means to say at what did it do You want the neural network toe loans and this is nothing but the learning speed Okay if you make the learning speed too quickly are you make the Alfa value You don't really specify these values This is what happens the background But if the learnings bead is all very quickly the um sorry the learning speed is very faster now for Bradley was closer to one
theory garden would not be able to learn properly This is not a thing like nothing like um trying to say that you're trying to learn something very quickly So you destroy I know what you don't understand the sense of what was there in the data And if if you make the learning rate very small you don't allow the en garde tomato grow You don't allow the unguarded Tinto learn on the go on optimal learning rate ISS chosen But you don't choose does it Thean garden tools is itself but an optimal our
learning latest chosen for each situation that happened with the neural network So when back propagation will locker some errors would have occurred And then a back propagation with lacquer that it'll will be passed back to the ohm and God autumn the weights that are being passed that are being applied to the input data variables We modified the weights that are being applied to the hidden life It all to be modified and finally or you won't put
within produced And this process repeats across multiple it rations And each time the weights will be updated him Um then we come to the error function Every function is nothing but again the difference between the actual value and the desired values Your um so although this is a repetition but um the input lady able will be passed to a system so adaptive system here is nothing but the job hadn't left And then you get up output by you Compare that output to the desired output Whatever is Theo error is fast back to the adaptive system Nothing but the hidden left Then the waiter want a fight Um said one thing to keep in mind this that the other should satisfy some particular properties
off This was this was present in the videos as well that we saw on the first thing being back The error should be um that I ve been meaning to say that it should be possible to do what that awaited there But there was nothing but the by the ex What we used to do back in 11 12 mathematics it should be possible to do a derivative Why um To answer to one of the questions earlier on the threshold that we calculate the threshold that we specify is a declarative off the
road Well capital if if it does not remember So the threshold tingle not books that special that we're specifying that we're telling the algorithm is nothing but that of a tough off the error that we're getting and each layer Okay um as this is very obvious Although but as the output moves towards the desired value the error should obviously move toe zero enter should be negative again for the reason that we should be able to do with that everything off it um and then
are we needto choose on the error The other value sorry We're not using the air around Iraq actually But then ah when there is a new low value for the error or they're too high values for the error that actually are impact how the neural network works If the value is too high the accuracy of neural network will be bad And then it is the lot of it rations to our be able to learn on if the error value is too small Sorry that I have perfect Ah opposite So if theater
body was high then wth e you're a nettle will take a long time too long I understand that after the session Okay so we'll finally see an overview off What happened with the learning and guarded items Um in the learning and guard it immobile So the back propagation actually allows the neural network to get trained similar to how we train all the machine learning all the data mining models Similar way the back propagation allows the neural network toe loan Um this happens in multi
penetrations What I've been calling so far Ah these situations in terms of Euronext booker also call s it box So it goes through several e box before the network has sufficiently loaned to handle all the data that has provided this is again a different diagrammed shown in a different way to show how back propagation works back to fit That will happen This is that it happened for eat off The interational eats off the box are the input data will be fed Thea output data will be compared against the desired value and then it will be whatever the area will be will be back Propagated Amusing The other toa data Um Now then well this stop meaning to say that each time when um
particular era is calculated based on ah what was the output boss is what was he desired Output And then a back propagation occurs So this process keeps on repeating So like we used to have Ah Bruning step on stopping cripe area Ah for the decision trees that we saw last week Similarly there should be a stopping criteria Sure A swell sir Multiple stopping right areas can be useful Neural networks one off them being our desired mean square error and one of them being in
love Steve Box desired means wherever tells what is tthe e enter that we can allow the data Otto has Ah what is Thea flexibility that we're giving the data toe have on elapsed boxes Nothing But what is the number of operations that we want So a neural network cannot run indefinitely through 10,000 and one large creations Dismayed Ease with the data that you have but it cannot run indefinitely So we need to specify the number of iterations of it's a neural network should learn So both of these are I used us stopping criterias for the urine Okay um again I'm using the idea state That's it that we had um scene with the previous home and gardens is Mel um to give you a quick revision about the iris data set Waas So the status that has won 50
entries on which there are four input variables with our polenta were turned better lengthen bit And finally there are three species 50 off beat species and the aim off this in garden is toe Try to predict what important what is the species of a particle of flour given its attributes off Zeppelin Patty And so over the last session we try to protect the species using card um using no random forest We also saw the same example but plastering as well when we were tryingto use disciplined with Stan Bedlington with Joe I don't plaster these so class together so we'll use that same way Does that Um I'm repeating the steps what we did earlier off generating around them number shuffling the details of this again is oh um optional step But I normally do it so that there's no bias ness which is present in the data
One important step over it took you know down here is the line number 12 that I have with our cord If you remember with um noodle network this was being done in the example that we didn't understand all Toby was full in the example that you don't but ah you many project So it's that is any really ability is off Categorical were able something like um the species that you have here when businesses where it said oh so farcical And Virginia Command you have three species You cannot have the data in this format when you work with the other networks so you need to have three columns be done informs off one and zero So
either you can do that with multiple commands Either you can create um three new input variables and then pass Wanna or an zero here but a simple step Awesome Bill command is the class start I I nd command which you can heels in one goto create all the three variables Let me show that to you how it happens If you see here with a single command I'm able to say cricket the initial species that I had If you see the species I had here was um in the form of settles over
Jenna gone warsi color and then have split that the fine form off zero and one with one single How canto Um what was done earlier Waas we usedto create We used to do that Oh for eat of two variables one by one But he was in this command You can now very simply split the baby about in the required farmer Okay And as a short cut what have also donors have done the scaling of the same command here So what does entreat it was from the nation either Sunday because it that I heard I scaled the 1st 4 berry a bill to the 1st 4 variables off separate length with Bette London but was killed And then this week um the output variable which was one was splitting form off 011
toe be ableto fit the neural network So then I am um simply dividing my data set indoor training and testing that does it Ah so the Fleer 70 30 but not exactly are the 1st 100 And passing to my 1st 100 rose and passing to my training data set andare next 50 to my testing data set And finally I'm creating a new internet It works well See Sure What is deep Fatemi does that we passed to the your network Um the first thing is the formula that we need to give here So the farm last year tells me that
these three which now become my um output variables sees that those of our sickle and birds in the government's now become my output variables are a function off four independent artie input variables So this is the formula that I've specified data is the training data set hidden specifies the number of hidden layers that you want Also a tumble to tools Three hidden layers is all under route off the number off input variables that you have So if you have I had four input variables here so I chose you Okay And um since you saw you can have multiple hidden layers here So say if you'll have um Oh maybe like hell I had in what
Lady of Birds And hey didn't let so since I had four input variables I did a square root off Um this do tools that tire if half door hidden hit unequal still toe here Well second Okay And um
sorry to hear means I'm rounding it off to get a toe So that will mean that I have one hidden layer with two neurons Say you have um maybe when be input variables off in place of four So you do a square root off 20 It should be 4.47 or new Round it off to five Then you do a square root off five And that could be 2.3 So you can rounded off to Probably toe are three So what I'm trying to tell you is that when there are four input variables I'll have just one hidden layer How It
will have to note when you have say 20 input variables you'll have two hidden layers The first off it will have five hidden neurons to say enough it will have um don't neurons Okay Making sense Oh like if I have 100 input variables I have ah first hidden layer which will have any neurons Then I'll have second hidden layer which will have three neurons then Ah yeah tow that you'd be here Um see I have 500 input data variables So I have first hidden layer which will have um say 22 hidden
Sorry I'll have first hidden layer which will have 22 neurons Then I'll have um second hidden lead rich and have 4.7 or you can round it off to five neurons Then again I'll have third hidden layer which will have don't neuron So this is how you decide the number of hidden layers that you have the data and number off neurons that it be present in each hidden Let me let me go Enough idiots that under this again I'll get so in we had 1/2 note and then the hidden Nair's So when
I had for input variables I do a square root off four That will be so So I have one input layer which has the sirah Buta first hidden lair with I do neutrons Okay so you're kind off Keep doing the square Wrote multiple times So I'm doing a square out here the first time Second time when I do a square root off So I come to approximately one So then I stop Okay Meaning to say when I have four input variables I get it too So that will be first hid in leather with don't neurons say if I have
n input variables I'll go a square root which is approximately equal to three So I will have the first hidden layer with three neurons and then I'll do a square root off three which is 1.7 and you can round it off Duke So So I have a second hid then layered with your neurons Okay Now we've now if you do a square but you keep on doing the square root it creatively Eso Now if you do a square What You'll get something like 1.1
point four somethings are there You stop So with 10 input variables you'll have two hidden layers So with the hidden layer perimeter that you're specifying here I didn't know here because I had just one hidden there So you need to give hidden equals toe So here with the 10 input variables you need to give her the unequal still see off three comma tow three means first with three neurons Second with two neurons Okay Like a bigger example If we take I have 540 variables so I do a square root off 500 lie could be say 22.36 and I'm rounding it off to 20 tow so I'll have first hidden lead with 22 Newman's Then I am doing a square root off Hey Needles
That gives me 4.69 and if I rounded off to five so I'll have a second hidden layer with five new Ron's Then I do a square root off five square root off five which gives me 2.23 So I round it off to know for example So then I'll get 1/3 Hey didn't lead with um doing your guns And then when I'm doing this with our I give hidden equal store when Tito comma five comma So this means three layers first having 20 Don't You're on second having five neurons thought having Don't You're nuts Okay um till next is um the threshold So their shoulders nothing but their innovative off the error that will be calculated that each step So we can also see that from the help in our age See the special little specialise No medical value specifying
the threshold for the partial derivative of the error function as a stopping criteria So at each step some era will be calculated as a difference off the actual value and the desired value And then your calculator derivative off it So say the error in the first step is so for example so you calculated a derivative Elphick then bye propagation with locker then a reiteration with Legrand this process keeps repeating so this threshold equals to 0.1 sees that keep repeating until you receive or derivative of the aerial function which is 0.1 Okay
So in the first on the force situation may be on the air Live off derivative Off the error function will be safe for example one Then you back propagate Reiteration occurs then the derivative off the edit function maybe comes down to 0.9 Then you repeat the back propagation occurs then Ah maybe the that give off the other function comes down to be 0.6 10 0 point does you don't find one and they left Comes down to 0.1 You need to keep repeating the card
Okay Um the next step is So this is um one stopping great baby A They're shoulders one stopping criteria Step Max tells you what is the number of it rations You want it It's possible that um hey went with 10,000 integrations or 10,000 cycles The threshold doesn't read 0.1 doesn't mean that you'll keep planning this algorithm in finite times Step Max is another stopping right area Which tells us what is the number of iterations that we can allow one Your network tohave The step Mexico's to 22 2000 tells us that we need to um we can run this and got it on a maximum of 2000 times
Okay um Selenia output equals two falls is nothing but um telling whether or not you want the activation function to work So ah tau revisit activation function was nothing but allowing a neural network to fire a trigger Firing a trigger means allowing in your network to backfire So very bad Proper get So when When new specify Lee near output equals two falls That means that you're allowing the activation function Okay S o with the lectures There
were different activation functions that would also given But there's not much difference practically speaking with ah the different activation functions And even if you don't specify it explicitly with the commands you know you're not missing out anything This specified that Lee near output is equals two falls This is enough to tell our that you want the activation function to book Okay um the life sign nickels to fallen Life signed out The peak was too tender again
Optional steps Um these are only to tell our that Say I am telling here that I want 2000 integrations Eso These two steps are only to tell our that I want to see the output after every tent it race If you if you step If you skip this step even then deal garden build on But it will not show you what is happening with each step So when I'm telling our that I want the life sign Step Toby 10 So after each then it rations Like after Tenet rations after 20 after 30 after 40 So until 2000 I will show me what is happy I mean with the new network if you skip does it directly give you win What Okay then um
head or not If city is nothing but are telling you how do you calculate the error function Okay Um so editor is a real function is nothing but a difference off the um actual value and the desired value But how do you can collect it is to see a sum of squares that are and this is the best you can do with neural networks Because with your networks you want your error Toby positive so that you're able to do a derivative off it So the best thing to use an SS e because some off squares Andrew So supplying all these bana meters when I run this command
Okay so I ran this command See there are don't hidden new runs That was what I would had specified Ah with each situation So I told that I can do a maximum of 2000 steps but my unguarded um stopped with 1 25 steps Ah so when they were 10 steps when penetration that occurred My error waas 2.869 after 23 years to 2.795 after 32 adios to 1.47 And finally after 1 25 it rations my era reduce to 0.354 one Um so the stopping right area which worked here waas this threshold So
a dead innovative off 0.35 fun would have bean lesser than 0.1 n hinted stopped here Okay um toe want theater off 0.3541 waas achieved This was achieved with 1 25 steps so I did not have to do 2000 steps I got the output with each tenant rations You see you can You could have done a life sign Step off one to see what Hap opened with meditation comes to be bailed Eso with each penetration You see the error was reducing and finally it came down to 0.351 on this occurred in 17 seconds Okay Now if I kind of tried toe lot the noodle network this is what
I get So see there are four input variables Zeppelin with better lantern but ah I have just one um hidden layer That has it'll neurons Ah these are the weight The ones that you see 1.83 on the top Sick Yeah So this 1.3 that you see 1.83 that you see here is to wait These are all the weight that you seeing Um then zero The 6.6 that you see here The minus 12 that you see here Sorry Ah these are the biases So 1.830 point 76 the one that you see on the black lines are the weights that are being applied to the input variables The ones that you see in blue 6.6 and 1.2

Ask anything
We've read this whole study set, so questions about it get the best answers.