Cleaned up __repr__
This commit is contained in:
@ -197,7 +197,7 @@ class Population:
|
|||||||
"""Returns a backend string representation of the entire population"""
|
"""Returns a backend string representation of the entire population"""
|
||||||
|
|
||||||
return ''.join(
|
return ''.join(
|
||||||
f'Chromosome - {self.index_of(chromosome)} {chromosome} ' +
|
f'Chromosome - {index} {self[index]} ' +
|
||||||
f'/ Fitness = {chromosome.get_fitness()}\n'
|
f'/ Fitness = {self[index].get_fitness()}\n'
|
||||||
for chromosome in self
|
for index in range(len(self))
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user