@@ -1039,7 +1039,7 @@ Let's discuss how to do each of these steps.
1039
1039
Preparing the ``fitness_func `` Parameter
1040
1040
-----------------------------------------
1041
1041
1042
- Even there are some steps in the genetic algorithm pipeline that can
1042
+ Even though some steps in the genetic algorithm pipeline can
1043
1043
work the same regardless of the problem being solved, one critical step
1044
1044
is the calculation of the fitness value. There is no unique way of
1045
1045
calculating the fitness value and it changes from one problem to
@@ -1060,14 +1060,14 @@ optimization problem is single-objective or multi-objective.
1060
1060
``pygad.GA `` class.
1061
1061
1062
1062
- If the fitness function returns a ``list ``, ``tuple ``, or
1063
- ``numpy.ndarray ``, then the problem is single -objective. Even if
1063
+ ``numpy.ndarray ``, then the problem is multi -objective. Even if
1064
1064
there is only one element, the problem is still considered
1065
1065
multi-objective. Each element represents the fitness value of its
1066
1066
corresponding objective.
1067
1067
1068
1068
Using a user-defined fitness function allows the user to freely use
1069
- PyGAD to solve any problem by passing the appropriate fitness
1070
- function/method. It is very important to understand the problem well for
1069
+ PyGAD solves any problem by passing the appropriate fitness
1070
+ function/method. It is very important to understand the problem well before
1071
1071
creating it.
1072
1072
1073
1073
Let's discuss an example:
0 commit comments