adda
ADDAHook
¶
Bases: GANHook
Implementation of Adversarial Discriminative Domain Adaptation.
Source code in pytorch_adapt\hooks\adda.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
__init__(threshold=0.6, pre_g=None, post_g=None, **kwargs)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
threshold |
float
|
In each training iteration, the generator is only updated
if the discriminator's accuracy is greater than |
0.6
|
Source code in pytorch_adapt\hooks\adda.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
|