Genetic Algorithms in Elixir (Pragmatic Bookshelf)

Latest Threads About This Book Top

fceruti
@seanmor5 130 trillion paths should be 1.3 trillion paths. Quite a lot paths as well, but still, it’s a two-order magnitude error.
0 427 0
New
AstonJ
With AI set to play a big role in our industry Elixir users are lucky to have Nx, so we’re running our Nx related book club on Genetic Al...
3 576 0
New
inreoh
@seanmor5 In chapter 4 of p1.0 (page 89 of 262 in the epub version), the code for the avg termination criterion looks like this: def te...
0 445 0
New
directive
Should this section of text on page 134: Finally, test your problem with uniform reinsertion. To do this, take the same approach you to...
0 411 0
New
directive
At the bottom of page 128 the reader is instructed to add the following: soln = Genetic.run(Schedule) IO.write("\n") IO.inspect(soln.gen...
0 382 0
New
directive
In the flip function this line of code: %Chromosomes{genes: genes, size: chromosome.size} should be %Chromosome{genes: genes, size: ch...
0 356 0
New
directive
@seanmor5 Should the following line of code in fitness_function: |> Kernel.-(Enum.at(chromosome.genes), j) be: |> Kernel.-(Enum...
0 388 0
New
directive
@seanmor5 In the repair_helper function on page 104 the following line: if MapSet.size(chromosome) >= k do should be: if MapSet.si...
0 366 0
New
directive
@seanmor5 On page 77, the following text: “Change run to look like this:” should be “Change evolve to look like this” and lower on th...
0 404 0
New
ream88
@seanmor5 In the paragraph about Optimizing Cargo Loads, I think there is the word project incorrectly used, and it should be probably p...
0 555 0
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

Most Active Last Three Years Top

pawl
@seanmor5 Genetic.run call on page 30 doesn’t match function signature defined on page 28. Page 28 def run(genotype, fitness_function,...
3 916 2
New
tvanderpol
After creating the Chromosome type and updating the one_max script, the size attribute isn’t carried through. I realised that in both cro...
7 895 4
New
AstonJ
With AI set to play a big role in our industry Elixir users are lucky to have Nx, so we’re running our Nx related book club on Genetic Al...
3 576 0
New
ream88
@seanmor5 In the code example on page 49, the fitness_function suddenly switches to using charlists instead of the previously used strin...
0 565 0
New
ream88
@seanmor5 In the paragraph about Optimizing Cargo Loads, I think there is the word project incorrectly used, and it should be probably p...
0 555 0
New
kdiogenes
I translated the implementation in Chapter 1 (without mutation) for Ruby and get surprised that it’s find a solution much faster than the...
0 472 1
New
inreoh
@seanmor5 In chapter 4 of p1.0 (page 89 of 262 in the epub version), the code for the avg termination criterion looks like this: def te...
0 445 0
New
fceruti
@seanmor5 130 trillion paths should be 1.3 trillion paths. Quite a lot paths as well, but still, it’s a two-order magnitude error.
0 427 0
New
directive
Should this section of text on page 134: Finally, test your problem with uniform reinsertion. To do this, take the same approach you to...
0 411 0
New
directive
@seanmor5 On page 77, the following text: “Change run to look like this:” should be “Change evolve to look like this” and lower on th...
0 404 0
New
directive
At the bottom of page 128 the reader is instructed to add the following: soln = Genetic.run(Schedule) IO.write("\n") IO.inspect(soln.gen...
0 382 0
New
directive
@seanmor5 Should the following line of code in fitness_function: |> Kernel.-(Enum.at(chromosome.genes), j) be: |> Kernel.-(Enum...
0 388 0
New
directive
@seanmor5 In the repair_helper function on page 104 the following line: if MapSet.size(chromosome) >= k do should be: if MapSet.si...
0 366 0
New
directive
In the flip function this line of code: %Chromosomes{genes: genes, size: chromosome.size} should be %Chromosome{genes: genes, size: ch...
0 356 0
New

Most Active Over Three Years Top

PragmaticBookshelf
From finance to artificial intelligence, genetic algorithms are a powerful tool with a wide array of applications. But you don't need an ...
25 2536 6
New
chriseyre2000
&Enum.sum(&1) is more commonly written as &Enum.sum/1 This is used in a large number of examples.
14 1044 6
New
chriseyre2000
Now working through chapter 2. An underscore makes a better placeholder than … Intialize is added above the two rum functions. We only ...
7 919 3
New
joustava
@seanmor5 On page 43, changes were made to the Genetic.crossover function to support a new shiny Chromosome struct. On page 93, the cod...
0 898 1
New
tvanderpol
I’ve got something of the opposite of the usual problem - my code doesn’t fail in the way the text suggests it should (when it suggests p...
11 838 5
New
kristjan.rovsek
Provided source code has some problems when dealing with the reinsertions. scripts/schedule.exs example has a default reinsertion strat...
3 814 0
New
chriseyre2000
Just finished chapter 3. String.bag_distance is 1 for anagrams too. I tried a smaller word fish and it converged to shif
1 871 1
New
patrickdm
At the beginning of page 59, in chapter 4 alter the evolve function to track a generation parameter, like this: def evolve(problem, g...
4 809 2
New
shotleybuilder
Hi, the use of ^^^ is now deprecated So, from this $ iex iex(1)> use Bitwise Bitwise iex(2)> key = 2491717835680677893 24917...
0 831 0
New
danielalbertjeffery
Text reads: “The :rand.uniform/1 function produces a uniform integer between 0 and N-1…” I believe this should be: “The :rand.uniform/...
0 827 2
New
New
ahetland
Please use the following format for the title of this thread (then simply delete/replace this text with the content for the thread): Tit...
2 760 0
New
gmlewis
@seanmor5 - This is a great book so far… I’m enjoying reading and coding along with it! Quick question, though - since “evaluate” goes t...
9 751 5
New
AgFox
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...
1 766 1
New
adkelley
def fitness_function(chromosome) do chromosome |> Enum.map(fn {roi, risk} -> 2 * roi - risk end) |> Enum.sum() end sh...
1 761 0
New

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.