Skip to main content

Deepsnap package

Project description

DeepSNAP

PyPI License Build Status

Full Documentation

DeepSNAP is a Python library to assist efficient deep learning on graphs. DeepSNAP features in its support for flexible graph manipulation, standard pipeline, heterogeneous graphs and simple API.

DeepSNAP bridges powerful graph libraries such as NetworkX and deep learning framework PyTorch Geometric. With an intuitive and easy-than-ever API, DeepSNAP addresses the above pain points:

  • DeepSNAP currently supports a NetworkX-based backend, allowing users to seamlessly call hundreds of graph algorithms available to manipulate / transform the graphs, even at every training iteration. (Look forward to other backends such as Snap.py for future release).
  • DeepSNAP provides a standard pipeline for dataset split, negative sampling and defining node/edge/graph-level objectives, which are transparent to users.
  • DeepSNAP provides efficient support for flexible and general heterogeneous GNNs, that supports both node and edge heterogeneity, and allows users to control how messages are parameterized and passed.
  • DeepSNAP has an easy-to-use API that works seamlessly with existing GNN models / datasets implemented in PyTorch Geometric. There is close to zero learning curve if the user is familiar with PyTorch Geometric.

Installation

To install the DeepSNAP, ensure PyTorch Geometric and NetworkX are installed. Then:

$ pip install deepsnap

Example

Examples for using DeepSNAP are provided with code repository.

$ git clone https://github.com/snap-stanford/deepsnap
$ cd deepsnap/examples
$ python node_classification_cora.py # node classification
$ python link_prediction_cora.py # link prediction
$ python graph_classification_TU.py # graph classification

Documentation

For comprehensive overview, introduction, tutorial and example, please refer to Full Documentation

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

deepsnap-0.1.2.tar.gz (58.0 kB view hashes)

Uploaded Source

Built Distribution

deepsnap-0.1.2-py3-none-any.whl (73.3 kB view hashes)

Uploaded Python 3

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