GithubHelp home page GithubHelp logo

carykh / evolutionsteer Goto Github PK

View Code? Open in Web Editor NEW
94.0 94.0 43.0 107 KB

Evolution simulator of creatures learning how to steer towards food pellets better and better.

License: MIT License

Processing 100.00%

evolutionsteer's People

Contributors

carykh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

evolutionsteer's Issues

Network pool

as of the work from @alamaz, it could be possible to create a platform to share the creature.

My proposal is the following:

the current best 5 creature FOR TYPE for the server is uploaded to github or similar service, where all the client can download it.

Client will replace part of their dead pool with the current best.

When a creature better than the actual champion is found, the client will store it in a "upload pool"

once every X seconds (depending on sever load?) one creature from the upload pool is uploaded to the server, that will run a series of run to verify the results.

If verified, the new creature will be publish as one of the current champions. All older champions will be stored in memory of the old time (and for later cool analysis).

A well defined series of limitation must be in place: how many type we should have (maximum number of nodes), maximum runtime for round or time required to achieve the maximum score, the json savefile must be max X bytes (to be estimate) and NOT compressed (to avoid decopression bomb).

for anti-dossing, i havo no idea rather than using some sort of account or maybe you register your github repo, and the server will pool for modification.. that will take away the need for the upload pool, a user can save as much as he want, and json as text is perfect to follow the diff!

Node & Muscle Species Names

I'd love the code (or tips, new to Python) to get species analyzed by Node and Muscle count again. And maybe some kind of Axon count or something? That is, instead of grouping by patrons.

[Idea] Saving your creatures

I currently don't have the time to create it myself, but in your video, you said something about that you want to be able to save your progress. You can do this with a lot of things, I suggest using saveTable (https://processing.org/reference/saveTable_.html) and just have every creature return a tableRow with all muscles, nodes and brain in it. This would be useful if anyone has a bug, they can simply share their creatures with you and you can also share the creatures you made in the video with your viewers.

It's not working.

I download it from this site, i have Processing 3.5.3, I open this and this is not working, it display that size cannot be use there.

Make so Dominant creature will never go over 500

Heya! i love your Evulotion simulator, so i just have a small request.

Just make so the dominant Creature never go over 500.
This way we will still have new creatures, with new innervation, and hopefully will spread to the genepole.

So in short, still have 1000 creatures, just that the dominant cant go over 500.

Lots of love, Thanks! :D

alamaz's version error

i downloaded the improvec version von alamaz

when i try to run it i get this error in my processing:

"The method nf(float, int, int) in the type PApplet is not applicable for the arguments (float)

on the line

1065 text("Gift: +"+nf(giftForChompSec)+" seconds", 700, 145);

please help me guys, i really want to run this :/

Fitness bug?

Extremely odd bug, only encountered one time.

image

Pretty terrible evolution, only projectiles. However I had a spike of 9 fitness and found that midway through jump its chomps rapidly flickered ranging from 0.5 to 17.5 rapidly and then stopped at 8.9 and recorded that in the chart.

use distSquared instead of dist()

Calculating the root is a computational heavy operation; you should avoid it if possible, and most of the case it is.

When checking 2 distances, using their square lead to similar results; if against constant, just square the constant.

In some case like in Node.pde you take the distance, and the you multiply it by itself again:

float acc = dist(vx,vy,vz,pvx,pvy,pvz);
totalNodeNausea += acc*acc*nauseaUnit;

edit: i look at the code, the bottleneck is the sigmoid function, about 1200nanosecond while all the rest of the creature similation takes 2000 nansoseconds.

If a way to speed up that pow is found, the somulation can run much faster.

Crashes when trying to run

java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 3
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:206)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172)
at javax.media.opengl.Threading.invoke(Threading.java:191)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:541)
at processing.opengl.PJOGL.requestDraw(PJOGL.java:688)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1651)
at processing.core.PApplet.run(PApplet.java:2256)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
at evolutionSteer.getNewCreatureName(evolutionSteer.java:1588)
at evolutionSteer$Creature.(evolutionSteer.java:1858)
at evolutionSteer.draw(evolutionSteer.java:1044)
at processing.core.PApplet.handleDraw(PApplet.java:2386)
at processing.opengl.PJOGL$PGLListener.display(PJOGL.java:862)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:665)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:649)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1289)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1119)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:994)
at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1300)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

processing 3.x support

The size() function is required to be in the function "settings()" as https://processing.org/reference/settings_.html

I have no idea how to make dual support for processing 2 and 3, but as processing stop the execution indicating the size() function call, you may add a little comment to explain the issue.

Your future yourself will thank you when you'll update processing

make neural network a sub project

hi,
could you please extract the logic of the NN from the specific logic of the steering game? if you put it in another project, then you can use that project with a git "submodule".

That would help you and us to develop a stable and optimized lib for your test, without having to reinvent the wheel (ah!) every time

Cant get it to run?

It is saying that I need to move the evolutionSteer file into its own folder? and once i try to run that file it says it can't find the creature class?

I cant run it

I have processing 3.3 .. is that the problem? if it is then make a README file mentioning that please :D
screenshot from 2017-06-19 11-04-15

Rectangle PDE problem

Processing 2.2.1, when hit Run button, this error shows up: The nested type Rectangle cannot hide an enclosing type.

Question

Is there a way to open the actual thing in GitHub Desktop?

It won't work.

I got the program to open but it says that evolutionsteer is not responding.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.