Git Product home page Git Product logo

mpg_congestion's Introduction

MPG_experiments

The files in this folder generate the plots for the experimental section of the paper (main part and supplementary material).

Main File:

  1. congestionMPG_plots.py: this code implement the policy gradient algorithm. For each policy profile, it has subroutines that estimate the discounted visitation distribution, the value function (of each agent) and the Q-function (of each agent). The stopping criterion is that two successive updates in the policy space do not differ more than a constant in the L1-norm. The constant that we used in the experiments is 10e-16.

Auxiliary Files:

  1. projection_simplex.py: this code does the projection to the simplex in the projected gradient ascent (policy gradient) updates. This file is due to: https://gist.github.com/EdwardRaff/f4f4cf0c927c2addfb39

  2. congestion_games.py: this code creates the class "Congestion Game". Each Congestion Game comprises a set of players, a set of facilities (that the players can choose from) and a set of weights (one for each facility). The methods of the Class and the additional functions mainly aim to calculate the agents' rewards (which in these instances are equal to the number of players at each facility times the weight of that facility).

Other Files:

The files congestionMPG_lrs (lrs = learning rates) and congestionMPG_ord (ord = ordinal MPG) implement the variations of the main experiment (experiment of Section 5 of the main paper) that are shown in the supplementary material. Their structure is very similar to the main file.

mpg_congestion's People

Contributors

sundave1998 avatar

Watchers

 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.