Skip to content

Commit 16c5ad9

Browse files
authored
PyGAD 2.18.0 Documentation
1. Raise an exception if the sum of fitness values is zero while either roulette wheel or stochastic universal parent selection is used. #129 2. Initialize the value of the `run_completed` property to `False`. #122 3. The values of these properties are no longer reset with each call to the `run()` method `self.best_solutions, self.best_solutions_fitness, self.solutions, self.solutions_fitness`: #123. Now, the user can have the flexibility of calling the `run()` method more than once while extending the data collected after each generation. Another advantage happens when the instance is loaded and the `run()` method is called, as the old fitness value are shown on the graph alongside with the new fitness values. Read more in this section: [Continue without Loosing Progress](https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#continue-without-loosing-progress) 4. Thanks [Prof. Fernando Jiménez Barrionuevo](http://webs.um.es/fernan) (Dept. of Information and Communications Engineering, University of Murcia, Murcia, Spain) for editing this [comment](https://github.com./ahmedfgad/GeneticAlgorithmPython/blob/5315bbec02777df96ce1ec665c94dece81c440f4/pygad.py#L73) in the code. 5315bbe 5. A bug fixed when `crossover_type=None`. 6. Support of elitism selection through a new parameter named `keep_elitism`. It defaults to 1 which means for each generation keep only the best solution in the next generation. If assigned 0, then it has no effect. Read more in this section: [Elitism Selection](https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#elitism-selection). #74 7. A new instance attribute named `last_generation_elitism` added to hold the elitism in the last generation. 8. A new parameter called `random_seed` added to accept a seed for the random function generators. Credit to this issue #70 and [Prof. Fernando Jiménez Barrionuevo](http://webs.um.es/fernan). Read more in this section: [Random Seed](https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#random-seed). 9. Editing the `pygad.TorchGA` module to make sure the tensor data is moved from GPU to CPU. Thanks to Rasmus Johansson for opening this pull request: ahmedfgad/TorchGA#2
1 parent c5a03a8 commit 16c5ad9

File tree

3 files changed

+300
-17
lines changed

3 files changed

+300
-17
lines changed

docs/source/Footer.rst

+62-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Release Date: 15 April 2020
1919
.. _pygad-1020:
2020

2121
PyGAD 1.0.20
22-
------------
22+
-------------
2323

2424
Release Date: 4 May 2020
2525

@@ -39,7 +39,7 @@ Release Date: 4 May 2020
3939
.. _pygad-200:
4040

4141
PyGAD 2.0.0
42-
-----------
42+
------------
4343

4444
Release Date: 13 May 2020
4545

@@ -258,7 +258,7 @@ Release date: 19 July 2020
258258
.. _pygad-260:
259259

260260
PyGAD 2.6.0
261-
-----------
261+
------------
262262

263263
Release Date: 6 August 2020
264264

@@ -378,7 +378,7 @@ Release Date: 3 October 2020
378378
.. _pygad-290:
379379

380380
PyGAD 2.9.0
381-
-----------
381+
------------
382382

383383
Release Date: 06 December 2020
384384

@@ -585,7 +585,7 @@ issue.
585585
.. _pygad-2130:
586586

587587
PyGAD 2.13.0
588-
------------
588+
-------------
589589

590590
Release Date: 12 March 2021
591591

@@ -997,6 +997,63 @@ Release Date: 8 July 2022
997997
PyGAD <https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#parallel-processing-in-pygad>`__
998998
section for more information and examples.
999999

1000+
.. _pygad-2180:
1001+
1002+
PyGAD 2.18.0
1003+
------------
1004+
1005+
Release Date: 9 September 2022
1006+
1007+
1. Raise an exception if the sum of fitness values is zero while either
1008+
roulette wheel or stochastic universal parent selection is used.
1009+
https://github.com./ahmedfgad/GeneticAlgorithmPython/issues/129
1010+
1011+
2. Initialize the value of the ``run_completed`` property to ``False``.
1012+
https://github.com./ahmedfgad/GeneticAlgorithmPython/issues/122
1013+
1014+
3. The values of these properties are no longer reset with each call to
1015+
the ``run()`` method
1016+
``self.best_solutions, self.best_solutions_fitness, self.solutions, self.solutions_fitness``:
1017+
https://github.com./ahmedfgad/GeneticAlgorithmPython/issues/123. Now,
1018+
the user can have the flexibility of calling the ``run()`` method
1019+
more than once while extending the data collected after each
1020+
generation. Another advantage happens when the instance is loaded and
1021+
the ``run()`` method is called, as the old fitness value are shown on
1022+
the graph alongside with the new fitness values. Read more in this
1023+
section: `Continue without Loosing
1024+
Progress <https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#continue-without-loosing-progress>`__
1025+
1026+
4. Thanks `Prof. Fernando Jiménez
1027+
Barrionuevo <http://webs.um.es/fernan>`__ (Dept. of Information and
1028+
Communications Engineering, University of Murcia, Murcia, Spain) for
1029+
editing this
1030+
`comment <https://github.com./ahmedfgad/GeneticAlgorithmPython/blob/5315bbec02777df96ce1ec665c94dece81c440f4/pygad.py#L73>`__
1031+
in the code.
1032+
https://github.com./ahmedfgad/GeneticAlgorithmPython/commit/5315bbec02777df96ce1ec665c94dece81c440f4
1033+
1034+
5. A bug fixed when ``crossover_type=None``.
1035+
1036+
6. Support of elitism selection through a new parameter named
1037+
``keep_elitism``. It defaults to 1 which means for each generation
1038+
keep only the best solution in the next generation. If assigned 0,
1039+
then it has no effect. Read more in this section: `Elitism
1040+
Selection <https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#elitism-selection>`__.
1041+
https://github.com./ahmedfgad/GeneticAlgorithmPython/issues/74
1042+
1043+
7. A new instance attribute named ``last_generation_elitism`` added to
1044+
hold the elitism in the last generation.
1045+
1046+
8. A new parameter called ``random_seed`` added to accept a seed for the
1047+
random function generators. Credit to this issue
1048+
https://github.com./ahmedfgad/GeneticAlgorithmPython/issues/70 and
1049+
`Prof. Fernando Jiménez Barrionuevo <http://webs.um.es/fernan>`__.
1050+
Read more in this section: `Random
1051+
Seed <https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#random-seed>`__.
1052+
1053+
9. Editing the ``pygad.TorchGA`` module to make sure the tensor data is
1054+
moved from GPU to CPU. Thanks to Rasmus Johansson for opening this
1055+
pull request: https://github.com./ahmedfgad/TorchGA/pull/2
1056+
10001057
PyGAD Projects at GitHub
10011058
========================
10021059

0 commit comments

Comments
 (0)