A Python code for "Towards a Unified Analysis of Kernel-based Methods Under Covariate Shift" (https://arxiv.org/abs/2310.08237).
KLIEP_importance_estimation.py is devoted to accomplishing the KLIEP algorithm for estimating the importance ratio.
United_function_tools.py contains the function tools used in our experiment, including four parts: KRR estimation, KQR estimation, KLR estimation, and KSVM estimation.
Kernel_covariate_shift_experiments.ipynb is our main code that performs the experiments. In addition to the KRR model for the 1-dimensional bounded case that we put in the first, we only present the code for varying the regularization parameter