@@ -95,17 +95,53 @@ Release Date: 14 May 2020
95
95
1. The ``best_solution_fitness `` attribute is renamed to
96
96
``best_solutions_fitness `` (plural solution).
97
97
98
- .. _header-n42 :
98
+ 2. Mutation is applied independently for the genes.
99
+
100
+ .. _header-n44 :
99
101
100
102
PyGAD 2.2.1
101
- ===========
103
+ -----------
102
104
103
105
Release Date: 17 May 2020
104
106
105
107
1. Adding 2 extra modules (pygad.nn and pygad.gann) for building and
106
108
training neural networks with the genetic algorithm.
107
109
108
- .. _header-n148 :
110
+ .. _header-n49 :
111
+
112
+ PyGAD 2.2.2
113
+ -----------
114
+
115
+ Release Date: 18 May 2020
116
+
117
+ 1. The initial value of the ``generations_completed `` attribute of
118
+ instances from the pygad.GA class is ``0 `` rather than ``None ``.
119
+
120
+ 2. An optional bool parameter named ``mutation_by_replacement `` is added
121
+ to the constructor of the pygad.GA class. It works only when the
122
+ selected type of mutation is random (``mutation_type="random" ``). In
123
+ this case, setting ``mutation_by_replacement=True `` means replace the
124
+ gene by the randomly generated value. If ``False ``, then it has no
125
+ effect and random mutation works by adding the random value to the
126
+ gene. This parameter should be used when the gene falls within a
127
+ fixed range and its value must not go out of this range. Here are
128
+ some examples:
129
+
130
+ Assume there is a gene with the value 0.5.
131
+
132
+ If ``mutation_type="random" `` and ``mutation_by_replacement=False ``,
133
+ then the generated random value (e.g. 0.1) will be added to the gene
134
+ value. The new gene value is **0.5+0.1=0.6 **.
135
+
136
+ If ``mutation_type="random" `` and ``mutation_by_replacement=True ``,
137
+ then the generated random value (e.g. 0.1) will replace the gene
138
+ value. The new gene value is **0.1 **.
139
+
140
+ 3. ``None `` value could be assigned to the ``mutation_type `` and
141
+ ``crossover_type `` parameters of the pygad.GA class constructor. When
142
+ ``None ``, this means the step is bypassed and has no action.
143
+
144
+ .. _header-n155 :
109
145
110
146
PyGAD Projects at GitHub
111
147
========================
@@ -115,7 +151,7 @@ https://pypi.org/project/pygad. PyGAD is built out of a number of
115
151
open-source GitHub projects. A brief note about these projects is given
116
152
in the next subsections.
117
153
118
- .. _header-n44 :
154
+ .. _header-n51 :
119
155
120
156
`GeneticAlgorithmPython <https://github.com/ahmedfgad/GeneticAlgorithmPython >`__
121
157
--------------------------------------------------------------------------------
@@ -126,7 +162,7 @@ GitHub Link: https://github.com/ahmedfgad/GeneticAlgorithmPython
126
162
is the first project which is an open-source Python 3 project for
127
163
implementing the genetic algorithm based on NumPy.
128
164
129
- .. _header-n47 :
165
+ .. _header-n54 :
130
166
131
167
`NumPyANN <https://github.com/ahmedfgad/NumPyANN >`__
132
168
----------------------------------------------------
@@ -140,7 +176,7 @@ neural network without using a training algorithm. Currently, it only
140
176
supports classification and later regression will be also supported.
141
177
Moreover, only one class is supported per sample.
142
178
143
- .. _header-n50 :
179
+ .. _header-n57 :
144
180
145
181
`NeuralGenetic <https://github.com/ahmedfgad/NeuralGenetic >`__
146
182
--------------------------------------------------------------
@@ -153,7 +189,7 @@ projects
153
189
`GeneticAlgorithmPython <https://github.com/ahmedfgad/GeneticAlgorithmPython >`__
154
190
and `NumPyANN <https://github.com/ahmedfgad/NumPyANN >`__.
155
191
156
- .. _header-n53 :
192
+ .. _header-n60 :
157
8000
193
158
194
Submitting Issues
159
195
=================
@@ -170,7 +206,7 @@ is not working properly or to ask for questions.
170
206
If this is not a proper option for you, then check the **Contact Us **
171
207
section for more contact details.
172
208
173
- .. _header-n57 :
209
+ .. _header-n64 :
174
210
175
211
Ask for Feature
176
212
===============
@@ -187,7 +223,7 @@ to ahmed.f.gad@gmail.com.
187
223
188
224
Also check the **Contact Us ** section for more contact details.
189
225
190
- .. _header-n61 :
226
+ .. _header-n68 :
191
227
192
228
Projects Built using PyGAD
193
229
==========================
@@ -206,15 +242,15 @@ Within your message, please send the following details:
206
242
207
243
- Preferably, a link that directs the readers to your project
208
244
209
- .. _header-n72 :
245
+ .. _header-n79 :
210
246
211
247
For More Information
212
248
====================
213
249
214
250
There are different resources that can be used to get started with the
215
251
genetic algorithm and building it in Python.
216
252
217
- .. _header-n74 :
253
+ .. _header-n81 :
218
254
219
255
Tutorial: Implementing Genetic Algorithm in Python
220
256
--------------------------------------------------
@@ -238,7 +274,7 @@ good resource to start with coding the genetic algorithm.
238
274
239
275
|image0 |
240
276
241
- .. _header-n85 :
277
+ .. _header-n92 :
242
278
243
279
Tutorial: Introduction to Genetic Algorithm
244
280
-------------------------------------------
@@ -257,7 +293,7 @@ which is available at these links:
257
293
258
294
|image1 |
259
295
260
- .. _header-n95 :
296
+ .. _header-n102 :
261
297
262
298
Tutorial: Build Neural Networks in Python
263
299
-----------------------------------------
@@ -277,7 +313,7 @@ available at these links:
277
313
278
314
|image2 |
279
315
280
- .. _header-n105 :
316
+ .. _header-n112 :
281
317
282
318
Tutorial: Optimize Neural Networks with Genetic Algorithm
283
319
---------------------------------------------------------
@@ -297,7 +333,7 @@ available at these links:
297
333
298
334
|image3 |
299
335
300
- .. _header-n115 :
336
+ .. _header-n122 :
301
337
302
338
Book: Practical Computer Vision Applications Using Deep Learning with CNNs
303
339
--------------------------------------------------------------------------
@@ -323,7 +359,7 @@ Find the book at these links:
323
359
.. figure :: https://user-images.githubusercontent.com/16560492/78830077-ae7c2800-79e7-11ea-980b-53b6bd879eeb.jpg
324
360
:alt:
325
361
326
- .. _header-n130 :
362
+ .. _header-n137 :
327
363
328
364
Contact Us
329
365
==========
0 commit comments