Skip to content

Commit

Permalink
New module pygad.kerasga
Browse files Browse the repository at this point in the history
Training Keras models using PyGAD
  • Loading branch information
ahmedfgad authored Sep 20, 2020
1 parent 43fd38a commit ad3ab6b
Show file tree
Hide file tree
Showing 5 changed files with 1,204 additions and 81 deletions.
74 changes: 42 additions & 32 deletions docs/source/Footer.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. _header-n0:
.. _header-n293:

Release History
===============

.. _header-n2:
.. _header-n295:

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

.. _header-n7:
.. _header-n300:

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

.. _header-n18:
.. _header-n311:

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

.. _header-n29:
.. _header-n322:

PyGAD 2.1.0
-----------
Expand Down Expand Up @@ -97,7 +97,7 @@ Release Date: 14 May 2020

2. Mutation is applied independently for the genes.

.. _header-n44:
.. _header-n337:

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

.. _header-n49:
.. _header-n342:

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

.. _header-n62:
.. _header-n355:

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

.. _header-n77:
.. _header-n370:

PyGAD 2.4.0
-----------
Expand Down Expand Up @@ -204,7 +204,7 @@ through more generations because no further improvement is possible.
if ga_instance.best_solution()[1] >= 70:
return "stop"
.. _header-n87:
.. _header-n380:

PyGAD 2.5.0
-----------
Expand Down Expand Up @@ -300,7 +300,7 @@ If the user did not assign the initial population to the
randomly based on the ``gene_space`` parameter. Moreover, the mutation
is applied based on this parameter.

.. _header-n115:
.. _header-n408:

PyGAD 2.6.0
------------
Expand All @@ -318,7 +318,7 @@ Release Date: 6 August 2020
``on_fitness``, ``on_parents``, ``on_crossover``, ``on_mutation``,
``on_generation``, and ``on_stop``.

.. _header-n124:
.. _header-n417:

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

.. _header-n284:
.. _header-n441:

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

.. _header-n289:
.. _header-n446:

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

.. _header-n283:
.. _header-n451:

PyGAD 2.8.0
-----------

Release Date: 20 September 2020

1. Support of a new module named ``kerasga`` so that the Keras models
can be trained by the genetic algorithm using PyGAD.

.. _header-n586:

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

.. _header-n150:
.. _header-n453:

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

.. _header-n153:
.. _header-n456:

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

.. _header-n156:
.. _header-n459:

`NeuralGenetic <https://github.com/ahmedfgad/NeuralGenetic>`__
--------------------------------------------------------------
Expand All @@ -445,7 +455,7 @@ projects
`GeneticAlgorithmPython <https://github.com/ahmedfgad/GeneticAlgorithmPython>`__
and `NumPyANN <https://github.com/ahmedfgad/NumPyANN>`__.

.. _header-n159:
.. _header-n462:

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

.. _header-n162:
.. _header-n465:

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

.. _header-n165:
.. _header-n468:

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

.. _header-n169:
.. _header-n472:

Ask for Feature
===============
Expand All @@ -503,7 +513,7 @@ to [email protected].

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

.. _header-n173:
.. _header-n476:

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

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

.. _header-n184:
.. _header-n487:

For More Information
====================

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

.. _header-n186:
.. _header-n489:

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

|image0|

.. _header-n197:
.. _header-n500:

Tutorial: Introduction to Genetic Algorithm
-------------------------------------------
Expand All @@ -573,7 +583,7 @@ which is available at these links:

|image1|

.. _header-n207:
.. _header-n510:

Tutorial: Build Neural Networks in Python
-----------------------------------------
Expand All @@ -593,7 +603,7 @@ available at these links:

|image2|

.. _header-n217:
.. _header-n520:

Tutorial: Optimize Neural Networks with Genetic Algorithm
---------------------------------------------------------
Expand All @@ -613,7 +623,7 @@ available at these links:

|image3|

.. _header-n227:
.. _header-n530:

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

|image4|

.. _header-n240:
.. _header-n543:

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

|image5|

.. _header-n250:
.. _header-n553:

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

.. _header-n265:
.. _header-n568:

Contact Us
==========
Expand Down
Loading

0 comments on commit ad3ab6b

Please sign in to comment.