Skip to content

Commit ad3ab6b

Browse files
authored
New module pygad.kerasga
Training Keras models using PyGAD
1 parent 43fd38a commit ad3ab6b

File tree

5 files changed

+1204
-81
lines changed

5 files changed

+1204
-81
lines changed

docs/source/Footer.rst

+42-32
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.. _header-n0:
1+
.. _header-n293:
22

33
Release History
44
===============
55

6-
.. _header-n2:
6+
.. _header-n295:
77

88
PyGAD 1.0.17
99
------------
@@ -15,7 +15,7 @@ Release Date: 15 April 2020
1515
values for the solutions. This allows the project to be customized to
1616
any problem by building the right fitness function.
1717

18-
.. _header-n7:
18+
.. _header-n300:
1919

2020
PyGAD 1.0.20
2121
-------------
@@ -35,7 +35,7 @@ Release Date: 4 May 2020
3535
4. The code object ``__code__`` of the passed fitness function is
3636
checked to ensure it has the right number of parameters.
3737

38-
.. _header-n18:
38+
.. _header-n311:
3939

4040
PyGAD 2.0.0
4141
------------
@@ -61,7 +61,7 @@ Release Date: 13 May 2020
6161
is called after each generation. This helps the user to do
6262
post-processing or debugging operations after each generation.
6363

64-
.. _header-n29:
64+
.. _header-n322:
6565

6666
PyGAD 2.1.0
6767
-----------
@@ -97,7 +97,7 @@ Release Date: 14 May 2020
9797

9898
2. Mutation is applied independently for the genes.
9999

100-
.. _header-n44:
100+
.. _header-n337:
101101

102102
PyGAD 2.2.1
103103
-----------
@@ -107,7 +107,7 @@ Release Date: 17 May 2020
107107
1. Adding 2 extra modules (pygad.nn and pygad.gann) for building and
108108
training neural networks with the genetic algorithm.
109109

110-
.. _header-n49:
110+
.. _header-n342:
111111

112112
PyGAD 2.2.2
113113
-----------
@@ -141,7 +141,7 @@ The new gene value is **0.1**.
141141
``crossover_type`` parameters of the pygad.GA class constructor. When
142142
``None``, this means the step is bypassed and has no action.
143143

144-
.. _header-n62:
144+
.. _header-n355:
145145

146146
PyGAD 2.3.0
147147
-----------
@@ -166,7 +166,7 @@ Release date: 1 June 2020
166166
6. The name of the ``pygad.nn.train_network()`` function is changed to
167167
``pygad.nn.train()``.
168168

169-
.. _header-n77:
169+
.. _header-n370:
170170

171171
PyGAD 2.4.0
172172
-----------
@@ -204,7 +204,7 @@ through more generations because no further improvement is possible.
204204
if ga_instance.best_solution()[1] >= 70:
205205
return "stop"
206206
207-
.. _header-n87:
207+
.. _header-n380:
208208

209209
PyGAD 2.5.0
210210
-----------
@@ -300,7 +300,7 @@ If the user did not assign the initial population to the
300300
randomly based on the ``gene_space`` parameter. Moreover, the mutation
301301
is applied based on this parameter.
302302

303-
.. _header-n115:
303+
.. _header-n408:
304304

305305
PyGAD 2.6.0
306306
------------
@@ -318,7 +318,7 @@ Release Date: 6 August 2020
318318
``on_fitness``, ``on_parents``, ``on_crossover``, ``on_mutation``,
319319
``on_generation``, and ``on_stop``.
320320

321-
.. _header-n124:
321+
.. _header-n417:
322322

323323
PyGAD 2.7.0
324324
-----------
@@ -377,7 +377,7 @@ parameter or set it to ``"classification"`` (default value). In this
377377
case, the activation function of the last layer can be set to any type
378378
(e.g. softmax).
379379

380-
.. _header-n284:
380+
.. _header-n441:
381381

382382
PyGAD 2.7.1
383383
-----------
@@ -387,7 +387,7 @@ Release Date: 11 September 2020
387387
1. A bug fix when the ``problem_type`` argument is set to
388388
``regression``.
389389

390-
.. _header-n289:
390+
.. _header-n446:
391391

392392
PyGAD 2.7.2
393393
-----------
@@ -397,7 +397,17 @@ Release Date: 14 September 2020
397397
1. Bug fix to support building and training regression neural networks
398398
with multiple outputs.
399399

400-
.. _header-n283:
400+
.. _header-n451:
401+
402+
PyGAD 2.8.0
403+
-----------
404+
405+
Release Date: 20 September 2020
406+
407+
1. Support of a new module named ``kerasga`` so that the Keras models
408+
can be trained by the genetic algorithm using PyGAD.
409+
410+
.. _header-n586:
401411

402412
PyGAD Projects at GitHub
403413
========================
@@ -407,7 +417,7 @@ https://pypi.org/project/pygad. PyGAD is built out of a number of
407417
open-source GitHub projects. A brief note about these projects is given
408418
in the next subsections.
409419

410-
.. _header-n150:
420+
.. _header-n453:
411421

