The Wayback Machine - https://web.archive.org/web/20200623155217/https://github.com/matenure/FastGCN
Skip to content
The sample codes for our ICLR18 paper "FastGCN: Fast Learning with Graph Convolutional Networks via Importance Sampling""
Python
Branch: master
Clone or download

Latest commit

matenure Merge pull request #15 from cai-lw/patch-1
Add note about sampling of the Reddit model
Latest commit b8e6e64 Apr 8, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data initial Oct 27, 2017
README.md Add note about sampling of the Reddit model Apr 4, 2019
__init__.py
create_Graph.py clean some codes Oct 27, 2017
create_Graph_forGraphSAGE.py Make graphsage converter faster for large graphs and do not hardcode … Feb 21, 2018
inits.py initial Oct 27, 2017
lanczos.py initial Oct 27, 2017
layers.py initial Oct 27, 2017
metrics.py
models.py initial Oct 27, 2017
pubmed-original_inductive_FastGCN.py updated the README file and added two missed files Jul 19, 2018
pubmed-original_transductive_FastGCN.py updated the README file and added two missed files Jul 19, 2018
pubmed_Mix.py initial Oct 27, 2017
pubmed_Mix_sampleA.py initial Oct 27, 2017
pubmed_Mix_uniform.py initial Oct 27, 2017
pubmed_inductive_appr2layers.py initial Oct 27, 2017
train.py
train_batch_multiRank_inductive_newscheme.py initial Oct 27, 2017
train_batch_multiRank_inductive_reddit_Mixlayers_sampleA.py Additional Experiments and Hyperparameter Changes Dec 18, 2017
train_batch_multiRank_inductive_reddit_Mixlayers_sampleBatch.py clean some codes Oct 27, 2017
train_batch_multiRank_inductive_reddit_Mixlayers_uniform.py Additional Experiments and Hyperparameter Changes Dec 18, 2017
train_batch_multiRank_inductive_reddit_appr2layers.py initial Oct 27, 2017
train_batch_multiRank_inductive_reddit_onelayer.py initial Oct 27, 2017
transformRedditGraph2NPZ.py add a separate file for generating reddit npz data Sep 29, 2018
utils.py Additional Experiments and Hyperparameter Changes Dec 18, 2017

README.md

FastGCN

This is the Tensorflow implementation of our ICLR2018 paper: "FastGCN: Fast Learning with Graph Convolutional Networks via Importance Sampling".

Instructions of the sample codes:

[For Reddit dataset]

train_batch_multiRank_inductive_reddit_Mixlayers_sampleA.py is the final model. (precomputated the AH in the bottom layer) The original Reddit data should be transferred into the .npz format using this function: transferRedditDataFormat.
Note: By default, this code does no sampling. To enable sampling, change `main(None)` at the bottom to `main(100)`. (The number is the sample size. You can also try other sample sizes)

train_batch_multiRank_inductive_reddit_Mixlayers_uniform.py is the model for uniform sampling.

train_batch_multiRank_inductive_reddit_Mixlayers_appr2layers.py is the model for 2-layer approximation.

create_Graph_forGraphSAGE.py is used to transfer the data into the GraphSAGE format, so that users can compare our method with GraphSAGE. We also include the transferred original Cora dataset in this repository (./data/cora_graphSAGE).

[For pubmed or cora]

train.py is the original GCN model.

pubmed_Mix_sampleA.py 	The dataset could be defined in the codes, for example: flags.DEFINE_string('dataset', 'pubmed', 'Dataset string.')

pubmed_Mix_uniform.py and pubmed_inductive_appr2layers.py are similar to the ones for reddit.

pubmed-original**.py means the codes are used for original Cora or Pubmed datasets. Users could also change their datasets by changing the data load function from load_data() to load_data_original().
You can’t perform that action at this time.