neataptic
neataptic copied to clipboard
New nodes should not get random activation if not allowed
If a network gets mutated from a Neat
instance with mutation.ADD_NODE
, the new node should only get a random activation if mutation.MOD_ACTIVATION
is present in Neat.mutation
.
// Random squash function
node.mutate(mutation.MOD_ACTIVATION);