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
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 `
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.
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 simulator file called zip-wrapper.sh that takes a zip file and returns a compatable simulator for egta.
` egta --game-json cdasim/small_game.json quiesce sim -- ./zip-wrapper.sh cdasim/cdasim.zip `
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
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
Built Distribution
File details
Details for the file egta-0.0.17.tar.gz
.
File metadata
- Download URL: egta-0.0.17.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4815e55ede11127bd644db2708b6e4ac7d4a5a7654924635e84cd5662661cb8 |
|
MD5 | a558dbad7d7af23655a2d54ff426a6e8 |
|
BLAKE2b-256 | 8b015ccad839b01444ffb10692a43afaeede65b3e20fccba81a7df28323e070e |
File details
Details for the file egta-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: egta-0.0.17-py3-none-any.whl
- Upload date:
- Size: 48.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 440ca39498140a2e3cd78e4c0b7104207e93fc6a9c4830cab2b2b4b97790db3f |
|
MD5 | b0b59e98746409649f5767c4c97e3f54 |
|
BLAKE2b-256 | f5e7ccb52c45812811043931b2fd0f8c41d83c473233a9b3ebdd12bf030bb75c |