Commit Graph

174 Commits

Author SHA1 Message Date
root
51cb4695af fix bugs 2024-07-10 16:50:36 +08:00
root
4cdac932d3 refactor folder locations 2024-07-10 16:40:03 +08:00
root
3170d2a3d5 update gene 2024-07-10 16:33:18 +08:00
root
649d4b0552 update recurrent genome 2024-07-10 16:27:49 +08:00
root
1d606eb1c3 fix bug;
feat: Add support for max_nodes and max_conns in DefaultGenome initialization
2024-07-10 11:30:20 +08:00
root
ee8ec84202 odify genome for the official release 2024-07-10 11:24:11 +08:00
wls2002
075460f896 fix bugs 2024-06-20 16:32:52 +08:00
wls2002
9f72813c35 rename the "advance" and "AdvanceInitialize" to "hidden" and "HiddenInitialize" 2024-06-18 16:02:26 +08:00
wls2002
ce8015d22c modify act funcs and sympy act funcs;
add dense and advance initialize genome;
add input_transform for genome;
2024-06-18 16:01:11 +08:00
wls2002
907314bc80 update "show" in brax 2024-06-16 22:28:28 +08:00
wls2002
fb2ae5d2fa add save function in pipeline 2024-06-16 21:47:53 +08:00
wls2002
b9d6482d11 add obs normalization for rl env 2024-06-14 16:11:50 +08:00
wls2002
aac9f4c3fb Try to reduce difference between sympy formula and network.
Spend a whole night. Failed;
I'll never try it anymore.
2024-06-13 07:07:43 +08:00
wls2002
69d73aab73 add backend="jax" to sympy module 2024-06-13 05:55:33 +08:00
wls2002
b3e442c688 add sympy support; which can transfer your network into sympy expression;
add visualize in genome;
add related tests.
2024-06-12 21:36:35 +08:00
wls2002
dfc8f9198e add repr for genome and gene;
add ipynb test for testing whether add node or add conn will not change the output for the network.
2024-06-09 22:32:29 +08:00
wls2002
52e5d603f5 add save and load function for classes. 2024-06-09 20:33:02 +08:00
wls2002
374c05f5b7 Merge remote-tracking branch 'origin/remove_enable' into remove_enable
# Conflicts:
#	tensorneat/examples/func_fit/xor_kan.py
2024-06-07 17:10:22 +08:00
wls2002
3d5b80c6fa add action_policy for problem; 2024-06-07 17:09:16 +08:00
WLS2002
235b1f3c74 delete unreleased example 2024-06-05 14:27:54 +08:00
wls2002
10ec1c2df9 add jumanji env;
add repeat times for rl_env
2024-06-05 14:24:17 +08:00
wls2002
edfb0596e7 add input_transform and update_input_transform;
change the args for genome.forward.
Origin: (state, inputs, transformed)
New: (state, transformed, inputs)
2024-06-03 10:53:15 +08:00
wls2002
a07a3b1cb2 add KNN 2024-06-02 19:38:48 +08:00
wls2002
e65200a94e modify the behavior for mutate_add_node and mutate_add_conn. Currently, this two mutation will just change the structure of the network, but not influence the output for the network. 2024-06-01 20:42:42 +08:00
wls2002
4ad9f0a85a remove attr enable for conn 2024-05-31 22:06:25 +08:00
wls2002
d6e9ff5d9a fix bug in restore genome. 2024-05-31 19:43:14 +08:00
wls2002
bc8267bad0 fix bug for using state.randkey in mutate of the gene 2024-05-31 16:18:02 +08:00
wls2002
3a7d05f133 show the node cnt and conn cnt in pipeline;
mutate add node or add conn will not happen when there is no enough space for new nodes or conns.
2024-05-31 16:07:23 +08:00
wls2002
47b1cacb57 fix bug for record the best genome. 2024-05-31 15:36:47 +08:00
wls2002
6aa9011043 modify pipeline for "update_by_data";
fix bug in speciate. currently, node_delete and conn_delete can successfully work
2024-05-31 15:32:56 +08:00
wls2002
3ea9986bd4 add "update_by_batch" in genome;
add "normalized" gene, which can do normalization before activation func.
add related test.
2024-05-30 23:12:11 +08:00
wls2002
5bd6e5c357 add "update_by_batch" in gene;
add flatten_conns as an inverse function for unflatten_conns;
add "test_flatten.ipynb" as test for them.
2024-05-30 19:44:52 +08:00
wls2002
cd92f411dc add args record_episode in rl tasks, with related test "test_record_episode.ipynb";
add args return_data in func_fit tasks.
2024-05-30 17:05:56 +08:00
wls2002
20320105e6 move crossover_gene from ga.crossover to gene.basegene. 2024-05-30 15:06:08 +08:00
wls2002
9f6154d128 update HyperNEAT;
All example can currently run!
2024-05-26 19:51:22 +08:00
wls2002
18c3d44c79 complete fully stateful!
use black to format all files!
2024-05-26 18:08:43 +08:00
wls2002
cf69b916af use black format all files;
remove "return state" for functions which will be executed in vmap;
recover randkey as args in mutation methods
2024-05-26 15:46:04 +08:00
wls2002
79d53ea7af All function with state will update the state and return it.
Remove randkey args in functions with state, since it can attach the randkey by states.
2024-05-25 20:45:57 +08:00
wls2002
5626fddf41 add params key into setup. 2024-05-25 17:00:20 +08:00
wls2002
bc378cec7f make fully stateful in module ga. 2024-05-25 16:54:19 +08:00
wls2002
c0a7503168 make fully stateful in module ga. 2024-05-25 16:47:25 +08:00
wls2002
485d481745 make fully stateful in module genome. 2024-05-25 16:19:06 +08:00
wls2002
625c261a49 make fully stateful in module gene. 2024-05-25 16:13:41 +08:00
wls2002
3b2f917aee update class State. Add method register and update method update. 2024-05-25 16:05:47 +08:00
wls2002
25f66dc2fb re-add all files 2024-05-24 20:16:07 +08:00
wls2002
1165819df9 add gitignore 2024-05-24 20:14:20 +08:00
WLS2002
542b8efd73 Merge pull request #4 from EMI-Group/advance
add step_limit to rl envs; 
add more initialize methods;
2024-05-24 19:43:03 +08:00
WLS2002
3547aa4c66 Merge branch 'main' into advance 2024-05-24 19:42:03 +08:00
wls2002
1fe5d5fca2 disable activation in the output node of network;
we recommend to use output_transform;
change hyperparameters (strong) in XOR example;
2024-05-22 11:09:25 +08:00
wls2002
bb80f12640 Merge remote-tracking branch 'origin/main' 2024-05-22 10:27:50 +08:00