Skip to content

Commit 59544eb

Browse files
Flake8 consistency fix
1 parent 9a95eee commit 59544eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

genetic_algorithm/basic_string.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
# Maximum size of the population. Bigger could be faster but is more memory expensive.
1313
N_POPULATION = 200
1414
# Number of elements selected in every generation for evolution. The selection takes
15-
# place from the best to the worst of that generation. Must be smaller than N_POPULATION.
15+
# place from best to worst of that generation. Must be smaller than N_POPULATION.
1616
N_SELECTED = 50
17-
# Probability that an element of a generation can mutate, changing one of its genes. This
18-
# guarantees that all genes will be used during evolution.
17+
# Probability that an element of a generation can mutate, changing one of its genes.
18+
# This guarantees that all genes will be used during evolution.
1919
MUTATION_PROBABILITY = 0.4
2020
# Just a seed to improve randomness required by the algorithm.
2121
random.seed(random.randint(0, 1000))

0 commit comments

Comments
 (0)