Fixed population print
This commit is contained in:
@ -152,7 +152,7 @@ class Population:
|
|||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
"""Returns a backend string representation of the entire population"""
|
"""Returns a backend string representation of the entire population"""
|
||||||
return ''.join(
|
return ''.join(
|
||||||
'Chromosome - {index} {self.get_chromosome(index)} ' +
|
f'Chromosome - {index} {self.get_chromosome(index)} ' +
|
||||||
'/ Fitness = {self.get_chromosome(index).get_fitness()}\n'
|
f'/ Fitness = {self.get_chromosome(index).get_fitness()}\n'
|
||||||
for index in range(self.size())
|
for index in range(self.size())
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user