项目文件夹

文件
Chao Ma d57ff78da1 [Small Fix] Change default message queue size of communicator to 2GB (#1140)
* API change of kvstore

* add demo for kvstore

* update

* remove duplicated log

* change queue size

* update

* update

* update

* update

* update

* update

* update

* update

* update

* fix lint

* change name

* update

* fix lint

* update

* update

* update

* update

* change message queue size to a python argument

* change default queue size to 2GB

* OMP_NUM_THREADS=1
2019-12-25 17:03:52 +08:00
..
2019-11-04 12:11:53 +08:00
2019-11-04 12:11:53 +08:00

Stochastic Training for Graph Convolutional Networks

Dependencies

  • PyTorch 0.4.1+
  • requests

bash pip install torch requests

Neighbor Sampling & Skip Connection

cora

Test accuracy ~83% with --num-neighbors 2, ~84% by training on the full graph

DGLBACKEND=pytorch python3 gcn_ns_sc.py --dataset cora --self-loop --num-neighbors 2 --batch-size 1000000 --test-batch-size 1000000

citeseer

Test accuracy ~69% with --num-neighbors 2, ~70% by training on the full graph

DGLBACKEND=pytorch python3 gcn_ns_sc.py --dataset citeseer --self-loop --num-neighbors 2 --batch-size 1000000 --test-batch-size 1000000

pubmed

Test accuracy ~76% with --num-neighbors 3, ~77% by training on the full graph

DGLBACKEND=pytorch python3 gcn_ns_sc.py --dataset pubmed --self-loop --num-neighbors 3 --batch-size 1000000 --test-batch-size 1000000

Control Variate & Skip Connection

cora

Test accuracy ~84% with --num-neighbors 1, ~84% by training on the full graph

DGLBACKEND=pytorch python3 gcn_cv_sc.py --dataset cora --self-loop --num-neighbors 1 --batch-size 1000000 --test-batch-size 1000000

citeseer

Test accuracy ~69% with --num-neighbors 1, ~70% by training on the full graph

DGLBACKEND=pytorch python3 gcn_cv_sc.py --dataset citeseer --self-loop --num-neighbors 1 --batch-size 1000000 --test-batch-size 1000000

pubmed

Test accuracy ~77% with --num-neighbors 1, ~77% by training on the full graph

DGLBACKEND=pytorch python3 gcn_cv_sc.py --dataset pubmed --self-loop --num-neighbors 1 --batch-size 1000000 --test-batch-size 1000000