Giter VIP home page Giter VIP logo

nashnet's Introduction

NashNet

A deep neural network to find Nash equilibria of normal-form stage games. The network can be trained for a specific number of players and game shapes (symmetric and asymmetric).

Description

NashNet is a supervised deep neural network that is trained with normal-form stage games and their Nash equilibria to predict the equilibria in new games. The network can be trained for a specific game shape. The shape of the game, however, can be symmetric or asymmetric. The games can also have any number of players. The number of generated equilibria can be one or any desired number based on the settings in the training time.

The loss function and the network architecture are designed in a way that if more than one equilibrium is being generated, they do not replicate each other and try to cover all the true Nash equilibria of the input game. The loss function is following a max-min strategy and the architecture has multiple heads. Because there can be fewer number of Nash equilibria for a game than the generated ones, to combine possibly redundant predictions, the predictions of the neural network are clustered through the DBSCAN method.

More detailed descriptions are added after the pending papers are published.

The Code

NashNet is written in Python, using the Tensorflow 2.1, Keras, and Scikit-learn libraries. To generate the datasets, the Gambit library is used to find the true output values (Nash equilibria) of the regressor network.

The source code can be found under the src directory. To start the training and subsequent testing, run the Run.py. It uses the configurations stored in the Config folder. The trained models are stored in the Model directory, with the model snapshots during the training inside the Model/Interim folder. At the end of the training and testing, the respective report files are saved in the Reports folder.

The file run.sh is designed to run the Run.py multiple times with different training and testing configurations, for which they are stored under the Configs directory. When running the run.sh, the trained models and final test and training reports, with their directory structure, are all saved under the Results folder.

Developers

Pourya Hoseini, Dustin Barnes, and Tapadhir Das

License

Copyright 2019 - 2020, Pourya Hoseini, Dustin Barnes, Tapadhir Das, and the NashNet contributors. Any usage must be with the permission of the authors.

Contact

We can be reached at the following email addresses:

nashnet's People

Contributors

brokndremes avatar dastapadhir avatar pouryahoseini avatar

Watchers

 avatar

Forkers

azimuthadv

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.