The neural network has an input layer of 24 neurons, 2 hidden layers of 16 neurons, and one output layer of 4 neurons. Note: Network can now be customized with the number of hidden layers as well as the number of neurons in the hidden layers. The snake can see in 8 directions. In each of these directions the snake looks for 3 things: Distance to food Distance to its own body Distance to a wall 3 x 8 directions = 24 inputs. The 4 outputs are simply the directions the snake can move.


GitHub Repo: https://lnkd.in/gFTA8md Credit: Greer Viau hashtagartificialintelligence hashtagmachinelearning hashtagdatascience hashtagdeeplearning hashtagpython

Powered by Blogger.

Copyright © NEXT_AI Template Design by jay nandasana