Git Product home page Git Product logo

gen-ma-bc's Introduction

Generative Multi-Agent Behavioral Cloning

Code is written with PyTorch (Python 3.6.1).

Dataset is available from STATS. A pre-processed version is available here. Download the data into the bball_data/data/ folder.

Example Run

You can edit train_model.sh and run that script, or run train.py directly with command-line parameters.

$ ./train_model.py
$ python sample.py -t 105 -b 10 -n 10
$ python plot.py -t 105 --animate

Trained models for RNN_GAUSS (101), VRNN_SINGLE (102), VRNN_INDEP (103), and our model MACRO_VRNN (104) are included.

Files

model.py contains the models. MACRO_VRNN is our model with macro-goals.

train.py contains the training process, and can be called with train_model.sh.

sample.py is used to sample rollouts from a trained model.

plot.py is used to plot the samples as well as animate them (with --animate flag). --showmacro will display macro-goals, where applicable.

model_utils.py contains functions for sampling and calculating various losses.

bball_data\__init__.py contains the Dataset object.

bball_data\cfg.py contains constants for the data.

bball_data\macro_goals.py is the script used to extract macro-goals. Don't need to run again.

bball_data\utils.py contains the functions for plotting and animating.

gen-ma-bc's People

Contributors

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