New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra neuron for heartbeat, add heartbeat for continuous motion #12

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@Master2112

Master2112 commented Jul 14, 2017

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.

Add extra neuron for heartbeat, add heartbeat
Note: This also causes an extra unneccesary neuron to be created in the output layer, but this should be harmless.
@Master2112

This comment has been minimized.

Master2112 commented Jul 14, 2017

Test results:
gen180
gen251
gen763
gen1042

@MauroMombelli

This comment has been minimized.

MauroMombelli commented Jul 14, 2017

@Master2112

This comment has been minimized.

Master2112 commented Jul 14, 2017

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

@Master2112

This comment has been minimized.

Master2112 commented Jul 14, 2017

Creature test (after a few thousand generations)

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

@Master2112

This comment has been minimized.

Master2112 commented Jul 15, 2017

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

@alamaz

This comment has been minimized.

alamaz commented Jul 29, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment