Loss Function in Neural Network

Loss function is gonna help us to understand, how are these weights and biases are gonna get adjusted. What we do is we look at the output and compare to actual output and it will adjust the weights accordingly. How do we adjust that? We use what's known as loss f…

Read more

Activation Function in Neural Network

Now, what we have discussed in the previous post is a very advanced technique of linear regression. So, essentially what i was saying is, we are adjusting weights and biases. We are creating a function, where we give a input and we are gonna get the o…

Read more

How do we get a valid output in Neural Network?

What we are gonna do is, we are gonna train the network with a ton of different information. So,let’s say we play 1000 games of snake and we get all of the different inputs and all of the different outputs. We consider did the snake survive or not. What we will do is,…

Read more

Training a Neural Network to play a basic snake game.

We are gonna train the neural network that will allow us to keep the snake to stay alive.Essentially the output will be what direction to go in or to follow the certain direction or not. Essentially we just wanna keep the snake alive. The first st…

Read more

How does a Neural Network work?

Neural Network is essentially is a connected layer of neurons.  So, in this case we have four neurons in the first layer, let’s say input layer and in the second layer we have one neurons, let’s say output layer. In a neural network, we can have connections happening i…

Read more

Neural Network

What is a Neural Network?   So what is a neural network? When most people hear of a neural network the think of some magical black box that is capable of solving very complicated problems. In reality a neural network is just a very fancy math formula, well kind of. A n…

Read more

How to save a model in machine learning?

Why we need to save the model? As we saw in the previous post  when executed for the second time the accuracy level dropped from 89% to 81%. So, it is necessary to save the model with maximum accuracy. How to save the model? To save the model we use the python module …

Read more