Skip to main content

Scripts to perform EGTA

Project description

Empirical Game-Theoretic Analysis

[![Build Status](https://img.shields.io/travis/egtaonline/quiesce.svg?style=flat-square)](https://travis-ci.org/egtaonline/quiesce) [![Coverage](https://img.shields.io/coveralls/egtaonline/quiesce.svg?style=flat-square)](https://coveralls.io/github/egtaonline/quiesce)

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.

    ` egta --game-json cdasim/data_game.json quiesce game --load-game `

  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.

    ` egta --game-json cdasim/small_game.json quiesce sim -- python3 cdasim/sim.py 1 --single `

    By default the quiesce routine only uses one payoff sample per profile. Setting –count to a larger number 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.

    ` egta --game-json cdasim/small_game.json quiesce zip cdasim/cdasim.zip `

  1. 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.

    ` egta --game-id 1466 quiesce --dpr buyers:2,sellers:2 egta --sim-memory 2048 --sim-time 60 `

    Note: To use this method, your EGTA Online credentials must be stored in a place where the python api can find them. 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.0.30.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

egta-0.0.30-py3-none-any.whl (42.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: egta-0.0.30.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for egta-0.0.30.tar.gz
Algorithm Hash digest
SHA256 9a594f9651baa1637aa5e02ef8ed31ab62944113beea6acdfb22a069fef1767d
MD5 4c1fdaaedf2ca3276686aba2daf2eeae
BLAKE2b-256 efdeb3e6d273f6bfda305075d8a27330efa5afde58f4cb9f74a57051fc72def9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for egta-0.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 1538e4dc831782cf87ae5d5c9ae363826b3fef9eedb95db63f267909cd6249d8
MD5 224899508a2282123c5026bc348367fa
BLAKE2b-256 4ff57d9393f6119a41792a1176a620c057e666b6cf054f4bc3d127f52f213a46

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