796a6e55afacbaa0ada91a29926c6635f9cf85c4,examples/cuneiform.py,,,#,109
Before Change
for epoch in range(1, 201):
train(epoch)
test(epoch, train_loader, "Train Accuracy")
test(epoch, test_loader, " Test Accuracy")
After Change
if i == 0:
train_split = perm[split[i + 1]:]
elif i == split.size(0) - 2:
train_split = perm[:split[i]]
else:
train_split = torch.cat([perm[:split[i]], perm[split[i + 1]:]])
train_dataset.split = train_split
test_dataset.split = test_split
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: 796a6e55afacbaa0ada91a29926c6635f9cf85c4
Time: 2017-12-11
Author: matthias.fey@tu-dortmund.de
File Name: examples/cuneiform.py
Class Name:
Method Name:
Project Name: rusty1s/pytorch_geometric
Commit Name: ad1f165a1139df81c7009a9f429d2bb3c3542ac0
Time: 2018-03-06
Author: matthias.fey@tu-dortmund.de
File Name: examples/cora_gcn.py
Class Name:
Method Name:
Project Name: osmr/imgclsmob
Commit Name: ea65d92a41ba1e8171cd0814dc9c50373f8e2c4f
Time: 2020-01-16
Author: osemery@gmail.com
File Name: eval_ch.py
Class Name:
Method Name: main