9.7: Genetic Algorithm: Pool Selection - The Nature of Code

In this Genetic Algorithm video, I discuss improvements and strategies for "pool selection" (such as rejection sampling / monte carlo simulation) to pick "parents" based on probabilities mapped to their fitness score. https://thecodingtrain.com/more/archi... šŸ•¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s... šŸŽ„ Previous video:    • 9.6:Ā GeneticĀ Algorithm:Ā ImprovedĀ FitnessĀ F...Ā Ā  šŸŽ„ Next video:    • 9.8:Ā WeightedĀ SelectionĀ (forĀ GeneticĀ Algor...Ā Ā  šŸŽ„ All videos:    • 9:Ā GeneticĀ AlgorithmsĀ -Ā TheĀ NatureĀ ofĀ CodeĀ Ā  Links discussed in this video: šŸ”— Pool Selection: https://github.com/CodingTrain/Rainbo... šŸ”— Rejection Sampling (Wikipedia): https://en.wikipedia.org/wiki/Rejecti... Timestamps: 0:00 Hello and welcome! 0:25 Let's talk about my algorithm for selection. 2:02 Explain! Rejection sampling (accept reject). 5:00 Let's look at a accept reject example in processing. 7:17 Code! Let's make an acceptReject() function! 12:31 Whoops! There's a few things we need to fix. 15:52 Thanks for watching! šŸš‚ Website: http://thecodingtrain.com/ šŸ‘¾ Share Your Creation! https://thecodingtrain.com/Guides/com... 🚩 Suggest Topics: https://github.com/CodingTrain/Rainbo... šŸ’” GitHub: https://github.com/CodingTrain šŸ’¬ Discord: Ā Ā /Ā discordĀ Ā  šŸ’– Membership: http://youtube.com/thecodingtrain/join šŸ›’ Store: https://standard.tv/codingtrain šŸ“š Books: https://www.amazon.com/shop/thecoding... šŸ–‹ļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā  šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā  šŸŽ„ Coding Challenges:    • CodingĀ ChallengesĀ Ā  šŸŽ„ Intro to Programming:    • StartĀ learningĀ here!Ā Ā  šŸ”— 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-o...