Back to Browse

Genetic Algorithms (01) - Java Prototype Project

45.8K views
Feb 19, 2016
24:50

►screenshots: https://prototypeprj.blogspot.com/2020/09/genetic-algorithms-w-java-tutorial-01.html ►Python version @ https://youtu.be/zumC_C0C25c ►Scala version @ https://youtu.be/6ngju74tHbI 00:01 quickly go over the various parts of this tutorial 00:32 demo a prebuilt version of the application 01:04 a chromosome is a potential solution 01:20 define fitness in this app. context 01:57 population of chromosomes evolves from one generation to the next using selection, crossover, mutation, and elitism 02:40 code the app. 03:01 go over various classes in this app. 04:05 start coding Chromosome class 04:35 start coding Population class 05:00 initialize chromosome with random 0s and 1s 06:05 initialize a population of chromosomes in Population class 07:40 calculate fitness functionality in Chromosome class 08:58 sort chromosomes by fitness in Population class 09:34 start coding selection, crossover, mutation, and elitism functionality in GeneticAlgorithm class 11:01 start coding application Driver class 12:52 quickly test run Generation 0 app. functionality 15:40 test run app. before adding mutation and crossover functionality (evolve method returns same population i.e. never ending loop) 16:28 elite chromosomes are not subjected to crossover or mutation from one generation to the next 16:46 start implementing population crossover and population mutate methods 17:54 crossoverChromosome method does random gene selection from each one of the parent chromosomes 19:10 in tournament selection a number of chromosomes is selected randomly and from those the one with the highest fitness is chosen 20:44 finish implementing crossoverPopulation method 21:46 mutateChromosome method applies randomness to passed in chromosome 22:11 mutation rate is the probability that a chromosome gene does random mutation 23:40 finish implementing mutatePopulation method 24:01 test run completed application ► get access to members-only video contents + support: https://www.youtube.com/channel/UCUvwlMMaeppKPdtAK8PxO8Q/join ► website + download source code: https://prototypeprj.com https://ai.prototypeprj.com https://crypto.prototypeprj.com ► download directly: download ai source code @ https://sites.fastspring.com/prototypeprj/instant/ai download crypto source code @ https://sites.fastspring.com/prototypeprj/instant/crypto download source code (old) page # 2 @ https://sites.fastspring.com/prototypeprj/instant/2020 download source code (older) page # 1 @ https://sites.fastspring.com/prototypeprj/instant/all

Download

0 formats

No download links available.

Genetic Algorithms (01) - Java Prototype Project | NatokHD