Skip to main content
. 2022 Nov 11;9(11):683. doi: 10.3390/bioengineering9110683
Algorithm 2: GAN-based auxiliary domain stage 2
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 target dataset
    Sample minibatch of size p from the latent space
    Applying gradient ascent to D to solve the maximization problem:
  maxDFDD,G=Ex,ylogDx,y+Ex,zlog1Dx,Gx,z
  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:
     minGFGD,G=Ex,zlog1Dx,Gx,z+λiNβi1θi2
  end
end