Genetic Algorithm from Scratch | Demystified in Java

Veröffentlicht am: 02 Juli 2021
auf dem Kanal: Applied Coding
1,563
41

I built a#GeneticAlgorithm from scratch in Java that I use to train a #NeuralNetwork to play the Snake game.
In this video I explain the concepts of a GA -- Selection, Roulette Wheel Selection, Crossover, Mutation, Default Mutation Rate, and then I showcase the Java code that implements these concepts.

Source code: https://github.com/AppliedCodingClub/...
Blog post: https://blog.appliedcoding.club/2021/...

Resources:
Genetic Algorithm: https://en.wikipedia.org/wiki/Genetic...
Selection: https://en.wikipedia.org/wiki/Selecti...)
Fitness: https://en.wikipedia.org/wiki/Fitness...
Roulette Wheel Selection: https://en.wikipedia.org/wiki/Fitness...
Crossover: https://en.wikipedia.org/wiki/Crossov...)
Mutation: https://en.wikipedia.org/wiki/Mutatio...)

0:00 Intro
0:37 Crash Course into Genetic Algorithms
1:35 Selection
3:04 Crossover
4:21 Mutation
5:31 Coding time
6:47 Selection method
7:35 Fitness function
9:34 Roulette wheel selection method
11:22 Crossover method
14:26 Mutate method
16:34 Default mutation rate
19:42 That's All, Folks!

#GeneticAlgorithm #ArtificialIntelligence #Java #LearnToCode #AI #LiveCoding #Coding


👨‍💻 About me

🖥 I am a software developer with more than 20 years of experience in the tech industry. I love to teach, debug problems and optimize my code for perfection.

📽 In my channel, you find videos describing how to solve coding problems, develop games, prep for job interviews and overall talk tech. I chose the name AppliedCoding, because I will teach you exactly that - applied coding - I show you how to analyze real problems, break them down into manageable chunks, come up with an algorithm, choose the right data structures, talk about the pros and cons… and only then code the solution.

*****
👉 Blog: https://blog.appliedcoding.club
👉 Instagram:   / appliedcoding  
👉 Facebook:   / appliedcodingclub  
👉 Github: https://github.com/AppliedCodingClub


Auf dieser Seite können Sie das Online-Video Genetic Algorithm from Scratch | Demystified in Java mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Applied Coding 02 Juli 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,563 Mal angesehen und es wurde von 41 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!