@@ -1198,84 +1198,74 @@ PyGAD 3.0.0
1198
1198
1199
1199
Release Date 8 April 2023
1200
1200
1201
- 1. The structure of the library is changed and some methods defined in
1202
- the ``pygad.py `` module are moved to the ``pygad.utils ``,
1203
- ``pygad.helper ``, and ``pygad.visualize `` submodules.
1201
+ 1. The structure of the library is changed and some methods defined in
1202
+ the ``pygad.py `` module are moved to the ``pygad.utils ``,
1203
+ ``pygad.helper ``, and ``pygad.visualize `` submodules.
1204
1204
1205
- 2. The ``pygad.utils.parent_selection `` module has a class named
1206
- ``ParentSelection `` where all the parent selection operators exist.
1207
- The ``pygad.GA `` class extends this class.
1205
+ 2. The ``pygad.utils.parent_selection `` module has a class named
1206
+ ``ParentSelection `` where all the parent selection operators exist.
1207
+ The ``pygad.GA `` class extends this class.
1208
1208
1209
- 3. The ``pygad.utils.crossover `` module has a class named ``Crossover ``
1210
- where all the crossover operators exist. The ``pygad.GA `` class
1211
- extends this class.
1209
+ 3. The ``pygad.utils.crossover `` module has a class named ``Crossover ``
1210
+ where all the crossover operators exist. The ``pygad.GA `` class
1211
+ extends this class.
1212
1212
1213
- 4. The ``pygad.utils.mutation `` module has a class named ``Mutation ``
1214
- where all the mutation operators exist. The ``pygad.GA `` class
1215
- extends this class.
1213
+ 4. The ``pygad.utils.mutation `` module has a class named ``Mutation ``
1214
+ where all the mutation operators exist. The ``pygad.GA `` class
1215
+ extends this class.
1216
1216
1217
- 5. The ``pygad.helper.unique `` module has a class named ``Unique `` some
1218
- helper methods exist to solve duplicate genes and make sure every
1219
- gene is unique. The ``pygad.GA `` class extends this class.
1217
+ 5. The ``pygad.helper.unique `` module has a class named ``Unique `` some
1218
+ helper methods exist to solve duplicate genes and make sure every
1219
+ gene is unique. The ``pygad.GA `` class extends this class.
1220
1220
1221
- 6. The ``pygad.visualize.plot `` module has a class named ``Plot `` where
1222
- all the methods that create plots exist. The ``pygad.GA `` class
1223
- extends this class.
1221
+ 6. The ``pygad.visualize.plot `` module has a class named ``Plot `` where
1222
+ all the methods that create plots exist. The ``pygad.GA `` class
1223
+ extends this class.
1224
1224
1225
- .. code :: python
1226
-
1227
- ...
1228
- class GA (utils .parent_selection .ParentSelection ,
1229
- utils .crossover .Crossover ,
1230
- utils .mutation .Mutation ,
1231
- helper .unique .Unique ,
1232
- visualize .plot .Plot ):
1233
- ...
1234
-
1235
- 1. Support of using the ``logging `` module to log the outputs to both
1225
+ 7. Support of using the ``logging `` module to log the outputs to both
1236
1226
the console and text file instead of using the ``print() `` function.
1237
1227
This is by assigning the ``logging.Logger `` to the new ``logger ``
1238
1228
parameter. Check the `Logging
1239
1229
Outputs <https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#logging-outputs> `__
1240
1230
for more information.
1241
1231
1242
- 2 . A new instance attribute called ``logger `` to save the logger.
1232
+ 8 . A new instance attribute called ``logger `` to save the logger.
1243
1233
1244
- 3 . The function/method passed to the ``fitness_func `` parameter accepts
1234
+ 9 . The function/method passed to the ``fitness_func `` parameter accepts
1245
1235
a new parameter that refers to the instance of the ``pygad.GA ``
1246
1236
class. Check this for an example: `Use Functions and Methods to
1247
1237
Build Fitness Function and
1248
1238
Callbacks <https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#use-functions-and-methods-to-build-fitness-and-callbacks> `__.
1249
1239
https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/163
1250
1240
1251
- 4. Update the documentation to include an example of using functions
1241
+ 10. Update the documentation to include an example of using functions
1252
1242
and methods to calculate the fitness and build callbacks. Check this
1253
1243
for more details: `Use Functions and Methods to Build Fitness
1254
1244
Function and
1255
1245
Callbacks <https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#use-functions-and-methods-to-build-fitness-and-callbacks> `__.
1256
1246
https://github.com/ahmedfgad/GeneticAlgorithmPython/pull/92#issuecomment-1443635003
1257
1247
1258
- 5. Validate the value passed to the ``initial_population `` parameter.
1248
+ 11. Validate the value passed to the ``initial_population `` parameter.
1259
1249
1260
- 6. Validate the type and length of the ``pop_fitness `` parameter of the
1250
+ 12. Validate the type and length of the ``pop_fitness `` parameter of the
1261
1251
``best_solution() `` method.
1262
1252
1263
- 7. Some edits in the documentation.
1253
+ 13. Some edits in the documentation.
1264
1254
https://github.com/ahmedfgad/GeneticAlgorithmPython/issues/106
1265
1255
1266
- 8. Fix an issue when building the initial population as (some) genes
1256
+ 14. Fix an issue when building the initial population as (some) genes
1267
1257
have their value taken from the mutation range (defined by the
1268
1258
parameters ``random_mutation_min_val `` and
1269
1259
``random_mutation_max_val ``) instead of using the parameters
1270
1260
``init_range_low `` and ``init_range_high ``.
1271
1261
1272
- 9. The ``summary() `` method returns the summary as a single-line
1262
+ 15. The ``summary() `` method returns the summary as a single-line
1273
1263
string. Just log/print the returned string it to see it properly.
1274
1264
1275
- 10 . The ``callback_generation `` parameter is removed. Use the
1265
+ 16 . The ``callback_generation `` parameter is removed. Use the
1276
1266
``on_generation `` parameter instead.
1277
1267
1278
- 11 . There was an issue when using the ``parallel_processing `` parameter
1268
+ 17 . There was an issue when using the ``parallel_processing `` parameter
1279
1269
with Keras and PyTorch. As Keras/PyTorch are not thread-safe, the
1280
1270
``predict() `` method gives incorrect and weird results when more
1281
1271
than 1 thread is used.
@@ -1285,7 +1275,7 @@ Release Date 8 April 2023
1285
1275
`StackOverflow
1286
1276
answer <https://stackoverflow.com/a/75606666/5426539> `__.
1287
1277
1288
- 12 . Replace ``numpy.float `` by ``float `` in the 2 parent selection
1278
+ 18 . Replace ``numpy.float `` by ``float `` in the 2 parent selection
1289
1279
operators roulette wheel and stochastic universal.
1290
1280
https://github.com/ahmedfgad/GeneticAlgorithmPython/pull/168
1291
1281
0 commit comments