11:429.4: Genetic Algorithm: Looking at Code - The Nature of Code
From the creator
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. https://thecodingtrain.com/more/archive/nature-of-code/9-genetic-algorithms/9.4-looking-at-code.html 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/PqRSmKLQU 🎥 Previous video: https://youtu.be/nrKjSeoc7fc?list=RxTfc4JLYKs&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV 🎥 Next video: https://youtu.be/_of6UVV4HGo?list=RxTfc4JLYKs&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV 🎥 All videos: https://www.youtube.com/playlist?list=RxTfc4JLYKs&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV Links discussed in this video: 🔗 Nature of Code Book: https://natureofcode.com/ 🔗 ASCII Table: https://www.asciitable.com/ Timestamps: 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! 🚂 Website: http://thecodingtrain.com/ 👾 Share Your Creation! https://thecodingtrain.com/Guides/community-contribution-guide.html 🚩 Suggest Topics: https://github.com/CodingTrain/Rainbow-Topics 💡 GitHub: https://github.com/CodingTrain 💬 Discord: https://discord.gg/hPuGy2g
Published 2016-07-31 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





