Brainiac11 / My-Projects

No newline at end of file FLK-W292
Style
Minor
a year agoa year old
no newline at end of file
1
2for(i) in [1,9,0,13,312,16,0,0,0,0]:
3    x = i**2 +(2*i)+1
4    print(x)
no newline at end of file
151f.close()
152
153    
154    
no newline at end of file
215    snake = Snake(s, genome=None)
216    fitness, score = snake.run()
217
218    print('Fitness: %s, Score: %s' % (fitness, score))
no newline at end of file
28    return np.exp(x) / np.sum(np.exp(x), axis=0)
29
30  def leaky_relu(self, x):
31    return np.where(x > 0, x, x * 0.01)
no newline at end of file
81      if random.uniform(0, 1) < PROB_MUTATION:
82        new_genome.w4 += new_genome.w4 * np.random.normal(mean, stddev, size=(10, 3)) / 100 * np.random.randint(-1, 2, (10, 3))
83
84      genomes.append(new_genome)