MSDA icon indicating copy to clipboard operation
MSDA copied to clipboard

A Qustion about regular_train_op ----main.py line 66

Open DanyaXu opened this issue 4 years ago • 2 comments

After reading your article, I was deeply inspired, but there was a problem when reading the code. During training, the optimizer ‘dann_trian_op’ was used, but the optimizer ‘regular_train_op’ was not used. Why?

DanyaXu avatar Jun 19 '20 02:06 DanyaXu

Hi, the regular_train_op in line66 is just an op for testing when I was writing the code which optimizes only one classification loss and no domain adversarial loss is optimized. While dann_train_op in line67 optimizes the sum of both domain adversarial loss and regular classification loss, which is actually the loss proposed in the paper.

daoyuan98 avatar Jun 20 '20 14:06 daoyuan98

Hi, the regular_train_op in line66 is just an op for testing when I was writing the code which optimizes only one classification loss and no domain adversarial loss is optimized. While dann_train_op in line67 optimizes the sum of both domain adversarial loss and regular classification loss, which is actually the loss proposed in the paper.

Okay, thank you very much for your reply.

DanyaXu avatar Jun 22 '20 03:06 DanyaXu