Sephfox commited on
Commit
494dd8d
1 Parent(s): a592260

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
  if len(fitness) > 0:
45
  self.population = [self.population[i] for i in np.argsort(fitness)[-self.population_size//2:]]
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
  if len(fitness) > 0:
45
  self.population = [self.population[i] for i in np.argsort(fitness)[-self.population_size//2:]]
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()