Genetic Algorithm from Scratch | Demystified in Java

Pubblicato il: 02 luglio 2021
sul canale di: 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


In questa pagina del sito puoi guardare il video online Genetic Algorithm from Scratch | Demystified in Java della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Applied Coding 02 luglio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,563 volte e gli è piaciuto 41 spettatori. Buona visione!