-
-
Notifications
You must be signed in to change notification settings - Fork 489
Commit 16c5ad9
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
3 files changed
+300
-17
lines changedLines changed: 62 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | - | ||
22 | + | ||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 | - | ||
42 | + | ||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 | - | ||
261 | + | ||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
| |||
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
381 | - | ||
381 | + | ||
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
| |||
585 | 585 |
| |
586 | 586 |
| |
587 | 587 |
| |
588 | - | ||
588 | + | ||
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
| |||
997 | 997 |
| |
998 | 998 |
| |
999 | 999 |
| |
1000 | + | ||
1001 | + | ||
1002 | + | ||
1003 | + | ||
1004 | + | ||
1005 | + | ||
1006 | + | ||
1007 | + | ||
1008 | + | ||
1009 | + | ||
1010 | + | ||
1011 | + | ||
1012 | + | ||
1013 | + | ||
1014 | + | ||
1015 | + | ||
1016 | + | ||
1017 | + | ||
1018 | + | ||
1019 | + | ||
1020 | + | ||
1021 | + | ||
1022 | + | ||
1023 | + | ||
1024 | + | ||
1025 | + | ||
1026 | + | ||
1027 | + | ||
1028 | + | ||
1029 | + | ||
1030 | + | ||
1031 | + | ||
1032 | + | ||
1033 | + | ||
1034 | + | ||
1035 | + | ||
1036 | + | ||
1037 | + | ||
1038 | + | ||
1039 | + | ||
1040 | + | ||
1041 | + | ||
1042 | + | ||
1043 | + | ||
1044 | + | ||
1045 | + | ||
1046 | + | ||
1047 | + | ||
1048 | + | ||
1049 | + | ||
1050 | + | ||
1051 | + | ||
1052 | + | ||
1053 | + | ||
1054 | + | ||
1055 | + | ||
1056 | + | ||
1000 | 1057 |
| |
1001 | 1058 |
| |
1002 | 1059 |
| |
|
0 commit comments