forked fromahmedfgad/GeneticAlgorithmPython
- Notifications
You must be signed in to change notification settings - Fork0
Commitfaeec77
authored
PyGAD 2.16.3
PyGAD 2.16.21. A new instance attribute called `previous_generation_fitness` added in the `pygad.GA` class. It holds the fitness values of one generation before the fitness values saved in the `last_generation_fitness`.2. Issue in the `cal_pop_fitness()` method in getting the correct indices of the previous parents. This is solved by using the previous generation's fitness saved in the new attribute `previous_generation_fitness` to return the parents' fitness values. Thanks to Tobias Tischhauser (M.Sc. - [Mitarbeiter Institut EMS, Departement Technik, OST – Ostschweizer Fachhochschule, Switzerland](https://www.ost.ch/de/forschung-und-dienstleistungen/technik/systemtechnik/ems/team)) for detecting this bug.PyGAD 2.16.31. Validate the fitness value returned from the fitness function. An exception is raised if something is wrong.ahmedfgad#671 parent4ad007e commitfaeec77
2 files changed
+11
-4
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + |
Lines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
899 | 899 |
| |
900 | 900 |
| |
901 | 901 |
| |
| 902 | + | |
902 | 903 |
| |
903 | 904 |
| |
904 | 905 |
| |
| |||
1146 | 1147 |
| |
1147 | 1148 |
| |
1148 | 1149 |
| |
1149 |
| - | |
1150 |
| - | |
| 1150 | + | |
| 1151 | + | |
1151 | 1152 |
| |
1152 | 1153 |
| |
1153 | 1154 |
| |
1154 | 1155 |
| |
1155 | 1156 |
| |
1156 |
| - | |
| 1157 | + | |
1157 | 1158 |
| |
1158 | 1159 |
| |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1159 | 1164 |
| |
1160 | 1165 |
| |
1161 | 1166 |
| |
| |||
1244 | 1249 |
| |
1245 | 1250 |
| |
1246 | 1251 |
| |
| 1252 | + | |
1247 | 1253 |
| |
1248 | 1254 |
| |
1249 | 1255 |
| |
| |||
1257 | 1263 |
| |
1258 | 1264 |
| |
1259 | 1265 |
| |
| 1266 | + | |
1260 | 1267 |
| |
1261 | 1268 |
| |
1262 | 1269 |
| |
|
0 commit comments
Comments
(0)