Sephfox commited on
Commit
32d3e1d
·
verified ·
1 Parent(s): 0bef069

Update app.py

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