Imported from https://github.com/Jinsung-Jeon/DomainAdaptation