18 Star 74 Fork 49

DeepSpark / DeepSparkHub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.45 KB
一键复制 编辑 原始数据 按行查看 历史

GCN

Model description

GCN(Graph Convolutional Networks) was proposed in 2016 and designed to do semi-supervised learning on graph-structured data. A scalable approach based on an efficient variant of convolutional neural networks which operate directly on graphs was presented. The model scales linearly in the number of graph edges and learns hidden layer representations that encode both local graph structure and features of nodes.

Paper: Thomas N. Kipf, Max Welling. 2016. Semi-Supervised Classification with Graph Convolutional Networks. In ICLR 2016.

Step 1:Installation

# Clone PGL repository
git clone https://github.com/PaddlePaddle/PGL.git
# Pip the requirements
pip3 install pgl
pip3 install urllib3==1.23
pip3 install networkx

Step 2:Preparing datasets

Datasets are called in the code.

The datasets contain three citation networks: CORA, PUBMED, CITESEER.

Step 3:Training

cd PGL/examples/gcn/

# Run on CPU
python3 train.py --dataset cora

# Run on GPU
CUDA_VISIBLE_DEVICES=0 python3 train.py --dataset cora

Results

GPUS Datasets speed Accurary
BI V100×1 CORA 0.0064 80.3%
BI V100×1 PUBMED 0.0076 79.0%
BI V100×1 CITESEER 0.0085 70.6%

Reference

PGL/GCN

Python
1
https://gitee.com/deep-spark/deepsparkhub.git
git@gitee.com:deep-spark/deepsparkhub.git
deep-spark
deepsparkhub
DeepSparkHub
master

搜索帮助