Genetic Algorithms in Python - Evolution For Optimization

  Рет қаралды 10,854

NeuralNine

NeuralNine

2 ай бұрын

Today we learn about genetic algorithms and evolution in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
💼 Services 💼
💻 Freelancing & Tutoring: www.neuralnine.com/services
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord

Пікірлер: 23
@mehdimojaradi
@mehdimojaradi 2 ай бұрын
I am one of the faithful visitors of your great contents and really appreciate your rewarding efforts and time. I'll be grateful if you address the statistical analysis with Python as a cornerstone of datascience, if applicable.
@SolathPrime
@SolathPrime 2 ай бұрын
[17:08]: it's a binary state, you can keep it as simple as `genome[i] = not(genome[i])`
@matijsbrs
@matijsbrs 2 ай бұрын
Great video! I'm working more and more to optimize my work processes. And Never actually thought about using this. Thanks!
@southfitness7567
@southfitness7567 2 ай бұрын
Thanks for sharing the concept
@GuillermoGarcia75
@GuillermoGarcia75 19 күн бұрын
Again taking over Awesome town! THX
@salihabdullahkilic
@salihabdullahkilic 2 ай бұрын
Great video, thanks!
@phobosmoon4643
@phobosmoon4643 2 ай бұрын
10:42 that's a slick generator. ty vid
@gamerfisch5117
@gamerfisch5117 2 ай бұрын
another interesting video. Thanks a lot :)
@TomLeg
@TomLeg 2 ай бұрын
In mutate(), using arithmetic to do logic manipulatiosn is the kind of thing we used to do in the 1970s with primitive BASIC. I would suggest using the exclusive OR operator (XOR) - "^" .. or in this case, the XOR-assignment operator, "^=" ... """a OR b, but not both""" 0^0 -> 0 0 ^1 -> 1 1^0 -> 1 1^1 -> 0
@rubanruban2143
@rubanruban2143 2 ай бұрын
Csn you tell machine learning algorithms like candidate algorithm and decision tree algorithm
@pascalpicavez4243
@pascalpicavez4243 2 ай бұрын
Thanks you
@Banta2000
@Banta2000 2 ай бұрын
I'm not sure about the select_parent() function. You are going through the pool of candidates, cumulating their respective fitness, until you hit the first candidate who's cumulated fitness is bigger than some random threshold. How does that guarantee that a candidate with a bigger fitness is statistically more often chosen over a candidate with less fitness? Shouldn't be some type of sorting? I get the impression, the candidate pool is randomly sorted; we're randomly choosing a threshold point; and therefore randomly returning any candidate that just happens to be the first to cross the (cumulated!) threshold. WDYT?
@doyouknowdawae1343
@doyouknowdawae1343 2 ай бұрын
A better implementation would be to first perform elitism, where say 10% of the solutions with the highest fitness are automatically entered into the new population. Then you could select the parents through tournament selection which would compare n amounts of solutions, with the best one (Highest Fitness) being chosen as a parent. After performing tournament selection to get 2 parents you could then proceed to crossover as described in the video. I believe this would achieve what you wanted, with more fit solutions being chosen over weaker candidates.
@ZeuSonRed
@ZeuSonRed 2 ай бұрын
Wow❤❤❤
@raymundo2302
@raymundo2302 2 ай бұрын
I think the reason why the fitness wasn't increasing was in the function select_parent(). While higher fitness individuals may have a better chance at reproducing, it isn't likely enough for them to reproduce
@michael.adel.shafik
@michael.adel.shafik 13 күн бұрын
do you think using PYGAD could make genetic algorithm easier ?
@KernaaliKehveli
@KernaaliKehveli 2 ай бұрын
The fitness values in the one max problem were off
@fidelaneysakaulika6665
@fidelaneysakaulika6665 Ай бұрын
how if the population is not binary state
@FelipeCantalic3
@FelipeCantalic3 2 ай бұрын
I think game theory is interesting too
@dziurappa
@dziurappa 2 ай бұрын
moar of those!
@menaeem
@menaeem Ай бұрын
Please share the code.
@sanjayram4056
@sanjayram4056 2 ай бұрын
Hi
@TomLeg
@TomLeg 2 ай бұрын
You show interesting code, but you haven't tested it before, and are learning how it performs on-camera. How about spending an hour beforehand figuring out exactly what to show?
The Knapsack Problem & Genetic Algorithms - Computerphile
12:13
Computerphile
Рет қаралды 223 М.
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 17 МЛН
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 81 МЛН
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 16 МЛН
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 11 МЛН
10 weird algorithms
9:06
Fireship
Рет қаралды 1,1 МЛН
Genetic Algorithms Explained By Example
11:52
Kie Codes
Рет қаралды 310 М.
The Optimization Problem No One Cares About But My Son
8:53
Math The World
Рет қаралды 344 М.
What are Genetic Algorithms?
12:13
argonaut
Рет қаралды 24 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 363 М.
Genetic algorithms explained in 6 minutes (...and 28 seconds)
6:28
The Programming Piglet
Рет қаралды 21 М.
Modern Python logging
21:32
mCoding
Рет қаралды 151 М.
Bluetooth Desert Eagle
0:27
ts blur
Рет қаралды 5 МЛН
keren sih #iphone #apple
0:16
Muhammad Arsyad
Рет қаралды 1,3 МЛН
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 13 МЛН
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 4,9 МЛН
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14