Recap – The general AI framework/blueprint
Let's recap and provide the whole AI blueprint, so that you can refer to it whenever you need. You can even print it out and put it on your wall!
Step 1 – Building the environment
- Step 1-1: Introducing and initializing all the parameters and variables of the environment.
- Step 1-2: Making a method that updates the environment right after the AI plays an action.
- Step 1-3: Making a method that resets the environment.
- Step 1-4: Making a method that gives us at any time the current state, the last reward obtained, and whether the game is over.
Step 2 – Building the brain
- Step 2-1: Building the input layer composed of the input states.
- Step 2-2: Building the hidden layers with a chosen number of these layers and neurons inside each, fully connected to the input layer and between each other.
- Step 2-3: Building the output layer, fully connected to the last hidden...