Changed a few comments
This commit is contained in:
@ -20,9 +20,7 @@ class Mutation_Methods:
|
||||
"""Methods for mutating a single chromosome"""
|
||||
|
||||
def whole_chromosome(ga, chromosome):
|
||||
"""Makes a completely random chromosome.
|
||||
Fills chromosome with new genes.
|
||||
"""
|
||||
"""Makes a completely random chromosome filled with new genes."""
|
||||
|
||||
# Using the chromosome_impl to set every index inside of the chromosome
|
||||
if ga.chromosome_impl != None:
|
||||
@ -44,7 +42,7 @@ class Mutation_Methods:
|
||||
|
||||
|
||||
def single_gene(ga, chromosome):
|
||||
"""Changes a random gene in the chromosome and resets the fitness."""
|
||||
"""Mutates a random gene in the chromosome and resets the fitness."""
|
||||
chromosome.set_fitness(None)
|
||||
|
||||
# Using the chromosome_impl
|
||||
|
||||
Reference in New Issue
Block a user