Genetic Algorithm from Scratch in Python (tutorial with code)
146.8 هزار بار بازدید -
4 سال پیش
-
PART 1:
PART 1: Genetic Algorithms Explained By Example
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: Patreon: kiecodes
🛰 Join our Discord, to interact with other Coders and me: Discord: discord
🧠 Pick my brain: https://calendly.com/kiecodes/ai-cons...
Check out my newest video: How to use the OpenAI API in Python
Follow me here:
www.facebook.com/kiecodes
www.instagram.com/kiecodes
The code can be found here: https://github.com/kiecodes/genetic-a...
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: Patreon: kiecodes
🛰 Join our Discord, to interact with other Coders and me: Discord: discord
🧠 Pick my brain: https://calendly.com/kiecodes/ai-cons...
Check out my newest video: How to use the OpenAI API in Python
Follow me here:
www.facebook.com/kiecodes
www.instagram.com/kiecodes
The code can be found here: https://github.com/kiecodes/genetic-a...
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
4 سال پیش
در تاریخ 1399/04/30 منتشر شده
است.
146,818
بـار بازدید شده