Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add extra neuron for heartbeat, add heartbeat for continuous motion #12
In the video, you can see that only using the distance from a node to the food will cause the input to never change once the creature is stationary. Only some twitching will cause a creature to keep moving, which is an unintentional side-effect of the physics engine.
Creating an extra node with a "heartbeat" will cause the input to constantly fluctuate, which gives the brain something to grab a hold of for continuous movement.
Tested locally to approx. gen 100, and already interesting results can be seen, with creatures almost walking, in a sense.
Note: Due to how the brain is created, this also causes an extra unneccesary neuron to be created in the output layer, but this should be harmless. I'm not completely familiar with the neural network code though, and this might require checking to make sure.
Would be also interesting to force one for each tile to survive, maybe as mutation of the best fit…
On Fri, 14 Jul 2017, 18:31 Tim Falken, ***@***.***> wrote: Test results: [image: gen180] <https://user-images.githubusercontent.com/2089232/28221195-a909089a-68c2-11e7-819f-e839c41b2578.png> [image: gen251] <https://user-images.githubusercontent.com/2089232/28221203-ac02c00e-68c2-11e7-9640-2a516afb5c85.png> [image: gen763] <https://user-images.githubusercontent.com/2089232/28221207-ae73f74a-68c2-11e7-81e2-8c8c48870d11.png> [image: gen1042] <https://user-images.githubusercontent.com/2089232/28221210-b0dcf518-68c2-11e7-9807-c39d8e33c29e.png> — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#12 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AGE80RY9Z3tSmavYlPVd1sFu5OUKGvy_ks5sN5f8gaJpZM4OYV94> .