{"id":14958882,"url":"https://github.com/mishig25/neuroevolution-robots","last_synced_at":"2025-07-28T19:32:25.348Z","repository":{"id":98450053,"uuid":"160480582","full_name":"mishig25/neuroevolution-robots","owner":"mishig25","description":"Neuroevolution demo through TensorFlow.js, Neataptic, and Box2D","archived":false,"fork":false,"pushed_at":"2020-08-03T19:19:05.000Z","size":1870,"stargazers_count":37,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-22T04:31:19.963Z","etag":null,"topics":["evolutionary-algorithms","genetic-algorithm","neural-network","tensorflow","tensorflow-experiments"],"latest_commit_sha":null,"homepage":"https://mishig25.github.io/neuroevolution-robots/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mishig25.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-05T07:47:56.000Z","updated_at":"2024-11-13T09:23:05.000Z","dependencies_parsed_at":"2023-06-01T17:15:26.074Z","dependency_job_id":null,"html_url":"https://github.com/mishig25/neuroevolution-robots","commit_stats":{"total_commits":66,"total_committers":1,"mean_commits":66.0,"dds":0.0,"last_synced_commit":"ec1bcdfafd6a009614826d7bfc8361f41f4339f1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishig25%2Fneuroevolution-robots","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishig25%2Fneuroevolution-robots/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishig25%2Fneuroevolution-robots/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mishig25%2Fneuroevolution-robots/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mishig25","download_url":"https://codeload.github.com/mishig25/neuroevolution-robots/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227951698,"owners_count":17846341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["evolutionary-algorithms","genetic-algorithm","neural-network","tensorflow","tensorflow-experiments"],"created_at":"2024-09-24T13:18:26.795Z","updated_at":"2024-12-03T15:49:03.071Z","avatar_url":"https://github.com/mishig25.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neuroevolution-Bots\nNeuroevolution-Bots is a personal project that demonstrates [neuroevolution](https://en.wikipedia.org/wiki/Neuroevolution) in a browser environment using [TensorFlow.js](https://js.tensorflow.org/), [Neataptic](https://github.com/wagenaartje/neataptic) (for neural nets) and HTML5 Canvas (for graphics). I tried to create a scaled down 2D version of the popular [Gym's Humanoid-v2 environment](https://gym.openai.com/envs/Humanoid-v2/) using [Planck.js](http://piqnt.com/planck.js/), a JavaScript rewrite of Box2D.\n\n![screen capture from demo](https://github.com/mishig25/neuroevolution-robots/raw/master/ss.gif)\n\nThe bots in the simulation have simple brains (neural nets) that control their movements. Input to the brains: bot's head position in the world space and angles of bot's leg and knee joints; output of the brains: rotation forces to bot's leg and knee joints. After every iteration, a fitness function chooses the most fit bots to the next iteration (fitness score of bot: how much the bot traveled to the right + whether bot fell down or not).\n\nTwo variations of neuroevolution are available:\n* [NEAT](http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf) (network architecture and weights are updated) (using [Neataptic.js](https://github.com/wagenaartje/neataptic))\n* Vanilla Neuroevolution (only network weights are updated) (using [Tensorflow.js](https://www.tensorflow.org/js))\n\n## TRY THE DEMO: [here](https://mishig25.github.io/neuroevolution-robots/)\n\nReferences and inspirations:\n* [Uber's blogpost on Deep Neuroevolution](https://eng.uber.com/deep-neuroevolution/)\n* [Evolving AI Lab posts](http://www.evolvingai.org/robotics)\n* [Roboschool by OpenAI](https://github.com/openai/roboschool)\n* [Evolution Simulator by Aditya Thebe](https://github.com/adityathebe/evolutionSimulator)\n* [Tweet by hardmaru](https://twitter.com/hardmaru/status/1007150247829594112?lang=en)\n\nLicense:\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishig25%2Fneuroevolution-robots","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmishig25%2Fneuroevolution-robots","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmishig25%2Fneuroevolution-robots/lists"}