Skip to content
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
Choose a base branch
from

Conversation

Master2112
Copy link

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.

Note: This also causes an extra unneccesary neuron to be created in the output layer, but this should be harmless.
@Master2112
Copy link
Author

Test results:
gen180
gen251
gen763
gen1042

@MauroMombelli
Copy link

MauroMombelli commented Jul 14, 2017 via email

@Master2112
Copy link
Author

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

@Master2112
Copy link
Author

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
Copy link
Author

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
Copy link

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants