Genetic Algorithms in Elixir (Pragmatic Bookshelf)
Most Active This Week
Most Active This Month
Chapter 9/10 ebook-1.02 Genealogy not working well.
As already mentioned in one of the errata the ID of every chromosome is the same.
S...
New
Text is:
xor96/0 will generate integers. You can use it to generate integers between 0
and some number, like this:
iex(0)> rem(xor9...
New
The function tournament_no_duplicates keeps hanging, because it will never reach n winners.
In a selection of n chromosomes you can neve...
New
Elitist gives error at Enum.sort_by…
This is because “parents” is still a list of tuples.
It hast to be flattened: parents = Enum.flat_...
New
There are quite a lot of errors in the text.
My version of elixir (1.17.3) told me it is not allowed to place the first three functions ...
New
After running a while the benchee test I got the following error: no function clause matching in Task.async/1
I wrote a script with asyn...
New
Most Active This Year
In chapter 1, page6: “Remember, the problem wants the maximum sum of bitstrings of length N.”
Bitstrings are not the same as lists.
The...
New
Most Active Last Three Years
Most Active Over Three Years
Now working through chapter 2.
An underscore makes a better placeholder than …
Intialize is added above the two rum functions. We only ...
New
@seanmor5
On page 43, changes were made to the Genetic.crossover function to support a new shiny Chromosome struct.
On page 93, the cod...
New
@seanmor5
Genetic.run call on page 30 doesn’t match function signature defined on page 28.
Page 28
def run(genotype, fitness_function,...
New
At the beginning of page 59, in chapter 4
alter the evolve function to track a generation parameter, like this:
def evolve(problem, g...
New
Provided source code has some problems when dealing with the reinsertions.
scripts/schedule.exs example has a default reinsertion strat...
New
Hi, the use of ^^^ is now deprecated
So, from this
$ iex
iex(1)> use Bitwise
Bitwise
iex(2)> key = 2491717835680677893
24917...
New
Text reads:
“The :rand.uniform/1 function produces a uniform integer between 0 and N-1…”
I believe this should be:
“The :rand.uniform/...
New
The definition of evolve(…) on page 61 is missing the first population parameter.
New
Please use the following format for the title of this thread (then simply delete/replace this text with the content for the thread):
Tit...
New
The diagram of the generated child is incorrect.
Removing the sliced genes of parent one from the genes of parent two should give a list...
New
def fitness_function(chromosome) do
chromosome
|> Enum.map(fn {roi, risk} -> 2 * roi - risk end)
|> Enum.sum()
end
sh...
New
@seanmor5
On page 92: the order_one crossover type is declared as
def order_one_crossover(p1, p2) do
On page 94: The default is set to...
New
There is a small error on page 159.
The text says:
[…] you’ll decrease the population size to 5
But the code shows the population si...
New
The average_tiger function is written like so in the book:
def average_tiger(population) do
genes = Enum.map(population, & &am...
New
On page 151, the id for each new Chromosome struct is set via a default value like:
defmodule Types.Chromosome do
@enforce_keys :genes...
New
Publisher:
Pragmatic Bookshelf
Latest in Genetic Algorithms in Elixir
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!









