Skip to content

Commit 29f7fee

Browse files
committed
modify link
1 parent 0d2d036 commit 29f7fee

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dalib/adaptation/adda.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class DomainAdversarialLoss(nn.Module):
1414
<https://arxiv.org/pdf/1702.05464.pdf>`_.
1515
Similar to the original `GAN <https://arxiv.org/pdf/1406.2661.pdf>`_ paper, ADDA argues that replacing
1616
:math:`\text{log}(1-p)` with :math:`-\text{log}(p)` in the adversarial loss provides better gradient qualities. Detailed
17-
optimization process can be found at `examples/domain_adaptation/image_classification/adda.py`.
17+
optimization process can be found `here
18+
<https://github.com/thuml/Transfer-Learning-Library/blob/master/examples/domain_adaptation/image_classification/adda.py>`_.
1819
1920
Inputs:
2021
- domain_pred (tensor): predictions of domain discriminator

docs/dalib/adaptation/domain_adversarial.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ ADDA: Adversarial Discriminative Domain Adaptation
3434
.. autoclass:: dalib.adaptation.adda.DomainAdversarialLoss
3535

3636
.. note::
37-
ADDAgrl is also implemented and benchmarked. You can find code at
38-
`examples/domain_adaptation/image_classification/addagrl.py`.
37+
ADDAgrl is also implemented and benchmarked. You can find code
38+
`here <https://github.com/thuml/Transfer-Learning-Library/blob/master/examples/domain_adaptation/image_classification/addagrl.py>`_.
3939

4040

4141
.. _BSP:

0 commit comments

Comments
 (0)