Code Monkey home page Code Monkey logo

marl__masac-mad4pg's Introduction

Build Status Codacy Badge Codacy Badge

TensorFlow 2 Implementation of Multi-Agent Reinforcement Learning Approaches

This repository contains a modular TF2 implementations of multi-agent versions of the RL methods DDPG (MADDPG), TD3 (MATD3), SAC (MASAC) and D4PG (MAD4PG). It also implements prioritized experience replay.

In our experiments we found MATD3 to work the best and did not see find a benefit by using Soft-Actor-Critic or the distributional D4PG. However, it is possible that these methods may be benefitial in more complex environments, while our evaluation here focussed on the multiagent-particle-envs by openai.

Code Structure

We provide the code for the agents in tf2marl/agents and a finished training loop with logging powered by sacred in train.py.

We denote lists of variables corresponding to each agent with the suffix _n, i.e. state_n contains a list of n state batches, one for each agent.

Useage

Use python >= 3.6 and install the requirement with

pip install -r requirements.txt

Start an experiment with

python train.py

As we use sacred for configuration management and logging, the configuration can be updated with their CLI, i.e.

python train.py with scenario_name='simple_spread' num_units=128 num_episodes=10000

and experiments are automatically logged to results/sacred/, or optionally also to a MongoDB. To observe this database we recommend to use Omniboard.

Acknowledgement

The environments in /tf2marl/multiagent are from multiagent-particle-envs by openai with the exception of inversion.py and maximizeA2.py, which I added for debugging purposes.

The implementation of the segment tree used for prioritized replay is based on stable-baselines

marl__masac-mad4pg's People

Contributors

johannesack avatar hbyacademic avatar johnsonjiang1996 avatar codacy-badger 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.