Nice story otherwise.
A Story to Explain Genetic Algorithms
21–30 of 35 posts
Re: A Story to Explain Genetic Algorithms
#22Neat little story, despite the grammar and capitalization. Is it common to use _ as an index variable? Edit: for _ in range(4):
return [random.randint(1,10000) for x in range(4)]
Also remember that a little kitten dies every time you write a for loop as follows: for index in range(len(some_list)):Re: A Story to Explain Genetic Algorithms
#23Re: A Story to Explain Genetic Algorithms
#24Neat little story, despite the grammar and capitalization. Is it common to use _ as an index variable? Edit: for _ in range(4):
Most of the code is a little verbose for Python. For example make() function could simply be: return [random.randint(1,10000) for x in range(4)] Also remember that a little kitten dies every time you write a for loop as follows: for index in range(len(some_list)):
Re: A Story to Explain Genetic Algorithms
#25Re: A Story to Explain Genetic Algorithms
#26Once upon there was another local search algorithm. It was called GA. The end.
Re: A Story to Explain Genetic Algorithms
#27If you're interested in the world of "computational intelligence" aka "nature-inspired computation", this book is a good high level survey: http://www.cleveralgorithms.com/ (You can also find stuff under the heading of "metaheuristics" -- http://cs.gmu.edu/~sean/book/metaheuristics/ ). GAs are one of four (!) different independently developed strands of thought -- Genetic Algorithms, Genetic Programming, Evolutionary…
Those are some good links, thanks. Are there clear distinctions between these four areas? It seems like the separation is a historical artifact, when they're all basically doing the same thing.
Re: A Story to Explain Genetic Algorithms
#28It's not at all clear from the story why or if having multiple recipes "mate" works better than just using one recipe and fiddling with it.
Re: A Story to Explain Genetic Algorithms
#29Re: A Story to Explain Genetic Algorithms
#30It's not at all clear from the story why or if having multiple recipes "mate" works better than just using one recipe and fiddling with it.