b6a7c304c68fe4a1300970459a3807ee7bce6c87,examples/cora.py,,,#,55
Before Change
train()
acc.append(test(test_mask))
print("Run: {:03d}, Test: {:.4f}".format(run, acc[-1]))
mean = torch.tensor(acc).mean().item()
std = torch.tensor(acc).std().item()
After Change
for epoch in range(1, 101):
train()
log = "Epoch: {:03d}, Train: {:.4f}, Test: {:.4f}"
print(log.format(epoch, *test()))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: rusty1s/pytorch_geometric
Commit Name: b6a7c304c68fe4a1300970459a3807ee7bce6c87
Time: 2018-05-22
Author: matthias.fey@tu-dortmund.de
File Name: examples/cora.py
Class Name:
Method Name:
Project Name: Qiskit/qiskit-aqua
Commit Name: f3a426f88da4760895a42751b1fe668fee3a834f
Time: 2018-08-31
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/algorithms/classical/svm/svm_classical_multiclass.py
Class Name: SVM_Classical_Multiclass
Method Name: run
Project Name: jindongwang/transferlearning
Commit Name: 2733bef356c53286d475a67476d88d4840923830
Time: 2020-09-30
Author: jindongwang@outlook.com
File Name: code/deep/finetune_AlexNet_ResNet/finetune_office31.py
Class Name:
Method Name: finetune
Project Name: ActiveState/code
Commit Name: 8e2528c312791c2c56c8bca365669e06ab698a88
Time: 2017-11-28
Author: mn@mn.heuthesd
File Name: recipes/Python/576621_Dump_Informix_schema_to_text/recipe-576621.py
Class Name:
Method Name: main