initialize methods

This commit is contained in:
Priokin
2024-05-21 14:34:01 +08:00
parent 0e89ed1d7c
commit 40b7d8360c
46 changed files with 222 additions and 40 deletions

View File

@@ -26,6 +26,17 @@ class DefaultConnGene(BaseConnGene):
def new_custom_attrs(self):
return jnp.array([self.weight_init_mean])
def new_random_attrs(self, key):
return jnp.array([mutate_float(key,
self.weight_init_mean,
self.weight_init_mean,
1.0,
0,
0,
1.0,
)
])
def mutate(self, key, conn):
input_index = conn[0]