evolutionSteer icon indicating copy to clipboard operation
evolutionSteer copied to clipboard

Add extra neuron for heartbeat, add heartbeat for continuous motion

Open Timfa2112 opened this issue 7 years ago • 6 comments

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.

Timfa2112 avatar Jul 14 '17 14:07 Timfa2112

Test results: gen180 gen251 gen763 gen1042

Timfa2112 avatar Jul 14 '17 16:07 Timfa2112

I don't think I completely understand what you mean, could you elaborate?

Timfa2112 avatar Jul 14 '17 16:07 Timfa2112

Creature test (after a few thousand generations)

First test: https://youtu.be/KV1vOkai8D0 Second test: (my favorite) https://www.youtube.com/watch?v=ysaBrH9H9LE

Timfa2112 avatar Jul 14 '17 21:07 Timfa2112

I let that second version run until just now (About two days total I think?) Generation 11638 Creature video: https://youtu.be/qfih-HPXQzI

Timfa2112 avatar Jul 15 '17 16:07 Timfa2112

This is a great modification!! After merging into my branch, i instantly reached 100 chomps in less than 100 generations (in straight line). I think this is the most natural solution for solving the jumper creature problem! See you Joseph

capture d ecran 2017-07-29 a 08 04 29

alamaz avatar Jul 29 '17 06:07 alamaz