Skip to main content

A Python package for implementing and solving Network form games.

Project description

PyNFG is a Python package for modeling and solving Network Form Games. It is distributed under the GNU Affero GPL. http://www.gnu.org/licenses/agpl.html

1. Welcome

PyNFG is designed to make it easy for researchers to model strategic environments using the Network Form Game (NFG) formalism developed by David Wolpert with contributions from Ritchie Lee, James Bono and others. The main idea of the NFG framework is to translate a strategic environment into the language of probabilistic graphical models. The result is a more intuitive, powerful, and user-friendly framework than the extensive form.

For an introduction to the semi-NFG framework and Level-K D-Relaxed Strategies:

  • Lee, R. and Wolpert, D.H., “Game-Theoretic Modeling of Human Behavior in Mid-Air Collisions”, Decision-Making with Imperfect Decision Makers, T. Guy, M. Karny and D.H.Wolpert (Ed.’s), Springer (2011).

For an introduction to iterated semi-NFG framework and Level-K Reinforcement Learning:

  • Ritchie Lee, David H. Wolpert, James Bono, Scott Backhaus, Russell Bent, Brendan Tracey. “Counter-Factual Reinforcement Learning: How to Model Decision-Makers That Anticipate The Future.” http://arxiv.org/abs/1207.0852

  • Scott Backhaus, Russell Bent, James Bono, Ritchie Lee, Brendan Tracey, David Wolpert, Dongping Xie, Yildiray Yildiz “Cyber-Physical Security: A Game Theory Model of Humans Interacting over Control Systems.” http://arxiv.org/abs/1304.3996

For an introduction to Predictive Game Theory:

2. Installation

PyNFG requires the following packages: Numpy, Scipy, Matplotlib, Networkx, and PyGraphviz. Pygraphviz and Networkx are used only for visualizing the Directed Acyclic Graphs (DAGs) that represent semi-NFGs.

To install from source: Download the source from https://pypi.python.org/pypi/PyNFG/0.1.0. Unzip. Then from the directory with the unzipped files, do “python setup.py install”.

3. Questions and Comments

The documentation is hosted at http://pythonhosted.org/PyNFG/.

Please contact James Bono for questions about using PyNFG in your research, reporting bug fixes, offering suggestions, etc.

4. Contributors

PyNFG is authored by James Bono with contributions by Dongping Xie. The project has received valuable feedback from Justin Grana, David Wolpert, Adrian Agogino, Juan Alonso, Brendan Tracey, Alice Fan, Dominic McConnachie, Kee Palopo, Huu Huynh, and others.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyNFG-0.1.1.1.tar.gz (185.7 kB view details)

Uploaded Source

File details

Details for the file PyNFG-0.1.1.1.tar.gz.

File metadata

  • Download URL: PyNFG-0.1.1.1.tar.gz
  • Upload date:
  • Size: 185.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyNFG-0.1.1.1.tar.gz
Algorithm Hash digest
SHA256 9212fa9d9013e10e752b2817f8eb87e37b88888d2dcd5d1d94af50681f89add2
MD5 49b042ac4f66858ee14a736bf39c2223
BLAKE2b-256 895a6d638f273df60912acadad70fe056b368d2b64e2d1d2c205b9a0f694c4fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page