Genetic Algorithms in Python - Evolution For Optimization

  Рет қаралды 13,786

NeuralNine

NeuralNine

Күн бұрын

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

Пікірлер: 25
@SolathPrime
@SolathPrime 4 ай бұрын
[17:08]: it's a binary state, you can keep it as simple as `genome[i] = not(genome[i])`
@mehdimojaradi
@mehdimojaradi 4 ай бұрын
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.
@matijsbrs
@matijsbrs 4 ай бұрын
Great video! I'm working more and more to optimize my work processes. And Never actually thought about using this. Thanks!
@TomLeg
@TomLeg 4 ай бұрын
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
@GuillermoGarcia75
@GuillermoGarcia75 2 ай бұрын
Again taking over Awesome town! THX
@phobosmoon4643
@phobosmoon4643 4 ай бұрын
10:42 that's a slick generator. ty vid
@southfitness7567
@southfitness7567 4 ай бұрын
Thanks for sharing the concept
@dadaoluwagbenga5912
@dadaoluwagbenga5912 Ай бұрын
it's really helpful, please it is possible to use Evolutionary algorithm to create workout plan?
@rubanruban9843
@rubanruban9843 4 ай бұрын
Csn you tell machine learning algorithms like candidate algorithm and decision tree algorithm
@raymundo2302
@raymundo2302 4 ай бұрын
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
@salihabdullahkilic
@salihabdullahkilic 4 ай бұрын
Great video, thanks!
@gamerfisch5117
@gamerfisch5117 4 ай бұрын
another interesting video. Thanks a lot :)
@kevinhower5663
@kevinhower5663 Ай бұрын
Possibly a dumb question, but what is with the a:0 and b:0 on line 11 ? It was almost like the IDE added those in or something. If I typed them in, I got invalid syntax. If I just had randint(0,1) instead, on line 11, it worked. Thanks.
@Banta2000
@Banta2000 4 ай бұрын
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 4 ай бұрын
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.
@FelipeCantalic3
@FelipeCantalic3 4 ай бұрын
I think game theory is interesting too
@michael.adel.shafik
@michael.adel.shafik 2 ай бұрын
do you think using PYGAD could make genetic algorithm easier ?
@pascalpicavez4243
@pascalpicavez4243 4 ай бұрын
Thanks you
@ZeuSonRed
@ZeuSonRed 4 ай бұрын
Wow❤❤❤
@KernaaliKehveli
@KernaaliKehveli 4 ай бұрын
The fitness values in the one max problem were off
@fidelaneysakaulika6665
@fidelaneysakaulika6665 3 ай бұрын
how if the population is not binary state
@dziurappa
@dziurappa 4 ай бұрын
moar of those!
@TomLeg
@TomLeg 4 ай бұрын
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?
@menaeem
@menaeem 3 ай бұрын
Please share the code.
@sanjayram4056
@sanjayram4056 4 ай бұрын
Hi
Genetic Algorithm In Python Super Basic Example
17:42
The Builder
Рет қаралды 124 М.
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 2,9 МЛН
Нашли чужие сети в озере..💁🏼‍♀️🕸️🎣
00:34
Connoisseur BLIND420
Рет қаралды 3,5 МЛН
A Gentle Introduction to Genetic Algorithms with Python and DEAP
1:35:11
Apply AI like a Pro
Рет қаралды 782
Data Mining Candlestick Patterns With a Genetic Algorithm
14:21
neurotrader
Рет қаралды 10 М.
Modern Python logging
21:32
mCoding
Рет қаралды 177 М.
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 284 М.
What is a Monad? - Computerphile
21:50
Computerphile
Рет қаралды 600 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,8 МЛН
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
How Fast can Python Parse 1 Billion Rows of Data?
16:31
Doug Mercer
Рет қаралды 211 М.
Genetic algorithms explained in 6 minutes (...and 28 seconds)
6:28
The Programming Piglet
Рет қаралды 25 М.
Python Sockets Explained in 10 Minutes
9:32
NeuralNine
Рет қаралды 9 М.
Samsung vs iPhone ☠️ #shorts
0:18
My Tech
Рет қаралды 15 МЛН
На что способен ваш компьютер?
0:34
POV: You Find a 🗑️ Full of iPhones ⭐
0:13
Shakeuptech
Рет қаралды 1,4 МЛН
Дешёвый Core i9 | Мутант 12900HX против 14600K и 14900K
23:33
Мой Компьютер
Рет қаралды 95 М.