change project structure and using .ini as config file

This commit is contained in:
wls2002
2023-06-15 11:05:26 +08:00
parent 47fb0151f4
commit acedd67617
30 changed files with 97 additions and 301 deletions

View File

@@ -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()