neataptic icon indicating copy to clipboard operation
neataptic copied to clipboard

New nodes should not get random activation if not allowed

Open wagenaartje opened this issue 6 years ago • 0 comments

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);

Line 289

wagenaartje avatar Aug 11 '17 11:08 wagenaartje