Re:Show HN: A Genetic Algorithm library written in JavaScript
by nyxyn on Friday August 14, 2020 @02:34PM
(#24161555)
Thanks for your comment. This algorithm keeps the best candidates through every generation.
[ Parent
| on HN ]
Re:Show HN: A Genetic Algorithm library written in JavaScript
by bmh100 on Friday August 14, 2020 @04:08PM
(#24162643)
I see that, but the best candidate of the current generation is not necessarily the best candidate ever seen. Reproduction and mutation can lead to the best solution of a given generation being worse than the generation before it.
Re:Show HN: A Genetic Algorithm library written in JavaScript
by phyzix5761 on Saturday August 15, 2020 @10:39AM
(#24169187)
The best candidate is always kept throughout the whole evolution process. If you find the best candidate in the second generation, for example, it will be kept all the way to the end.