Skip to main content

Graph Neural Network (GNN) toolkit targeting scalable graph learning

Project description

SGL: Scalable Graph Learning

SGL is a Graph Neural Network (GNN) toolkit targeting scalable graph learning, which supports deep graph learning on extremely large datasets. SGL allows users to easily implement scalable graph neural networks and evaluate its performance on various downstream tasks like node classification, node clustering, and link prediction. Further, SGL supports auto neural architecture search functionality based on OpenBox. SGL is designed and developed by the graph learning team from the DAIR Lab at Peking University.

Library Highlights

  • High scalability: Follow the scalable design paradigm SGAP in PaSca, SGL scale to graph data with billions of nodes and edges.
  • Auto neural architecture search: Automatically choose decent neural architectures according to specific tasks, and pre-defined objectives (e.g., inference time).
  • Ease of use: User-friendly interfaces of implementing existing scalable GNNs and executing various downstream tasks.

Installation (TODO)

Some datasets in SGL are constructed based on PyG. Please follow the link below to install PyG first before installing SGL: https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html.

Install from pip

To install SGL from PyPI:

pip install sgl-dair

Quick Start (TODO)

A quick start example is given by:

from SGL.dataset import Planetoid
from SGL.models.homo import SGC
from SGL.tasks import NodeClassification

dataset = Planetoid("pubmed", "./", "official")
model = SGC(prop_steps=3, feat_dim=dataset.num_features, num_classes=dataset.num_classes)

device = "cuda:0"
test_acc = NodeClassification(dataset, model, lr=0.1, weight_decay=5e-5, epochs=200, device=device).test_acc

TODO An example of the auto neural network search functionality is as follows:


Related Publications

PaSca: a Graph Neural Architecture Search System under the Scalable Paradigm Wentao Zhang, Yu Shen, Zheyu Lin, Yang Li, Xiaosen Li, Wen Ouyang, Yangyu Tao, Zhi Yang, and Bin Cui; The world wide web conference (WWW 2022, CCF-A) . https://arxiv.org/abs/2203.00638

License

The entire codebase is under MIT license.

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

sgl-dair-0.1.0.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sgl_dair-0.1.0-py3-none-any.whl (74.5 kB view details)

Uploaded Python 3

File details

Details for the file sgl-dair-0.1.0.tar.gz.

File metadata

  • Download URL: sgl-dair-0.1.0.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for sgl-dair-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cd58ae589aa1de6e1137d26d6872882f3874430ae7e9c0ac25e57436e375c6d7
MD5 01e5353ae3be801faadba2d7a5340996
BLAKE2b-256 0e2a51abe2eb6979299291db1c2ad712c990a319cbca0ffb049da579424b63b5

See more details on using hashes here.

File details

Details for the file sgl_dair-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sgl_dair-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 74.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for sgl_dair-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58e666ea8a6114ef7b6dfa1bfeff5c2cff8549e10952417474f3f0f37b5fe929
MD5 e761f8f5488c09ce525c4dba0d6d7a62
BLAKE2b-256 880664765a85238175553e72ac69335585e48b5ed068270780acfd4ba73ce109

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page