Added data_list()
This commit is contained in:
@ -149,6 +149,11 @@ class Population:
|
|||||||
self.fitness = fitness
|
self.fitness = fitness
|
||||||
|
|
||||||
|
|
||||||
|
def data_list(self):
|
||||||
|
"""Returns a list of chromosome data lists"""
|
||||||
|
return [chromosome.data_list() for chromosome in self.chromosome_list]
|
||||||
|
|
||||||
|
|
||||||
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(
|
||||||
|
|||||||
Reference in New Issue
Block a user