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 complete package with PyTorch dependencies using one of the following commands:
# pip
pip install myerson[explain]
# conda / mamba
conda install myerson
# for conda / mamba, you need to manually install pytorch dependencies
conda install pytorch torchvision torchaudio cpuonly -c pytorch
conda install conda install pyg -c pyg
If you are only interested in the game theoretic part you don't need to install PyTorch:
# pip
pip install myerson
# conda / mamba
conda install myerson
Examples and Documentation
Example uses can be found here. The full documentation can be found at https://myerson.readthedocs.io/.
Results of Explaining GNNs for Cheminformatics
This package was developed to explain GNN predicitons for Cheminformatics approaches. The repository with code and data for these experiments can be found here: https://github.com/kochgroup/myerson_results.
Citation
TBD.
Metadata
Release files for myerson 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| myerson-1.0.1.tar.gz | 18.3 kB | With provenance | Details for myerson-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| myerson-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for myerson-1.0.1-py3-none-any.whl |
Total release size: 45.3 kB
Release files / myerson-1.0.1.tar.gz
| Download URL | myerson-1.0.1.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d4c335bc02d8204ecc7ec830423854f01928a97d08a27dd94d7b749727b03e8
|
|
BLAKE2b-256 checksum How to use checksums |
a330be327e3b6c6099f4ec94d5926def1f5358e43326dcaa95f8ce30b805b6c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency logRelease files / myerson-1.0.1-py3-none-any.whl
| Download URL | myerson-1.0.1-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7853647241da738ae0e026872285d66a59abce9be61e2e7db8b99eafd6750087
|
|
BLAKE2b-256 checksum How to use checksums |
30391a28c30fef2de2e747d927e4ae7a7daffe9ffce2b5975f380c090d9af455
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency logSecurity for myerson 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for myerson-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.