margingame 0.3.2
pip install margingame==0.3.2
Newer version available (0.3.4)
Released:
A package for the margin game.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: WillDudley
Classifiers
- License
- Operating System
- Programming Language
Project description
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
- In a .ipynb file, run the code `from margingame.notebook.visualise import visualise`.
- Install any missing packages flagged by an error if there are any (this is due to a bug).
- 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
- Run the code `from margingame.Initialise import Initialise'.
- Create your game with `Game = Initialise(...)', specifying any non-default parameters desired.
- Calculate the nash equlibria via support enumeration via `Game.calculate_equilibria_support_enum()`.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: WillDudley
Classifiers
- License
- Operating System
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file margingame-0.3.2.tar.gz
.
File metadata
- Download URL: margingame-0.3.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9ca048ddb2057ed3da06578a885829ad193adfdb1e7a6cc43e4ee07063b492 |
|
MD5 | c8f7f951710347896d72815be981b577 |
|
BLAKE2b-256 | a8bc5f959a3745907a4defffaaee29c1d64e535eae8fba0def0296e3fe008e1b |