9.5: Genetic Algorithm: Fitness, Genotype vs Phenotype - The Nature of Code
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/Rainbow-Topics
๐ก GitHub: https://github.com/CodingTrain
๐ฌ Discord: https://discord.gg/hPuGy2g
๐ Membership: http://youtube.com/thecodingtrain/join
๐ Store: https://standard.tv/codingtrain
๐ Books: https://www.amazon.com/shop/thecodingtrain
๐๏ธ Twitter: https://twitter.com/thecodingtrain
๐ธ Instagram: https://www.instagram.com/the.coding.train/
๐ฅ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
๐ฅ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
๐ p5.js: https://p5js.org
๐ p5.js Web Editor: https://editor.p5js.org/
๐ Processing: https://processing.org
๐ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct