376b01c2e338ec63e638f62a76d67f6a9323e47c,code/deep/DeepCoral/DeepCoral.py,,,#,109

Before Change


        model.cuda()
    model = load_pretrain(model)
    for epoch in range(1, epochs + 1):
        train(epoch, model)
        t_correct = test(model)
        if t_correct > correct:
            correct = t_correct
        print("source: {} to target: {} max correct: {} max accuracy{: .2f}%\n".format(

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([
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: astorfi/TensorFlow-World
Commit Name: 23ade1b117a04e86e2058a148ec944fb2e624536
Time: 2017-09-21
Author: mmulholland@ets.org
File Name: codes/2-basics_in_machine_learning/linear_regression/code/linear_regression.py
Class Name:
Method Name:


Project Name: brilee/MuGo
Commit Name: d688ed0d01d41cbc9b67db6b6cacafee3b11cc16
Time: 2016-07-08
Author: brian.kihoon.lee@gmail.com
File Name: main.py
Class Name:
Method Name: train