This commit is related to issue: https://github.com/EMI-Group/tensorneat/issues/11
1. Add origin_node and origin_conn. 2. Change the behavior of crossover and mutation. Now, TensorNEAT will use all fix_attrs(include historical marker if it has one) as identifier for gene in crossover and distance calculation. 3. Other slightly change. 4. Add two related examples: xor_origin and hopper_origin 5. Add related test file.
This commit is contained in:
@@ -30,7 +30,8 @@ pipeline.show(state, best)
|
||||
|
||||
# visualize the best individual
|
||||
network = algorithm.genome.network_dict(state, *best)
|
||||
algorithm.genome.visualize(network, save_path="./imgs/xor_network.svg")
|
||||
print(algorithm.genome.repr(state, *best))
|
||||
# algorithm.genome.visualize(network, save_path="./imgs/xor_network.svg")
|
||||
|
||||
# transform the best individual to latex formula
|
||||
from tensorneat.common.sympy_tools import to_latex_code, to_python_code
|
||||
|
||||
Reference in New Issue
Block a user