Coder Social home page Coder Social logo

iurerosa / emergent-multiagent-strategies Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ankur-deka/emergent-multiagent-strategies

0.0 0.0 0.0 31.35 MB

Emergence of complex strategies through multiagent competition

License: MIT License

Python 100.00%

emergent-multiagent-strategies's Introduction

Emergent Multiagent Strategies

Ankur Deka and Katia Sycara

Robotics Institute, Carnegie Mellon University

This is the official repository of the paper Natural Emergence of Heterogeneous Strategies in Artificially Intelligent Competitive Teams, presented in a spotlight talk in Robotics Science and Systems (RSS) 2020 workshop on Heterogeneous Multi-Robot Task Allocation and Coordination. Increasingly complex multiagent strategies can emerge naturally through competition in a mixed cooperative-competitive environment.

Installation

I have tested the code on Ubuntu 16.04 and 18.04. See requirements.txt file for the list of dependencies. Create an anaconda environment or virtualenv with python 3.6 and setup everything by executing pip install -r requirements.txt.

conda create -n fortattack python=3.6 pip
conda activate fortattack
pip install -r requirements.txt

Training

Joint Training

python train_fortattack.py --save-dir tmp_3
See arguments.py file for the list of various command line arguments one can set while running the scripts.

Ensemble Training of Guards

python train_fortattack_v2.py --train-guards-only --pretrained-guard --guard-load-dir tmp_1 --guard-ckpt 2520 --attacker-load-dir tmp_1 --attacker-ckpts 220 650 1240 1600 2520 --save-dir tmp_4 --render

Testing

Joint training results

python test_fortattack.py --test --load-dir tmp_1 --ckpt 220

Ensemble training results

python test_fortattack_v2.py --test --train-guards-only --num-eval-episodes 10 --load-dir tmp_2 --ckpt 5050 --attacker-load-dir tmp_1 --attacker-ckpts 220 --render

Trained models

I have provided some pretrained models in marlsave directory

  1. tmp_1: normal training results. Multiagent strategies corresponding the checkpoints are as follows. Please refer to the paper for details of these strategies.

    1. ep220: Flash laser strategy of guards
    2. ep650: Sneaking strategy of attackers
    3. ep1240: Spreading and flashing strategy of attackers
    4. ep1600: Sneaking strategy of attackers
    5. ep2520: Smartly spreading strategy of guards
  2. tmp_2/ep5050.pt: Guards' policy after ensemble training

Citing

If you use our code in your research, please cite our paper:
@article{deka2020natural, title={Natural Emergence of Heterogeneous Strategies in Artificially Intelligent Competitive Teams}, author={Deka, Ankur and Sycara, Katia}, journal={arXiv preprint arXiv:2007.03102}, year={2020} }

Contact

For any queries, feel free to raise an issue or contact me at [email protected] or [email protected].

Acknowledgment

The environment is built up on MAPE

The algorithm for this repo is built up on marl_transfer

License

This project is licensed under the MIT License.

emergent-multiagent-strategies's People

Contributors

ankur-deka 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.