Skip to main content

A python package to calculate Myerson values from game theory and use them as explanations for graph neural networks.

Project description

Myerson logo banner

test Documentation Status

Calculate Myerson values and explain GNNs

This package implements the Myerson solution concept from cooperative game theory. The Myerson values attribute every player of a game their fair contribution to the games payoff. Myerson values are related to Shapley values but the player cooperation is restricted by a graph.

A graph neural network (GNN) can be treated as a coalition function for a game and the Myerson values can be used as feature attribution explanations to understand a model prediction. This package also implements Methods to explain PyG GNNs with Myerson values.

Calculating the Myerson value scales exponentially with bigger graphs / more players. Therfore, Monte Carlo sampling techniques were implemented to approximate the Myerson values.

Installation

Install the package with the following command:

pip install myerson

Examples and Documentation

Example uses can be found here. The full documentation can be found at https://myerson.readthedocs.io/.

Citation

TBD.

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

myerson-0.1.8.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

myerson-0.1.8-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file myerson-0.1.8.tar.gz.

File metadata

  • Download URL: myerson-0.1.8.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for myerson-0.1.8.tar.gz
Algorithm Hash digest
SHA256 5f1b31534132a6e2794d73a6e43c8cefd08cc56f55066776c4ba54a8256ec508
MD5 69035af629a0fa502793b3fbc1166deb
BLAKE2b-256 ab72fa1492b9adbca2a2b6b2c256cc0b6e0be2449b076ba1e9660815733aff2f

See more details on using hashes here.

File details

Details for the file myerson-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: myerson-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for myerson-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 19e5b698ff7a7be14f31f7e8f267efc196f9bdbc1f21de84754a2bed571644d6
MD5 24664aed956ba71debc197dc2b82b4e3
BLAKE2b-256 419dbfcb10933e4e62f333a858c3f2a72958fbc0474ac11376d7e2f10f6545a6

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