Skip to content

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

Open
Timfa2112 wants to merge 1 commit intocarykh:masterfrom
Timfa2112:master
Open

Add extra neuron for heartbeat, add heartbeat for continuous motion#12
Timfa2112 wants to merge 1 commit intocarykh:masterfrom
Timfa2112:master

Conversation

@Timfa2112
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.
@Timfa2112
Copy link
Author

Test results:
gen180
gen251
gen763
gen1042

@MauroMombelli
Copy link

MauroMombelli commented Jul 14, 2017 via email

@Timfa2112
Copy link
Author

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

@Timfa2112
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

@Timfa2112
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.

3 participants