population.py
def speciate(self, genome, generation):
        """
        Places Genome into proper species - index
        :param genome: Genome be speciated
        :param generation: Number of generation this speciation is occuring at
        :return: None
        """
        for species in self.species:
            if Species.species_distance(genome, species.model_genome) <= self.Config.SPECIATION_THRESHOLD:
                genome.species = species.id
                species.members.append(genome)
                return

        # Did not match any current species. Create a new one
        new_species = Species(len(self.species), genome, generation)
        genome.species = new_species.id
        new_species.members.append(genome)
        self.species.append(new_species)

        Places Genome into proper species - index
        :param genome: Genome be speciated
        :param generation: Number of generation this speciation is occuring at
        :return: None
        
Places Genome into proper species - index
Places Genome into proper species - index
def speciate(self, genome, generation):
        for species in self.species:
            if Species.species_distance(genome, species.model_genome) <= self.Config.SPECIATION_THRESHOLD:
                genome.species = species.id
                species.members.append(genome)
                return
        new_species = Species(len(self.species), genome, generation)
        genome.species = new_species.id
        new_species.members.append(genome)
        self.species.append(new_species)
def speciate ( self , genome , generation ) : for species in self . species : if Species . species_distance ( genome , species . model_genome ) <= self . Config . SPECIATION_THRESHOLD : genome . species = species . id species . members . append ( genome ) return new_species = Species ( len ( self . species ) , genome , generation ) genome . species = new_species . id new_species . members . append ( genome ) self . species . append ( new_species )
Places Genome into proper species - index
Places Genome into proper species - index
"""
        Places Genome into proper species - index
        :param genome: Genome be speciated
        :param generation: Number of generation this speciation is occuring at
        :return: None
        """ # Did not match any current species. Create a new one
None
self
genome
Genome be speciated
Genome be speciated
generation
Number of generation this speciation is occuring at
Number of generation this speciation is occuring at