Searched refs:mutation_rate (Results 1 – 2 of 2) sorted by relevance
/external/toolchain-utils/bestflags/ |
D | genetic_algorithm.py | 38 def RandomMutate(specs, flag_set, mutation_rate): argument 54 if random.randint(0, int(1 / mutation_rate)): 93 def ReproduceWith(self, other, specs, mutation_rate): argument 139 if mutation_rate: 140 return RandomMutate(specs, FlagSet(output_flags), mutation_rate) 169 mutation_rate): argument 186 GAGeneration.MUTATION_RATE = mutation_rate 245 mutation_rate = GAGeneration.MUTATION_RATE 268 child = mother.ReproduceWith(father, specs, mutation_rate) 280 child = RandomMutate(specs, keep_task.GetFlags(), mutation_rate)
|
D | example_algorithms.py | 107 mutation_rate = DEFAULT_MUTATION_RATE 109 mutation_rate = meta_data[MUTATION_RATE] 118 mutation_rate)
|