Coder Social home page Coder Social logo

leloykun / sequential-game-theory-simulations Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 92.02 MB

A study on the social behavior of reinforcement learning agents

License: MIT License

Python 1.09% Jupyter Notebook 98.90% C++ 0.01%
machine-learning reinforcement-learning social-behavior

sequential-game-theory-simulations's Introduction

Simulations of Sequential Games with Multi-agent Reinforcement Learning

Pisay Build Status Codacy Badge Codacy Badge

Simulations on the collective behavior of reinforcement learning agents

NOTE: This project is not finished yet. See the older version here.

Gettting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Language

Python 3.x (preferably python 3.5)

Installation

Download or clone the repository using the big green button on the upper-right corner of the page or by using git:

git clone git://github.com/leloykun/socialsims.git

or

git clone https://github.com/leloykun/socialsims.git

Libraries

Install the required libraries with pip:

pip install -r requirements.txt

or

pip3 install -r requirements.txt

Running the simulations

You can run all of the simulations in one go with:

python main.py

The raw data for each simulation can be found in data/raw/[name of simulation]

Testing

Just run

pytest

Turning on the visuals

The visuals are turned off by default to speed up the simulations.

To turn them on, simply uncomment the line with env.show() in the source code of each simulation:

# env.show()
env.show()

This is NOT recommended.

TODO: centralize this option

Running the simulations individually

You can comment out the simulations in src/sims/list.txt to exclude them from being run by portal.py. For example, with the following, only simulation cat-mouse would be run with parameters 100 10 10 as [runs] [trials] [steps].

# cat-mouse [runs] [trials] [steps]
cat-mouse 10 100 10

# cat-mouse-cheese [runs] [timesteps] [interval]
# cat-mouse-cheese 10 10000 100

# simple-migration [runs] [timesteps] [temp_powers]
# simple-migration 10 10000 5

# route-choice [runs] [timesteps] [num_drivers] [[road capacities]]
# route-choice 10 1000 100 10 20 30 40

# migration [runs] [timesteps] [num_mice]
# migration 1 100000 3

TODO: fix this

Data Analysis

TODO

Details

TODO

TODO move this part to 'wiki'

Reinforcement Learning

TODO

Simulations on Specialization

TODO

Simulations on Migration

TODO

Simulations on Cooperation

TODO

Results and Discussion

TODO

TODO use seaborn facet grid to graph data

Developer

  • Franz Louis Cesista
  • Grade 12 student from Philippine Science High School - Eastern Visayas Campus
  • Machine Learning enthusiast

sequential-game-theory-simulations's People

Contributors

codacy-badger avatar leloy-runner avatar leloykun avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sequential-game-theory-simulations's Issues

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.