Before revision:  We implement the re-weighting as an inner product in a function space called a reproducing kernel Hilbert space (RKHS), with a  closed form solution that can be computed in one line of code. We prove uniform consistency and provide finite sample rates of convergence.
After revision:  We implement the re-weighting as an inner product in a function space called a reproducing kernel Hilbert space (RKHS), with a closed form solution . For the nonparametric case, we prove uniform consistency and provide finite sample rates of convergence.