|
Algorithm 1: GAN-based auxiliary domain stage 1 |
|
for epoch i = 1:L
do
|
| for
D, steps j = 1:M
do
|
| Sample minibatch of size p from the ground truth sample of the distant source dataset |
| Sample minibatch of size p from the latent space |
| Applying gradient ascent to D to solve the maximization problem: |
|
|
| end
|
| for
G, steps k = 1:N
do
|
| Sample minibatch of size p from the latent space |
| Applying gradient descent to G to solve the minimization problem: |
|
|
| end
|
| end |