Choosing Fitness function for float output in Genetic algorithm
The standard solution is: Use a softmax layer at the output of your neural network, and use the cross-entropy loss as your fitness function.