Question 1: Short answer
hardAI-checkedML FundamentalsTo correct covariate shift, you train logistic regression to distinguish training inputs (label ) from equally many test inputs (label ). For a training example the classifier outputs . Which importance weight should that example get in weighted empirical risk minimization, where is the test and the training input distribution?