Algorithm 1 DANN Training |
Inputs: initial source domain , target domain hyperparameters for FE, C, and D networks number of epochs for three steps of the training process number of training cycles n Algorithm: separate data from for labeled and unlabeled training extract inputs from extract outputs from combine inputs from and create domain labels from and initialize networks with for i < n do
train by for epochs FE part of C part of
train by for epochs with part frozen D part of invert train by for epochs with D part frozen FE part of end for |