Sephfox commited on
Commit
ad9e704
1 Parent(s): 9ed5b44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ class GeneticAlgorithm:
44
  self.population = [self.population[i] for i in np.argsort(fitness)[-self.population_size//2:]]
45
 
46
  def crossover(self):
47
- offspring = []
48
  for _ in range(self.population_size//2):
49
  parent1, parent2 = random.sample(self.population, 2)
50
  child = Net()
 
44
  self.population = [self.population[i] for i in np.argsort(fitness)[-self.population_size//2:]]
45
 
46
  def crossover(self):
47
+ offspring = []
48
  for _ in range(self.population_size//2):
49
  parent1, parent2 = random.sample(self.population, 2)
50
  child = Net()