Adaptive Risk Minimization: Learningto Adaptto Domain Shift