Skip to content

Commit 73e520e

Browse files
authored
Merge pull request #336 from raphaelboudreault/patch-1
Fix documentation errors in 'Other Attributes'
2 parents 5ce4ab9 + aa9b511 commit 73e520e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/md/pygad.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ The next 2 subsections list such attributes and methods.
8585
### Other Attributes
8686

8787
- `generations_completed`: Holds the number of the last completed generation.
88-
- `population`: A NumPy array holding the initial population.
88+
- `population`: A NumPy array that initially holds the initial population and is later updated after each generation.
8989
- `valid_parameters`: Set to `True` when all the parameters passed in the `GA` class constructor are valid.
9090
- `run_completed`: Set to `True` only after the `run()` method completes gracefully.
9191
- `pop_size`: The population size.
9292
- `best_solutions_fitness`: A list holding the fitness values of the best solutions for all generations.
9393
- `best_solution_generation`: The generation number at which the best fitness value is reached. It is only assigned the generation number after the `run()` method completes. Otherwise, its value is -1.
9494
- `best_solutions`: A NumPy array holding the best solution per each generation. It only exists when the `save_best_solutions` parameter in the `pygad.GA` class constructor is set to `True`.
9595
- `last_generation_fitness`: The fitness values of the solutions in the last generation. [Added in PyGAD 2.12.0](https://pygad.readthedocs.io/en/latest/releases.html#pygad-2-12-0).
96-
- `previous_generation_fitness`: At the end of each generation, the fitness of the most recent population is saved in the `last_generation_fitness` attribute. The fitness of the population exactly preceding this most recent population is saved in the `last_generation_fitness` attribute. This `previous_generation_fitness` attribute is used to fetch the pre-calculated fitness instead of calling the fitness function for already explored solutions. [Added in PyGAD 2.16.2](https://pygad.readthedocs.io/en/latest/releases.html#pygad-2-16-2).
96+
- `previous_generation_fitness`: At the end of each generation, the fitness of the most recent population is saved in the `last_generation_fitness` attribute. The fitness of the population exactly preceding this most recent population is saved in the `previous_generation_fitness` attribute. This `previous_generation_fitness` attribute is used to fetch the pre-calculated fitness instead of calling the fitness function for already explored solutions. [Added in PyGAD 2.16.2](https://pygad.readthedocs.io/en/latest/releases.html#pygad-2-16-2).
9797
- `last_generation_parents`: The parents selected from the last generation. [Added in PyGAD 2.12.0](https://pygad.readthedocs.io/en/latest/releases.html#pygad-2-12-0).
9898
- `last_generation_offspring_crossover`: The offspring generated after applying the crossover in the last generation. [Added in PyGAD 2.12.0](https://pygad.readthedocs.io/en/latest/releases.html#pygad-2-12-0).
9999
- `last_generation_offspring_mutation`: The offspring generated after applying the mutation in the last generation. [Added in PyGAD 2.12.0](https://pygad.readthedocs.io/en/latest/releases.html#pygad-2-12-0).

0 commit comments

Comments
 (0)