Commit 5ea90939 authored by Julien Lin's avatar Julien Lin
Browse files

remove unused file

parent 8023e01e
......@@ -99,7 +99,7 @@ def selection(population, population_val, nb_selected):
)
def variation(population, nb_offspring, nb_sensors, domain_width, variation_scale):
def variation(population, nb_offspring, domain_width, variation_scale):
"""
population : is an array of individu. An individu is an np array of size dim * nb sensors.
"""
......@@ -107,7 +107,6 @@ def variation(population, nb_offspring, nb_sensors, domain_width, variation_scal
individual_index = 0
new_population = []
for _ in range(nb_offspring):
individual = population[individual_index]
parent1, parent2 = population[np.random.randint(0,len(population)-1)],population[np.random.randint(0,len(population)-1)]
new_individu = neighb_square((parent1+parent2)/2, variation_scale, domain_width)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment