Skip to content

Commit

Permalink
Merge branch 'master' of github.com:DEAP/deap
Browse files Browse the repository at this point in the history
  • Loading branch information
fmder committed Nov 12, 2017
2 parents c358412 + cec5186 commit 9df0c9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deap/tools/selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def selWorst(individuals, k, fit_attr="fitness"):


def selTournament(individuals, k, tournsize, fit_attr="fitness"):
"""Select *k* individuals from the input *individuals* using *k*
tournaments of *tournsize* individuals. The list returned contains
"""Select the best individual among *tournsize* randomly chosen
individuals, *k* times. The list returned contains
references to the input *individuals*.
:param individuals: A list of individuals to select from.
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/ga_onemax.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ We can't repeat it enough, in DEAP single objectives is a special case of
multi objectives.

Next we will create the class :class:`Individual`, which will inherit the
class :class:`list` and contain the our previously defined :class:`FitnessMax`
class :class:`list` and contain our previously defined :class:`FitnessMax`
class in its *fitness* attribute. Note that upon creation all our defined
classes will be part of the ``creator`` container and can be called directly.

Expand Down
2 changes: 1 addition & 1 deletion doc/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Examples
This section contains some documented examples of common toy problems often
encountered in the evolutionary computation community. Note that there are
several other examples in the ``deap/examples`` sub-directory of the
framework. These can be used has ground work for implementing your own flavour
framework. These can be used as ground work for implementing your own flavour
of evolutionary algorithms.


Expand Down

0 comments on commit 9df0c9e

Please sign in to comment.