Giter Site home page Giter Site logo

snakes_maddpg's Introduction

Snakes MAL

This is the codebase for using the "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments" https://arxiv.org/pdf/1706.02275.pdf code for the classic "snakes" game. This was created as part of my CISC889-010: Multi-Agent Learning class in the Spring of 2019 semester at the University of Delware. I don't support any of the code, but please take a look and hopefully you can gain some insight into what needs to be done to apply maddpg to a different application area. The run_project.py script is the main script that runs the learning algorithm on the simulated enviroment and visualizes it to the user. Please take a look at the test scripts for simpler versions of the code.

snakeclip

Original Codebase Credit

Install Instructions

  1. Create your virtual enviroment

    • pip install virtualenv
    • virtualenv venv
    • source venv/bin/activate
  2. Install dependencies

    • pip3 install pyqtgraph (for fast plotting)
    • pip3 install pyqt5 (for fast plotting)
    • pip3 install numpy
    • pip3 install gym (open ai gym)
    • Ensure you have cuda 9: https://www.tensorflow.org/install/gpu
    • pip3 install tensorflow-gpu==1.9.0 (cuda version 9.0)
  3. Install mgym

  4. Install maddpg

  5. Test our installs:

    • I have included a few test scripts that have minimal example.
    • Run each test script and see if you get any loading errors
    • python3 test_mgym.py
    • python3 test_maddpg.py
    • python3 test_tensorflow.py

snakes_maddpg's People

Contributors

goldbattle 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.