Algorithms for Covariate Shift