Skip to content

Commit

Permalink
Merge pull request DEAP#581 from s-sakagawa/fix-typos
Browse files Browse the repository at this point in the history
Fix some typos in comment
  • Loading branch information
fmder authored Nov 13, 2021
2 parents bde0ac6 + ee2205b commit 1f1c9d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/bbob.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def main(func, dim, maxfuncevals, ftarget=None):
toolbox.update(worst, best, sigma)
worst.fitness.values = toolbox.evaluate(worst)
if best.fitness <= worst.fitness:
# Incease mutation strength and swap the individual
# Increase mutation strength and swap the individual
sigma = sigma * alpha
best, worst = worst, best
else:
Expand Down
4 changes: 2 additions & 2 deletions examples/ga/knapsack.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
MAX_WEIGHT = 50
NBR_ITEMS = 20

# To assure reproductibility, the RNG seed is set prior to the items
# To assure reproducibility, the RNG seed is set prior to the items
# dict initialization. It is also seeded in main().
random.seed(64)

# Create the item dictionary: item name is an integer, and value is
# a (weight, value) 2-uple.
# a (weight, value) 2-tuple.
items = {}
# Create random items and store them in the items' dictionary.
for i in range(NBR_ITEMS):
Expand Down

0 comments on commit 1f1c9d2

Please sign in to comment.