Skip to main content

pip install margingame

This package is mainly for just one class, Initialise(...). You can:

  • Pass in non-default parameters for a custom game.
  • Get attributes, notably payoff matrices as Pandas dataframes.
  • Use the method to calculate the Nash equilibria.

See the code, notably Initialise.py, for more info.

Main Uses

Interactive payoff matrices for both players

  1. In a .ipynb file, run the code `from margingame.notebook.visualise import visualise`.
  2. Install any missing packages flagged by an error if there are any (this is due to a bug).
  3. Run `visualise()`.

Notes

  • You can click the left margin of the output cell to expand/truncate it.
  • Changing the domains of the payoff matrices is achieved by passing the relevant arguments into `visualise`.
  • It's slow, I know.

Calculate the nash equlibria

  1. Run the code `from margingame.Initialise import Initialise'.
  2. Create your game with `Game = Initialise(...)', specifying any non-default parameters desired.
  3. Calculate the nash equlibria via support enumeration via `Game.calculate_equilibria_support_enum()`.

Metadata

Release files for margingame 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for margingame 0.3.4
File Size Uploaded Provenance
margingame-0.3.4.tar.gz 4.9 kB Without provenance Details

Release files / margingame-0.3.4.tar.gz

Download URL margingame-0.3.4.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
392161cc3504ef0ce0d8cb8d498e7ca58232e370eca0ac5fb6ae1f6417a0439e
BLAKE2b-256 checksum
How to use checksums
025e705015a308b4fef1a8e2c4aa16a8786c031c1296015d846a63f4f720de3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Security for margingame 0.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page