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.
# 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
Datasets are called in the code.
The datasets contain three citation networks: CORA, PUBMED, CITESEER.
cd PGL/examples/gcn/
# Run on CPU
python3 train.py --dataset cora
# Run on GPU
CUDA_VISIBLE_DEVICES=0 python3 train.py --dataset cora
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% |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。