Skip to main content

# OpenHGNN This is an open-source toolkit for Heterogeneous Graph Neural Network(OpenHGNN) based on [DGL [Deep Graph Library]](https://github.com/dmlc/dgl). We integrate SOTA models of heterogeneous graph.

[Test Version]For now, we just release some models for some researchers to run the experiments.

## Keys

  • Easy-to-Use: OpenHGNN provides easy-to-use interfaces for running experiments with the given models and datasets. TODO: [Feature]AutoML & hyper-parameter search.

  • Extensibility: User can define customized task/model/dataset to apply new models to new scenarios.

  • Efficiency: The backend dgl provides efficient APIs.

## Why OpenHGNN

### Relation with [DGL](https://github.com/dmlc/dgl)

OpenHGNN is a high-level package built on top of DGL; it will not cover efficient implementation of low-level components in C++.

### Relation with [OpenHINE](https://github.com/BUPT-GAMMA/OpenHINE)

Package | Heterograph structure | Models | Efficiency | Others |
——– | ——————— | ——————————— | ———– | —————————————— |
OpenHINE | write by our own | Most embedding methods | Inefficient | — |
OpenHGNN | heterograph | Most graph neural network methods | Efficient | Better Extensibility, Better Encapsulation |

To avoid reinventing the wheel, we use the DGL as our backend. So we build the new toolkit OpenHGNN and more models will be integrated into it. OpenHINE will not be updated.

![image](./docs/source/image-001.jpg)

## Get Started

#### Requirements and Installation

#### Running an existing baseline model on an existing benchmark [dataset](./openhgnn/dataset/#Dataset)

`bash python main.py -m model_name -d dataset_name -t task_name -g 0 --use_best_config `

-g controls which gpu you will use. If you do not have gpu, set -g -1.

–use_best_config means you can use the best config in the dataset with the model. If you want to set the different hyper-parameter, modify the [openhgnn.config.ini](./openhgnn/config.ini) manually.

e.g.:

`bash python main.py -m GTN -d imdb4GTN -t node_classification -g 0 --use_best_config `

It is under development, and we release it in a nightly build version. For now, we just give some new models, such as HetGNN, NSHE, GTN, MAGNN, RSHN.

## [Models](./openhgnn/models/#Model)

### Supported Models

  • [HAN](./openhgnn/output/HAN)[WWW 2019] for node classification

  • [HetGNN](./openhgnn/output/HetGNN)[KDD 2019] for node classification and link prediction

  • [GTN](./openhgnn/output/GTN)[NeurIPS 2019] for node classification

  • [RSHN](./openhgnn/output/RSHN)[ICDM 2019] for entity classification

  • [MAGNN](./openhgnn/output/MAGNN)[WWW 2020] for node classification

  • [NSHE](./openhgnn/output/NSHE)[IJCAI 2020] for node classification

### To be supported models

  • Metapath2vec[KDD 2017]

  • [RGCN](./openhgnn/output/RGCN)[ESWC 2018] for node classification

  • CompGCN[ICLR 2020] for node classification

### Candidate models

## Contributors

[GAMMA LAB](https://github.com/BUPT-GAMMA) [BUPT]: [Tianyu Zhao](https://github.com/Theheavens), Cheng Yang, Xiao Wang, [Chuan Shi](http://shichuan.org/)

BUPT: Jiahang Li

DGL Team: Quan Gan, [Jian Zhang](https://github.com/zhjwy9343)

Metadata

Release files for testopenhgnn 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for testopenhgnn 1.2
File Size Uploaded
testopenhgnn-1.2.tar.gz 84.1 kB Details

Release files / testopenhgnn-1.2.tar.gz

Download URL testopenhgnn-1.2.tar.gz
Size 84.1 kB
Tags Source
SHA-256 checksum
How to use checksums
427719c94640ba5637498b5a9529ff30e15373578e273de3f7375cafba8fac89
BLAKE2b-256 checksum
How to use checksums
985668bf816bf4e5f61275dd3134b8d649ce34987566650a7dce477cfcb2f80a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release history Release notifications | RSS feed

This release

1.2 This release

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page