Skip to main content

A Python Package for Deep Graph Networks

Project description

PyDGN: a research library for Deep Graph Networks

License Documentation Status Python Package Downloads Code style: black Interrogate Coverage

Documentation

This is a Python library to easily experiment with Deep Graph Networks (DGNs). It provides automatic management of data splitting, loading and common experimental settings. It also handles both model selection and risk assessment procedures, by trying many different configurations in parallel (CPU or GPU).

Reference

If you are interested in a rigorous evaluation of specific Deep Graph Networks, which kick-started this library, check this out:

Errica Federico, Podda Marco, Bacciu Davide, Micheli Alessio: A Fair Comparison of Graph Neural Networks for Graph Classification. Proceedings of the 8th International Conference on Learning Representations (ICLR 2020). Code

Installation:

Simply run

pip install pydgn

Quickstart:

Build dataset and data splits

pydgn-dataset --config-file examples/DATA_CONFIGS/config_NCI1.yml

Train

pydgn-train  --config-file examples/MODEL_CONFIGS/config_SupToyDGN.yml 

And we are up and running!

To debug your code you can add --debug to the command above, but the "GUI" will be disabled.

To stop the computation, use CTRL-C to send a SIGINT signal, and consider using the command ray stop to stop all Ray processes. Warning: ray stop stops all ray processes you have launched, including those of other experiments in progress, if any.

Projects using PyDGN

Data Splits

We provide the data splits taken from

Errica Federico, Podda Marco, Bacciu Davide, Micheli Alessio: A Fair Comparison of Graph Neural Networks for Graph Classification. 8th International Conference on Learning Representations (ICLR 2020). Code

in the examples/DATA_SPLITS folder.

License:

PyDGN >= 1.0.0 is BSD 3-Clause licensed, as written in the LICENSE file.

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

pydgn-1.4.4.tar.gz (77.3 kB view details)

Uploaded Source

Built Distribution

pydgn-1.4.4-py3-none-any.whl (92.4 kB view details)

Uploaded Python 3

File details

Details for the file pydgn-1.4.4.tar.gz.

File metadata

  • Download URL: pydgn-1.4.4.tar.gz
  • Upload date:
  • Size: 77.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pydgn-1.4.4.tar.gz
Algorithm Hash digest
SHA256 9a15992708d695c105089b18bb7783b7a27700b18f8d1fd2ff505619830a5563
MD5 830830ebe4ccd6f2aabf3d18deed80ca
BLAKE2b-256 41962aca99df1499a7f200b01a9560835f7b1fd849706db51401ea8c43e88877

See more details on using hashes here.

Provenance

File details

Details for the file pydgn-1.4.4-py3-none-any.whl.

File metadata

  • Download URL: pydgn-1.4.4-py3-none-any.whl
  • Upload date:
  • Size: 92.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pydgn-1.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 02492a16f459df2ad3ba1c68727cdad8e427b075d4ce5c1c885808fd43a6f6e3
MD5 e99c53a0f611fea9af24834db6420a02
BLAKE2b-256 fe7f7c3e6e31b6bf5b0ad254de11305641f3f3238f376b56db0cc350f8f29e2a

See more details on using hashes here.

Provenance

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