Genetic Algorithm Looking at Code
Nature of Code Video #9.4
In part 4 of the series on Genetic Algorithm, I finally look at code! Using p5.js (and Processing / Java in the addendum), I implement the Shakespeare Monkey genetic algorithm example in JavaScript.
Topics
- 0:00 - Welcome!
- 1:14 - How do I have the code organized?
- 2:41 - Explore! Creating the population.
- 5:54 - Explore! Calculate fitness.
- 8:40 - Explain! How am I picking the parents?
- 12:58 - Explore! How I am making a matting pool.
- 15:45 - Explore! How am I making a new generation?
- 17:15 - Explore! Crossover and mutation.
- 19:09 - That's everything.
- 20:27 - Ideas! What could you create?
- 21:30 - Addendum! Processing code!