b44364811b14bde01d84554624a9bffa0e4976e3,examples/cora_gcn.py,,,#,41
Before Change
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)
def train():
model.train()
After Change
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: 3
Non-data size: 4
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: HyperGAN/HyperGAN
Commit Name: 8451a2d1b3264a92b85c0eef49e86d76f704f9f0
Time: 2020-02-13
Author: martyn@255bits.com
File Name: hypergan/trainers/simultaneous_trainer.py
Class Name: SimultaneousTrainer
Method Name: _create
Project Name: pfnet/optuna
Commit Name: dd8e4a102fa5997dbbffd0d48d65e8bf2acc6fd9
Time: 2018-04-23
Author: t.akiba.65536@gmail.com
File Name: examples/chainer_mnist.py
Class Name:
Method Name: objective