Exemplo n.º 1
0
 def setUp(self):
     self.atom_gens = [lambda: np.random.random()]
     self.R = Spawner(self.atom_gens)
     self.pop = p.Population()
     self.pop.append(p.Individual(self.R.random_plush_genome(5)))
     self.pop.append(p.Individual(self.R.random_plush_genome(5)))
     self.pop.append(p.Individual(self.R.random_plush_genome(5)))
Exemplo n.º 2
0
 def setUp(self):
     self.R = Spawner(atom_gens)
     self.i1 = p.Individual(self.R.random_plush_genome(5))
     self.i2 = p.Individual(self.R.random_plush_genome(5))
Exemplo n.º 3
0
 def setUp(self):
     self.atom_gens = [
         lambda: np.random.random(),
     ]
     self.R = Spawner(self.atom_gens)
     self.i = p.Individual(self.R.random_plush_genome_with_size(4))