b44364811b14bde01d84554624a9bffa0e4976e3,examples/cora_gcn.py,,,#,41
Before Change
model = Net()
if torch.cuda.is_available():
train_mask, val_mask = train_mask.cuda(), val_mask.cuda()
test_mask, model = test_mask.cuda(), model.cuda()
optimizer = torch.optim.Adam(model.parameters(), lr=0.01, weight_decay=0.005)
After Change
old_val = val
cur_test = test(test_mask)
acc.append(cur_test)
print("Run:", run, "Test Accuracy:", acc[-1])
acc = torch.FloatTensor(acc)
print("Mean:", acc.mean(), "Stddev:", acc.std())
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: b44364811b14bde01d84554624a9bffa0e4976e3
Time: 2018-03-07
Author: matthias.fey@tu-dortmund.de
File Name: examples/cora_gcn.py
Class Name:
Method Name:
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: a0dadd2f2f5a2f443dfabdf696809d5e6ca8e2b5
Time: 2018-01-14
Author: max.lapan@gmail.com
File Name: ch12/libbots/model.py
Class Name:
Method Name: pack_batch
Project Name: yhenon/pytorch-retinanet
Commit Name: b6443232013e8d248fe26f59630d43bc9688df06
Time: 2018-04-29
Author: yannhenon@gmail.com
File Name: losses.py
Class Name:
Method Name: loss
Project Name: open-mmlab/mmdetection
Commit Name: 879a6ae48e267b36af53e131b3808255cec712e7
Time: 2018-09-23
Author: chenkaidev@gmail.com
File Name: tools/train.py
Class Name:
Method Name: main