Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
theheavens ae427362ed | 2 years ago | |
---|---|---|
docs | 2 years ago | |
openhgnn | 2 years ago | |
space4hgnn | 2 years ago | |
tests | 2 years ago | |
.gitignore | 2 years ago | |
CONTRIBUTING.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
README_en.md | 2 years ago | |
main.py | 2 years ago | |
requirements.txt | 2 years ago | |
setup.py | 2 years ago | |
space4hgnn.py | 2 years ago | |
yunnao_tutorial.md | 2 years ago |
启智社区(中文版)| Github Community (English)
OpenHGNN是一个基于 DGL [Deep Graph Library] 和 PyTorch 的开源异质图神经网络工具包, 集成了异质图神经网络的前沿模型.
我们于启智社区开源了v0.1.1中文版本。
启智社区用户可以享受到如下功能:
1. Python 环境 (可选): 推荐使用 Conda 包管理
conda create -n openhgnn python=3.7
source activate openhgnn
2. Pytorch: 安装Pytorch, 参考PyTorch安装文档.
# CUDA versions: cpu, cu92, cu101, cu102, cu101, cu111
pip install torch==1.8.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
3. DGL: 安装 DGL, 参考DGL安装文档.
# CUDA versions: cpu, cu101, cu102, cu110, cu111
pip install --pre dgl-cu101 -f https://data.dgl.ai/wheels-test/repo.html
4. 下载OpenHGNN, 安装依赖:
git clone https://github.com/BUPT-GAMMA/OpenHGNN
cd OpenHGNN
pip install -r requirements.txt
python main.py -m model_name -d dataset_name -t task_name -g 0 --use_best_config --load_from_pretrained
使用方法: main.py [-h] [--model MODEL] [--task TASK] [--dataset DATASET]
[--gpu GPU] [--use_best_config]
可选参数:
-h, --help
展示帮助信息并退出
--model -m
模型名
--task -t
任务名
--dataset -d
数据集名
--gpu -g
控制你使用哪一个GPU, 如果没有GPU, 设定 -g -1.
--use_best_config
use_best_config 意味着你使用该模型在该数据集下最优的配置, 如果你想要设定不同的超参数,请手动修改 配置文件 . 使用最佳配置会覆盖配置文件中的参数。
--use_hpo
除了 use_best_config, 我们还提供了一个超参数的 样例 来自动查找最佳超参数.
--load_from_pretrained
从默认检查点加载模型.
示例:
python main.py -m GTN -d imdb4GTN -t node_classification -g 0 --use_best_config
提示: 如果你对某个模型感兴趣,你可以参考下列的模型列表.
请参考 文档 了解更多的基础和进阶的使用方法.
表格中的链接给出了模型的基本使用方法.
模型 | 节点分类 | 链路预测 | 推荐 |
---|---|---|---|
Metapath2vec[KDD 2017] | ✔️ | ||
RGCN[ESWC 2018] | ✔️ | ✔️ | |
HERec[TKDE 2018] | ✔️ | ||
HAN[WWW 2019] | ✔️ | ✔️ | |
KGCN[WWW 2019] | ✔️ | ||
HetGNN[KDD 2019] | ✔️ | ✔️ | |
HGAT[EMNLP 2019] | |||
GTN[NeurIPS 2019] & fastGTN | ✔️ | ||
RSHN[ICDM 2019] | ✔️ | ✔️ | |
DMGI[AAAI 2020] | ✔️ | ||
MAGNN[WWW 2020] | ✔️ | ||
HGT[WWW 2020] | |||
CompGCN[ICLR 2020] | ✔️ | ✔️ | |
NSHE[IJCAI 2020] | ✔️ | ||
NARS[arxiv] | ✔️ | ||
MHNF[arxiv] | ✔️ | ||
HGSL[AAAI 2021] | ✔️ | ||
HGNN-AC[WWW 2021] | ✔️ | ||
HeCo[KDD 2021] | ✔️ | ||
SimpleHGN[KDD 2021] | ✔️ | ||
HPN[TKDE 2021] | ✔️ | ✔️ | |
RHGNN[arxiv] | ✔️ | ||
HDE[ICDM 2021] | ✔️ |
OpenHGNN 团队 [北邮 GAMMA 实验室] 、 DGL 团队和鹏城实验室.
This is an open-source toolkit for Heterogeneous Graph Neural Network(OpenHGNN) based on DGL.
Python Markdown Shell other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》