Sephfox commited on
Commit
23c547f
1 Parent(s): b42f263

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ class GeneticAlgorithm:
52
  self.population = [self.population[i] for i in np.argsort(fitness)[-self.population_size//2:]]
53
 
54
  def crossover(self):
55
- offspring = []
56
  for _ in range(self.population_size//2):
57
  parent1, parent2 = random.sample(self.population, 2)
58
  child = Net()
 
52
  self.population = [self.population[i] for i in np.argsort(fitness)[-self.population_size//2:]]
53
 
54
  def crossover(self):
55
+ offspring = []
56
  for _ in range(self.population_size//2):
57
  parent1, parent2 = random.sample(self.population, 2)
58
  child = Net()