Skip to content

Commit 21efa57

Browse files
MorvanZhouMorvan Zhou
authored and
Morvan Zhou
committed
update
1 parent f1668b0 commit 21efa57

File tree

9 files changed

+108
-1
lines changed

9 files changed

+108
-1
lines changed

EA.jpg

90.5 KB
Loading

README.md

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<p align="center">
2+
<a href="https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/EA.jpg?raw=true" target="_blank">
3+
<img width="40%" src="https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/EA.jpg" style="max-width:100%;">
4+
</a>
5+
</p>
6+
7+
---
8+
9+
<br>
10+
11+
# Evolutionary Algorithm Tutorials
12+
13+
14+
In these tutorials, we will use different method to demonstrate and visualize algorithms like Genetic Algorithm,
15+
Evolution Strategy, NEAT etc.
16+
17+
All methods mentioned below have their video and text tutorial in Chinese. Visit [莫烦 Python](https://morvanzhou.github.io/tutorials/) for more.
18+
19+
20+
* [Genetic Algorithm](https://github.com/MorvanZhou/Evolutionary-Algorithm/tree/master/tutorial-contents/Genetic%20Algorithm)
21+
* [Basic GA](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Genetic%20Algorithm/Genetic%20Algorithm%20Basic.py)
22+
* [Match Phrase Example](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Genetic%20Algorithm/Match%20Phrase.py)
23+
* [Travel Sales Problem](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Genetic%20Algorithm/Travel%20Sales%20Person.py)
24+
* [Find Path Example](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Genetic%20Algorithm/Find%20Path.py)
25+
* [Evolution Strategy](https://github.com/MorvanZhou/Evolutionary-Algorithm/tree/master/tutorial-contents/Evolution%20Strategy)
26+
* [Basic ES](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Evolution%20Strategy/Evolution%20Strategy%20Basic.py)
27+
* [(1+1)-ES](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Evolution%20Strategy/(1%2B1)-ES.py)
28+
* [Natural Evolution Strategy (NES)](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Evolution%20Strategy/Natural%20Evolution%20Strategy%20(NES).py)
29+
* [Using Neural Nets](https://github.com/MorvanZhou/Evolutionary-Algorithm/tree/master/tutorial-contents/Using%20Neural%20Nets)
30+
* [NEAT for Supervised-Learning](https://github.com/MorvanZhou/Evolutionary-Algorithm/tree/master/tutorial-contents/Using%20Neural%20Nets/NEAT)
31+
* [NEAT for Reinforcement-Learning](https://github.com/MorvanZhou/Evolutionary-Algorithm/tree/master/tutorial-contents/Using%20Neural%20Nets/NEAT_gym)
32+
* [ES with Neural Net](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Using%20Neural%20Nets/Evolution%20Strategy%20with%20Neural%20Nets.py)
33+
34+
35+
### [Basic GA](https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Genetic%20Algorithm/Genetic%20Algorithm%20Basic.py)
36+
37+
38+
<a href="https://github.com/MorvanZhou/Evolutionary-Algorithm/blob/master/tutorial-contents/Genetic%20Algorithm/Genetic%20Algorithm%20Basic.py">
39+
<img class="course-image" src="/demo/ga.gif">
40+
</a>
41+
42+
### [Classification](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/302_simple_classification.py)
43+
44+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/302_simple_classification.py">
45+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/1-1-3.gif">
46+
</a>
47+
48+
### [CNN](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/401_CNN.py)
49+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/401_CNN.py">
50+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/4-1-2.gif" >
51+
</a>
52+
53+
### [RNN](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/403_RNN_regression.py)
54+
55+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/403_RNN_regression.py">
56+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/4-3-1.gif" >
57+
</a>
58+
59+
### [Autoencoder](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/404_AutoEncoder.py)
60+
61+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/404_AutoEncoder.py">
62+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/4-4-1.gif" >
63+
</a>
64+
65+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/404_AutoEncoder.py">
66+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/4-4-2.gif" >
67+
</a>
68+
69+
### [GAN (Generative Adversarial Nets)](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/406_GAN.py)
70+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/406_GAN.py">
71+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/4-6-1.gif" >
72+
</a>
73+
74+
### [Dropout](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/501_dropout.py)
75+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/501_dropout.py">
76+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/5-3-1.gif" >
77+
</a>
78+
79+
### [Batch Normalization](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/502_batch_normalization.py)
80+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/502_batch_normalization.py">
81+
<img class="course-image" src="https://morvanzhou.github.io/static/results/torch/5-4-2.gif" >
82+
</a>
83+
84+
### [Visualize Gradient Descent](https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/503_visualize_gradient_descent.py)
85+
<a href="https://github.com/MorvanZhou/Tensorflow-Tutorial/blob/master/tutorial-contents/503_visualize_gradient_descent.py">
86+
<img class="course-image" src="https://morvanzhou.github.io/static/results/tensorflow/5_15_01.gif" >
87+
</a>
88+
89+
# Donation
90+
91+
*If this does help you, please consider donating to support me for better tutorials! Any contribution is greatly appreciated!*
92+
93+
<div >
94+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&amp;business=morvanzhou%40gmail%2ecom&amp;lc=C2&amp;item_name=MorvanPython&amp;currency_code=AUD&amp;bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted">
95+
<img style="border-radius: 20px; box-shadow: 0px 0px 10px 1px #888888;"
96+
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/silver-pill-paypal-44px.png"
97+
alt="Paypal"
98+
height="auto" ></a>
99+
</div>
100+
101+
<div>
102+
<a href="https://www.patreon.com/morvan">
103+
<img src="https://morvanzhou.github.io/static/img/support/patreon.jpg"
104+
alt="Patreon"
105+
height=120>
106+
</a>
107+
</div>

demo/es.gif

112 KB
Loading

demo/find path.gif

90.3 KB
Loading

demo/ga.gif

105 KB
Loading

demo/mga.gif

110 KB
Loading

demo/nes.gif

669 KB
Loading

demo/tsp.gif

201 KB
Loading

tutorial-contents/Genetic Algorithm/Microbial Genetic Algorithm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
import matplotlib.pyplot as plt
88

9-
DNA_SIZE = 10 # DNA length
9+
DNA_SIZE = 10 # DNA length
1010
POP_SIZE = 20 # population size
1111
CROSS_RATE = 0.6 # mating probability (DNA crossover)
1212
MUTATION_RATE = 0.01 # mutation probability

0 commit comments

Comments
 (0)