376b01c2e338ec63e638f62a76d67f6a9323e47c,code/deep/DeepCoral/DeepCoral.py,,,#,109
Before Change
t_correct = test(model)
if t_correct > correct:
correct = t_correct
print("source: {} to target: {} max correct: {} max accuracy{: .2f}%\n".format(
source_name, target_name, correct, 100. * correct / len_target_dataset ))
After Change
source_name = "amazon"
target_name = "webcam"
source_loader, target_train_loader, target_test_loader = load_data(source_name, target_name, CFG["data_path"])
model = models.DeepCoral(CFG["n_class"], CFG["backbone"]).to(DEVICE)
optimizer = torch.optim.SGD([
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
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:
Project Name: matthewwithanm/django-imagekit
Commit Name: 343f14ad48432e251be7ae75da2800bcce93947a
Time: 2012-01-26
Author: matthew@exanimo.com
File Name: imagekit/models.py
Class Name: ImageSpecFile
Method Name: _default_cache_to
Project Name: LCAV/pyroomacoustics
Commit Name: f2e989565ab89af58dff63ab3cf89fe63af38327
Time: 2020-06-02
Author: fakufaku@gmail.com
File Name: examples/raytracing.py
Class Name:
Method Name: