Estimate Density Ratio p(x)/q(x) by uLSIF (unconstrained Least-Square Importance Fitting)
uLSIF(x1, x2, sigma = 10^seq(-3, 1, length.out = 9),
lambda = 10^seq(-3, 1, length.out = 9), kernel_num = 100,
verbose = TRUE)
numeric vector or matrix. Data from a numerator distribution p(x).
numeric vector or matrix. Data from a denominator distribution q(x).
positive numeric vector. Search range of Gaussian kernel bandwidth.
positive numeric vector. Search range of regularization parameter.
positive integer. Number of kernels.
logical(default TRUE).
uLSIF object that contains a function to compute estimated density ratio.