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

6
test/mlp_substrate.py Normal file
View File

@@ -0,0 +1,6 @@
from tensorneat.algorithm.hyperneat.substrate.mlp import MLPSubstrate, analysis_substrate
layers = [3, 4, 2]
coor_range = (-1, 1, -1, 1)
nodes = analysis_substrate(layers, coor_range)
print(nodes)