add feedforward substrate and hyperneat and related example;

see https://github.com/EMI-Group/tensorneat/issues/9;
fix bugs in genome visualize (add plt.close())
This commit is contained in:
wls2002
2024-11-23 15:32:28 +08:00
parent 5fdaf6806c
commit 1b7e49293a
13 changed files with 1565 additions and 1 deletions

View File

@@ -3,6 +3,9 @@ from .default import DefaultSubstrate
class FullSubstrate(DefaultSubstrate):
connection_type = "recurrent"
def __init__(
self,
input_coors=((-1, -1), (0, -1), (1, -1)),
@@ -60,6 +63,7 @@ def analysis_substrate(input_coors, output_coors, hidden_coors):
) # input_idx, output_idx, weight
conns[:, :2] = correspond_keys
print(query_coors, nodes, conns)
return query_coors, nodes, conns