Build a Genetic Algorithm in Python π§¬
Learn to create a genetic algorithm from scratch in Python with this tutorial series. Part 1: https://youtu.be/uQj5UNhCPuo

Kie Codes
172.1K views β’ Jul 20, 2020

About this video
PART 1: https://www.youtube.com/watch?v=uQj5UNhCPuo
This video is part two of my series on genetic algorithms. In last week's video, we looked at how a genetic algorithm works and I have explained by example the theory behind it and its different applications and I highly recommend watching this video first.
In this week's tutorial, we will implement our first example of a genetic algorithm to solve the knapsack problem discussed last week in python. We won't use any libraries but write everything from scratch.
Happy Coding!
π Support me: https://www.patreon.com/kiecodes
π° Join our Discord, to interact with other Coders and me: https://discord.gg/j7MXYeTAJd
π§ Pick my brain: https://calendly.com/kiecodes/ai-consultation
Check out my newest video: https://youtu.be/Xujt_rFf9Us
Follow me here:
www.facebook.com/kiecodes
www.instagram.com/kiecodes
The code can be found here: https://github.com/kiecodes/genetic-algorithms
Timestamps:
00:00 Intro
00:17 Genome
01:25 Fitness function
02:26 Data for the example
02:43 Selection function
04:00 Crossover function
04:50 Mutation function
05:55 Evolutionary main loop
09:17 Implementing the example from last week's tutorial
---
This video contains advertising content.
---
#python #machinelearning #geneticalgorithms
This video is part two of my series on genetic algorithms. In last week's video, we looked at how a genetic algorithm works and I have explained by example the theory behind it and its different applications and I highly recommend watching this video first.
In this week's tutorial, we will implement our first example of a genetic algorithm to solve the knapsack problem discussed last week in python. We won't use any libraries but write everything from scratch.
Happy Coding!
π Support me: https://www.patreon.com/kiecodes
π° Join our Discord, to interact with other Coders and me: https://discord.gg/j7MXYeTAJd
π§ Pick my brain: https://calendly.com/kiecodes/ai-consultation
Check out my newest video: https://youtu.be/Xujt_rFf9Us
Follow me here:
www.facebook.com/kiecodes
www.instagram.com/kiecodes
The code can be found here: https://github.com/kiecodes/genetic-algorithms
Timestamps:
00:00 Intro
00:17 Genome
01:25 Fitness function
02:26 Data for the example
02:43 Selection function
04:00 Crossover function
04:50 Mutation function
05:55 Evolutionary main loop
09:17 Implementing the example from last week's tutorial
---
This video contains advertising content.
---
#python #machinelearning #geneticalgorithms
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
172.1K
Likes
3.8K
Duration
12:18
Published
Jul 20, 2020
User Reviews
4.7
(34) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now