neat-python icon indicating copy to clipboard operation
neat-python copied to clipboard

Why different discounted rewards for different genomes?

Open mdalvi opened this issue 8 years ago • 1 comments

Hello CodeReclaimers,

I was taking a look at evolve.py in the openai-lander example and noticed the use of different discounts for each genome.

My question is, what is the significance of using different discounts for each genome? Why not use some arbitrary constants like

m = 50
discount = 0.9
discount_function = [discount ** (m - i) for i in range(m + 1)]

Won't this favor some genomes while penalizing others lifelong during training?

mdalvi avatar Nov 09 '17 21:11 mdalvi

I think the discount attribute is also considered as a parameter to evolve. In the LanderGenome class, you can see that the discount is also involved in mutate, crossover, configure new and distance calculation.

KarlXing avatar Nov 24 '18 21:11 KarlXing