The game has 2 binary numbers as input, but because the Neat gives me real numbers,
Instead of getting list of 0 or 1 like [0,1], it gives me 0.12451 or 123.3123. This cannot be input and i have no idea how to fix neat's output to only binary.
I think the best approach to this is to round the numbers to the nearest whole and then clamp that number to 0 or 1. NEAT will learn to place its outputs into that range of 0-1.
I used Gym Retro to try NEAT in Pong Atari 2600.
The game has 2 binary numbers as input, but because the Neat gives me real numbers,
Instead of getting list of 0 or 1 like [0,1], it gives me 0.12451 or 123.3123. This cannot be input and i have no idea how to fix neat's output to only binary.
Is there any other way?