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
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
train_loader = DataLoader(train_dataset, batch_size=32, shuffle=True)
test_loader = DataLoader(test_dataset, batch_size=32, shuffle=True)
model.conv1.reset_parameters()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: jindongwang/transferlearning
Commit Name: e6b394f7340cbeee16bf4424cdf0367f80b60619
Time: 2018-12-22
Author: jindongwang@outlook.com
File Name: code/deep/finetune_AlexNet_ResNet/office31.py
Class Name:
Method Name:
Project Name: jindongwang/transferlearning
Commit Name: 376b01c2e338ec63e638f62a76d67f6a9323e47c
Time: 2019-08-14
Author: jindongwang@outlook.com
File Name: code/deep/DeepCoral/DeepCoral.py
Class Name:
Method Name: