CrossTrainer: Practical Domain Adaptation with Loss Reweighting