Introduction

One of the best forms of machine learning is reinforcement learning, and if a deep neural network is working with it, then it is capable of becoming a fully automatic robot.

An AI technique that combines reinforcement learning (RL) and deep learning so that the user can identify even the biggest problems at once and feed them into the machine to solve them.

Neural Networks

It is very difficult to make a good neural network. To improve the heuristic, we usually have to play the game many times, so that we can find out whether the user can select another and better option or not. It is very difficult to do this because what mistake is he making, and if he is making a mistake, what new is he learning from that mistake?

If we have such a network in which we can take the right design of the game, then in this article, we will replace a heuristic with a neural network.

The network takes the past in one way as input and then gives an output.

Output

The user makes a move by measuring all the inputs. For example, for the board in the picture above, the user makes a new move with a 50% prediction. To encode a good automatic technique, we just need to adjust the weights of the network so that for each game board, it assigns higher probabilities to better moves.

At least our goal is to make the game continue automatically even if the player does not choose any option the next time. This is what a reinforcement model does.

Setup

We will look at the techniques for how a network distributes its weights.

Our target is to calculate the total points of the agent, which will tell us how well our model is working. Giving points is a good way to show the agent. Once I describe the issue, we have many algorithms for resolving the issue.

Reinforcement Learning

There are some major reinforcement learning algorithms, such as DQN, A2C, and PPO, etc. All these algorithms use the same technique to build agents.