initial commit in branch developing
This commit is contained in:
BIN
algorithms/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
algorithms/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
algorithms/neat/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/__pycache__/function_factory.cpython-311.pyc
Normal file
BIN
algorithms/neat/__pycache__/function_factory.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/__pycache__/pipeline.cpython-311.pyc
Normal file
BIN
algorithms/neat/__pycache__/pipeline.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/__pycache__/species.cpython-311.pyc
Normal file
BIN
algorithms/neat/__pycache__/species.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/__init__.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/activations.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/activations.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/aggregations.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/aggregations.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/crossover.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/crossover.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/distance.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/distance.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/forward.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/forward.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/genome.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/genome.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/graph.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/graph.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/mutate.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/mutate.cpython-311.pyc
Normal file
Binary file not shown.
BIN
algorithms/neat/genome/__pycache__/utils.cpython-311.pyc
Normal file
BIN
algorithms/neat/genome/__pycache__/utils.cpython-311.pyc
Normal file
Binary file not shown.
@@ -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]:
|
||||
|
||||
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user