refactor genome.py use (C, 4) to replace (2, N, N) to represent connections

faster, faster and faster!
This commit is contained in:
wls2002
2023-05-12 00:57:55 +08:00
parent e5fc1167d9
commit 47b1a1dbb2
16 changed files with 363 additions and 419 deletions

View File

@@ -4,6 +4,7 @@
"num_outputs": 1,
"problem_batch": 4,
"init_maximum_nodes": 10,
"init_maximum_connections": 10,
"expands_coe": 2,
"pre_compile_times": 3,
"forward_way": "pop_batch"
@@ -13,7 +14,7 @@
"fitness_criterion": "max",
"fitness_threshold": -0.001,
"generation_limit": 1000,
"pop_size": 1000,
"pop_size": 5000,
"reset_on_extinction": "False"
},
"gene": {
@@ -57,9 +58,9 @@
"compatibility_weight_coefficient": 0.5,
"single_structural_mutation": "False",
"conn_add_prob": 0.5,
"conn_delete_prob": 0,
"conn_delete_prob": 0.5,
"node_add_prob": 0.2,
"node_delete_prob": 0
"node_delete_prob": 0.2
},
"species": {
"compatibility_threshold": 2.5,