0a78dbe12a90845e1010adcf76f71f04f7386bd1,examples/pytorch/gcn/gcn.py,,main,#Any#,63
Before Change
def main(args):
// load and preprocess dataset
if args.dataset == "cora":
data = load_cora()
elif args.dataset == "citeseer":
data = load_citeseer()
elif args.dataset == "pubmed":
data = load_pubmed()
else:
raise RuntimeError("Error dataset: {}".format(args.dataset))
// features of each samples
features = {}
labels = []
train_nodes = []
for n in data.graph.nodes():
After Change
def main(args):
// load and preprocess dataset
data = load_data(args)
// features of each samples
features = {}
labels = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 21
Instances
Project Name: dmlc/dgl
Commit Name: 0a78dbe12a90845e1010adcf76f71f04f7386bd1
Time: 2018-08-07
Author: minjie.wang@nyu.edu
File Name: examples/pytorch/gcn/gcn.py
Class Name:
Method Name: main
Project Name: dmlc/dgl
Commit Name: 0a78dbe12a90845e1010adcf76f71f04f7386bd1
Time: 2018-08-07
Author: minjie.wang@nyu.edu
File Name: examples/pytorch/gcn/gcn_batch.py
Class Name:
Method Name: main
Project Name: dmlc/dgl
Commit Name: 0a78dbe12a90845e1010adcf76f71f04f7386bd1
Time: 2018-08-07
Author: minjie.wang@nyu.edu
File Name: examples/pytorch/gcn/gcn_spmv.py
Class Name:
Method Name: main