initial commit in branch developing

This commit is contained in:
wls2002
2023-05-11 19:04:56 +08:00
parent acc9eab64a
commit e2a5117554
41 changed files with 133 additions and 43 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -193,6 +193,13 @@ def pop_analysis(pop_nodes, pop_connections, input_keys, output_keys):
return res
@jit
def count(nodes, connections):
node_cnt = jnp.sum(~jnp.isnan(nodes[:, 0]))
connections_cnt = jnp.sum(~jnp.isnan(connections[0, :, :]))
return node_cnt, connections_cnt
@jit
def add_node(new_node_key: int, nodes: Array, connections: Array,
bias: float = 0.0, response: float = 1.0, act: int = 0, agg: int = 0) -> Tuple[Array, Array]:

View File

@@ -7,7 +7,7 @@ import numpy as np
from .species import SpeciesController
from .genome import expand, expand_single
from .function_factory import FunctionFactory
from .genome.genome import count
class Pipeline:
"""