Skip to content

Commit

Permalink
make genetic_algorithm py3 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
tvturnhout committed Aug 30, 2018
1 parent f278751 commit e1abd2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlfromscratch/unsupervised_learning/genetic_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, target_string, population_size, mutation_rate):
self.target = target_string
self.population_size = population_size
self.mutation_rate = mutation_rate
self.letters = [" "] + list(string.letters)
self.letters = [" "] + list(string.ascii_letters)

def _initialize(self):
""" Initialize population with random strings """
Expand Down

0 comments on commit e1abd2e

Please sign in to comment.