The key idea is to explicitly capture the relationship between a target example and different source domains.
d is typically designed as a parameterized classifier in domain adversarial networks (Ganin et al., 2016;Zhang et al., 2017), which is trained jointly with the encoder and the classifiers through a minimax game.