412422
`GeneticAlgorithmPython <https://github.com/ahmedfgad/GeneticAlgorithmPython>`__
413423
--------------------------------------------------------------------------------
@@ -418,7 +428,7 @@ GitHub Link: https://github.com/ahmedfgad/GeneticAlgorithmPython
418428
is the first project which is an open-source Python 3 project for
419429
implementing the genetic algorithm based on NumPy.
420430

421-
.. _header-n153:
431+
.. _header-n456:
422432

423433
`NumPyANN <https://github.com/ahmedfgad/NumPyANN>`__
424434
----------------------------------------------------
@@ -432,7 +442,7 @@ neural network without using a training algorithm. Currently, it only
432442
supports classification and later regression will be also supported.
433443
Moreover, only one class is supported per sample.
434444

435-
.. _header-n156:
445+
.. _header-n459:
436446

437447
`NeuralGenetic <https://github.com/ahmedfgad/NeuralGenetic>`__
438448
--------------------------------------------------------------
@@ -445,7 +455,7 @@ projects
445455
`GeneticAlgorithmPython <https://github.com/ahmedfgad/GeneticAlgorithmPython>`__
446456
and `NumPyANN <https://github.com/ahmedfgad/NumPyANN>`__.
447457

448-
.. _header-n159:
458+
.. _header-n462:
449459

450460
`NumPyCNN <https://github.com/ahmedfgad/NumPyCNN>`__
451461
----------------------------------------------------
@@ -457,7 +467,7 @@ convolutional neural networks using NumPy. The purpose of this project
457467
is to only implement the **forward pass** of a convolutional neural
458468
network without using a training algorithm.
459469

460-
.. _header-n162:
470+
.. _header-n465:
461471

462472
`CNNGenetic <https://github.com/ahmedfgad/CNNGenetic>`__
463473
--------------------------------------------------------
@@ -469,7 +479,7 @@ convolutional neural networks using the genetic algorithm. It uses the
469479
`GeneticAlgorithmPython <https://github.com/ahmedfgad/GeneticAlgorithmPython>`__
470480
project for building the genetic algorithm.
471481

472-
.. _header-n165:
482+
.. _header-n468:
473483

474484
Submitting Issues
475485
=================
@@ -486,7 +496,7 @@ is not working properly or to ask for questions.
486496
If this is not a proper option for you, then check the **Contact Us**
487497
section for more contact details.
488498

489-
.. _header-n169:
499+
.. _header-n472:
490500

491501
Ask for Feature
492502
===============
@@ -503,7 +513,7 @@ to [email protected].
503513

504514
Also check the **Contact Us** section for more contact details.
505515

506-
.. _header-n173:
516+
.. _header-n476:
507517

508518
Projects Built using PyGAD
509519
==========================
@@ -522,15 +532,15 @@ Within your message, please send the following details:
522532

523533
- Preferably, a link that directs the readers to your project
524534

525-
.. _header-n184:
535+
.. _header-n487:
526536

527537
For More Information
528538
====================
529539

530540
There are different resources that can be used to get started with the
531541
genetic algorithm and building it in Python.
532542

533-
.. _header-n186:
543+
.. _header-n489:
534544

535545
Tutorial: Implementing Genetic Algorithm in Python
536546
--------------------------------------------------
@@ -554,7 +564,7 @@ good resource to start with coding the genetic algorithm.
554564

555565
|image0|
556566

557-
.. _header-n197:
567+
.. _header-n500:
558568

559569
Tutorial: Introduction to Genetic Algorithm
560570
-------------------------------------------
@@ -573,7 +583,7 @@ which is available at these links:
573583

574584
|image1|
575585

576-
.. _header-n207:
586+
.. _header-n510:
577587

578588
Tutorial: Build Neural Networks in Python
579589
-----------------------------------------
@@ -593,7 +603,7 @@ available at these links:
593603

594604
|image2|
595605

596-
.. _header-n217:
606+
.. _header-n520:
597607

598608
Tutorial: Optimize Neural Networks with Genetic Algorithm
599609
---------------------------------------------------------
@@ -613,7 +623,7 @@ available at these links:
613623

614624
|image3|
615625

616-
.. _header-n227:
626+
.. _header-n530:
617627

618628
Tutorial: Building CNN in Python
619629
--------------------------------
@@ -639,7 +649,7 @@ good resource to start with coding CNNs.
639649

640650
|image4|
641651

642-
.. _header-n240:
652+
.. _header-n543:
643653

644654
Tutorial: Derivation of CNN from FCNN
645655
-------------------------------------
@@ -658,7 +668,7 @@ which is available at these links:
658668

659669
|image5|
660670

661-
.. _header-n250:
671+
.. _header-n553:
662672

663673
Book: Practical Computer Vision Applications Using Deep Learning with CNNs
664674
--------------------------------------------------------------------------
@@ -684,7 +694,7 @@ Find the book at these links:
684694
.. figure:: https://user-images.githubusercontent.com/16560492/78830077-ae7c2800-79e7-11ea-980b-53b6bd879eeb.jpg
685695
:alt:
686696

687-
.. _header-n265:
697+
.. _header-n568:
688698

689699
Contact Us
690700
==========

0 commit comments

Comments
 (0)