AstonJ

AstonJ

Welcome to our Genetic Algorithms in Elixir Book Club! :048:

With AI set to play a big role in our industry we’re lucky to have Nx, so here’s our first Nx related book club, on Genetic Algorithms in Elixir (PragProg)!

The book cub is being led by @stevensonmt and participants are:

@sundevilyang

@bdarla

@BradS2S

@Benjamin-Philip

@cjbottaro

@code-shoily

@dr.a

@gus

@miguelszerman

@m4hi2

@NickGnd

@nulltree

@polvalente

@rvirding

@sundevilyang

@tobi4161

Everyone is welcome to join the book club or to simply comment on anything you find interesting :023:

Showing Posts 1 to 10

code-shoily

code-shoily

Hello everyone! Excited that we’re doing this. Looking forward to learning from you all and the book!

BradS2S

BradS2S

I’d love to be a member :slight_smile:

m4hi2

m4hi2

I have this book and this will be a really cool way of reading it. Looking forward to learn from you all! :slight_smile:

stevensonmt

stevensonmt

Thanks for setting this up @AstonJ. I’m very excited about this book. I’ve started the book but only gone through the first couple of chapters. I’ll probably try to post every Wednesday with thoughts about the portion of the book I got through that week. I hope everyone else will do something similar. I know life is probably going to interfere at some point and I’ll fall behind, plus most, if not all, of the participants are going to bring more technical acumen to the discussion.

So far I’ll say I really enjoy the writing style. Concise without being dense. Precise without being obscure. I also like the repetition of the basic concepts between the first two chapters. Really helps to cement the ideas for me.

Looking forward to the coming weeks and hearing what everyone has to say about the book and the topic in general.

dr.a

dr.a

I’ll join in too!

code-shoily

code-shoily

I am starting chapter 1 now. Will update y’all tomorrow

bdarla

bdarla

I went over the first chapter. It comprehensively introduces the core steps of a genetic algorithm. The provided solution of the One-Max problem demonstrated that as the size of the problem scales up, it is necessary to consider further optimisations that I seek to find in the rest of the book. I tried to manually explore alternative values for the hyper-parameters but I was not overwhelmed by the performance results.
I looking forward to study the rest of the book.

P. S. An interesting question for me is whether genetic algorithms are suitable for matching two pieces of text, for example, in order to assess whether a patent claim extends beyond the original patent description.

code-shoily

code-shoily

Hi, I have a question, I tried running the one_max.exs script without mutation and it almost always gives me 1000 where the book mentions that it will be difficult for me to reach that. Adding mutation also gives me the same result (although it’s slower). So I was wondering if any of you could get the result matching what the book wrote?

UPDATE: I added an iteration counter and seems like (again based on the few tries I did), WITH MUTATION reaches the best result in ~50% less iteration count.

bdarla

bdarla

Indeed, also in my experiments the algorithm always reaches 1000 (even when disabling mutation).

code-shoily

code-shoily

I first wondered if it had to do with high machine specs but the book isn’t an old one and I think this has little to do with machine power and more to do with the way random number gets generated?

If I decrease the chromosome count but keep the bast value the same (thereby making it impossible to reach) then I get stuck at “current best: 10”. The algorithm doesn’t “stop” stop, but rather the data become stagnant and the algorithm tried forever. I tried multiple times but it is a solid 1000 each time

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews