Skip to content

Commit

Permalink
Fix link
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedfgad committed Jan 31, 2024
1 parent cc35360 commit 8fbae2d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/source/pygad.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ The ``pygad.GA`` class constructor supports the following parameters:
function can be passed starting from `PyGAD
2.16.0 <https://pygad.readthedocs.io/en/latest/releases.html#pygad-2-16-0>`__.
Check the `User-Defined Crossover, Mutation, and Parent Selection
Operators <https://pygad.readthedocs.io/en/latest/pygad_more.html#user-defined-crossover-mutation-and-parent-selection-operators>`__
Operators <https://pygad.readthedocs.io/en/latest/utils.html#user-defined-crossover-mutation-and-parent-selection-operators>`__
section for more details about building a user-defined parent
selection function.

Expand Down Expand Up @@ -1037,11 +1037,10 @@ Let's discuss how to do each of these steps.
Preparing the ``fitness_func`` Parameter
-----------------------------------------

Even though some steps in the genetic algorithm pipeline can
work the same regardless of the problem being solved, one critical step
is the calculation of the fitness value. There is no unique way of
calculating the fitness value and it changes from one problem to
another.
Even though some steps in the genetic algorithm pipeline can work the
same regardless of the problem being solved, one critical step is the
calculation of the fitness value. There is no unique way of calculating
the fitness value and it changes from one problem to another.

PyGAD has a parameter called ``fitness_func`` that allows the user to
specify a custom function/method to use when calculating the fitness.
Expand Down

0 comments on commit 8fbae2d

Please sign in to comment.