22:479.5: Genetic Algorithm: Fitness, Genotype vs Phenotype - The Nature of Code
From the creator
In part 5 of my genetic algorithm series I discuss how you can adapt the algorithm for your own creative project. The key pieces are designing and implementing a custom "fitness function" as well as how you choose to encode your DNA (genotype vs phenotype). https://thecodingtrain.com/more/archive/nature-of-code/9-genetic-algorithms/9.5-fitness-genotype-vs-phenotype.html 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/BOTCxBDbO 🎥 Previous video: https://youtu.be/-jv3CgDN9sc?list=RxTfc4JLYKs&list=PLRqwX-V7Uu6bJM3VgzjNV5YxVxUwzALHV 🎥 Next video: https://youtu.be/HzaLIO9dLbA?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/ 🔗 BoxCar 2D: http://boxcar2d.com/ 🔗 Genetic Programming Mona Lisa: https://rogerjohansson.blog/2008/12/07/genetic-programming-evolution-of-mona-lisa/ 🔗 Steering Behaviors: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6YHt0dtyf4uiw8tKOxQLvlW Timestamps: 0:00 Welcome back! 1:00 Let's look at some examples. 3:19 The two places you'll have to change. 4:45 Explain! Genotype vs phenotype. 7:23 Case study: smart rockets sketch. 13:55 Ideas! How will you make something? 🚂 Website: http://thecodingtrain.com/ 👾 Share Your Creation! https://thecodingtrain.com/Guides/community-contribution-guide.html 🚩 Suggest Topics: https://github.com/CodingTrain/Ra
Published 2016-08-01 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.
Keep exploring Learn to Code
22:47
09:23Announcements across Microsoft SQL at Microsoft Ignite 2026 | Data Exposed
Microsoft Developer
05:34
02:05
02:17
10:51Competitive Programming Tutorial #42 | Convex hull trick: turn the DP into lines
SyntaxPilot
08:20