Skip to main content

Scripts to perform EGTA

Project description

Empirical Game-Theoretic Analysis

[![build](https://github.com/egtaonline/quiesce/workflows/build/badge.svg)](https://github.com/egtaonline/quiesce/actions)

A command line tool for running egta on arbitrary simulators.

Setup

` pip install --user -U egta `

Usage

You need a set of supplementary files to actually run this. These files describe the game that’s going to be run, and the process of getting payoff data for each profile when requested. This repository contains a sample simulator called cdasim that can be used for this purpose. Below are some example uses

  1. Perform the quiesce routine on a game that already has game data. One can also add noise to the payoffs for testing of equilibria procedures but this will just run it with no noise.

    `bash egta quiesce game:game:cdasim/data_game.json `

  2. Perform the quiesce routine on a game that’s defined by a command line simulator. This will get profile data by sampling from the cdasim python simulator.

    `bash egta quiesce 'sim:game:cdasim/small_game.json,command:python3 cdasim/sim.py 1 --single' `

    By default the quiesce routine only uses one payoff sample per profile. Adding ,count:<number> to the description will help reduce the noise.

  3. Perform the quiesce routine on a game that’s defined by an EGTA Online zip file. This will get profile by calling the batch script from a zip file the same way as EGTA Online. To accomplish this, this repository has a zip scheduler that takes a zip file and schedules like EGTA Online does.

    `bash egta quiesce zip:game:cdasim/small_game.json,zipf:cdasim/cdasim.zip `

  4. Perform the quiesce routine on a game with information on EGTA Online. The parameters specified here are for the same simulation that was uploaded there.

    `bash egta quiesce eo:game:1466,mem:2048,time:60 --dpr buyers:2,sellers:2 `

    Note: This game has already been solved, so this call will only fetch the initial game and then solve it without scheduling more profiles.

Development

Makefile has all of the relevant commands for settings up a development environment. Typing make will print out everything it’s setup to do.

make setup will do a best effort to setup an appropriate development environment. The script requires a python interpreter that’s at least version 3.5. To specify a different interpreter than the default lookup on your path use make setup PYTHON=<alternate-python>, e.g. on many ubuntu systems you might need to run make setup PYTHON=python3.

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

egta-0.2.2.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

egta-0.2.2-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file egta-0.2.2.tar.gz.

File metadata

  • Download URL: egta-0.2.2.tar.gz
  • Upload date:
  • Size: 41.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for egta-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7eaca9b02ac0aadeed78be86e5766ffce8e3cb1300142881a888f782b15b0312
MD5 645695cbb83167fff5895d57841714da
BLAKE2b-256 bd57873ca68fe36670ec6d96b6a870ea6589d7e385aadc373cc044f4be0d4a2f

See more details on using hashes here.

File details

Details for the file egta-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: egta-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for egta-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a3cee6b92ff63074402f254cd34187781617c5fe3bb3034d351308f336161b0b
MD5 a7775a8301087bd4eda6d21ae6fe9045
BLAKE2b-256 f4f86f70c847bc5793cbc725a65b0672ec4963abc17a05c6ebf730bce011ebb9

See more details on using hashes here.

Supported by

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