Giter Site home page Giter Site logo

neuralnetworkevolution's Introduction

Neural Network Evolution

Introduction

Training a neural network using evolutionary algorithm as fitness indicator.

Screenshot

Screenshot

Creatures

Each creature has 2 inputs and 2 outputs.

As input: 2 antennas which compute the directional angle towards the closest food source and forwards it to the brain (neural network).

As output it computes the rotation angle and also the speed for the next turn. Note: a creature can only rotate few degrees each turn.

Simulation

The simulation runs for 10 seconds with 150 food sources and an initial population of 100 creature.

Each creature starts with 100 life and loses 10 each second. However if it collects a food source it gains 10 life.

At 0 life it dies.

After the 10 seconds the 10% best and 10% worst performing creatures are put into a pool and are used as parents.

The population gets filled up back to the initial population by creating children.

A child is created by two randomly selected parents and mixing their brains and therefore passing their traits to the next generation.

The simulation is then run for a few generations. Usually after 5-10 generations the children have learned to collect food.

Unity3D 2019.3.11f1

Contact

neuralnetworkevolution's People

Contributors

kibotu avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.