change project structure and using .ini as config file
This commit is contained in:
@@ -25,10 +25,12 @@ def jax_mutate_population(seed, pop_x):
|
||||
def numpy_mutate_population(pop_x):
|
||||
return np.stack([numpy_mutate(x) for x in pop_x])
|
||||
|
||||
|
||||
def numpy_mutate_population_vmap(pop_x):
|
||||
noise = np.random.normal(size=pop_x.shape) * 0.1
|
||||
return pop_x + noise
|
||||
|
||||
|
||||
def main():
|
||||
seed = jax.random.PRNGKey(0)
|
||||
i = 10
|
||||
@@ -53,5 +55,6 @@ def main():
|
||||
|
||||
i = int(i * 1.3)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user