Collections_Iterator.py¶
This describes a collection of clusters, such as that stored as a population or a set of offspring.
-
class
Organisms.GA.Collections_Iterator.
Collections_Iterator
(population, offspring_pools=None, pass_first_cluster=False)¶ This iterator is designed to iterate through mutliple collections together, in such a way that we sample every cluster across a range of collections. This method is designed to work in place so that it take up minimal amount of space on ram.
- Parameters
population (Organisms.GA.Population) – This is the population being used for this Genetic Run
offspring_pools (Organisms.GA.Offspring_Pool or [Organisms.GA.Offspring_Pool,..]) – These are all the offspring_pools that are being used. This can be inputs as one offspring_pool, or a list of multiple offspring_pools
pass_first_cluster (bool.) – Start with the first cluster in the population, or the second.