odify genome for the official release

This commit is contained in:
root
2024-07-10 11:24:11 +08:00
parent 075460f896
commit ee8ec84202
83 changed files with 588 additions and 611 deletions

View File

@@ -1,5 +1,5 @@
import jax, jax.numpy as jnp
from utils import Act
from tensorneat.common import Act
from algorithm.neat import *
import numpy as np

View File

@@ -1,5 +1,5 @@
import jax, jax.numpy as jnp
from utils import Act
from tensorneat.common import Act
from algorithm.neat import *
import numpy as np

View File

@@ -27,7 +27,7 @@
"from algorithm.neat.gene.node.kan_node import KANNode\n",
"from algorithm.neat.gene.conn.bspline import BSplineConn\n",
"from problem.func_fit import XOR3d\n",
"from utils import Act\n",
"from tensorneat.utils import Act\n",
"\n",
"import jax, jax.numpy as jnp\n",
"\n",

View File

@@ -1,5 +1,5 @@
import jax, jax.numpy as jnp
from utils import Act
from tensorneat.common import Act
from algorithm.neat import *
import numpy as np

View File

@@ -14,7 +14,7 @@
"outputs": [],
"source": [
"import jax, jax.numpy as jnp\n",
"from utils import State\n",
"from tensorneat.utils import State\n",
"from problem.rl_env import BraxEnv\n",
"\n",
"\n",

View File

@@ -145,7 +145,7 @@
"source": [
"from algorithm.neat.gene.node.normalized import NormalizedNode\n",
"from algorithm.neat.gene.conn import DefaultConnGene\n",
"from utils import Act\n",
"from tensorneat.utils import Act\n",
"\n",
"genome = DefaultGenome(num_inputs=3, num_outputs=2, max_nodes=10, max_conns=10,\n",
" node_gene=NormalizedNode(activation_default=Act.identity, activation_options=(Act.identity,)),\n",