Genetic Algorithms (01) - Python Prototype Project

preview_player
Показать описание

00:01 quickly go over the various parts of this tutorial
00:31 demo a prebuilt version of the application
01:26 a chromosome is a potential solution
01:54 define fitness in this app. context
02:18 population of chromosomes evolves from one generation to the next using selection, crossover, mutation, and elitism
03:00 code the app.
03:38 go over various classes in this app.
04:20 code the Chromosome class
06:13 code Chromosome get_fitness method
07:15 code Population class
08:22 instantiate new population and sort it by fitness
09:45 test run the app. (before writing rest of code)
10:12 code GeneticAlgorithm class
10:15 evolve population from one generation to the next
10:52 population crossover and population mutate methods
11:43 test run app. before adding mutation and crossover functionality (evolve method returns same population i.e. never ending loop)
13:35 implement crossover population functionality
14:00 move elite chromosomes as-is to next generation
15:45 use tournament selection functionality
17:52 implement mutate population functionality
18:58 implement mutate and crossover chromosome functionality
20:00 implement tournament selection functionality
21:08 test run completed app.

► get access to members-only video contents + support:
► website + download source code:
► download directly:
Рекомендации по теме
Комментарии
Автор

Thanks a lot for the tutorial! I have a doubt, I follow all the entire video, but at the end I still have the same population over and over again, as the mutation never happen.

ladymurrieta
Автор

hey sir thanks for this qonderful tutorial. but can you complete the whole python genetic algo like you did in java

tabaicanking
Автор

Nice video, can you please tell me if this is unsupervised dataset with no target variable, then how to do feature selection using GA?? Please help

torpatty
Автор

Great video. Looked at your website where the code can be downloaded at a fair cost. Maybe add a pdf on the code at an additional cost. to complete the set Please keep producing more genetic videos in python. I have downloaded the full set to look through. Great work

martin-xqte
Автор

Hello, What if we remove NUMB_OF_ELITE_CHROMOSOMES variable, because I has removed it and nothing has changed and code worked, what is the purpose of using that variable ?

ozanapaydin
Автор

I follow exactly the whole code in the video since it seem there is no cut. but the end, I got an infinite loop. I reach 12Kth generation and it still running. I already double checked my code with this video. Someone please?

shahrulnizamibrahim
Автор

Please no transition piano next time. Distracts from the wonderful code content.

biohoo
join shbcf.ru