Estimate Density Ratio p(x)/q(x) by uLSIF (unconstrained Least-Square Importance Fitting)
Source:R/uLSIF.R
uLSIF.RdEstimate Density Ratio p(x)/q(x) by uLSIF (unconstrained Least-Square Importance Fitting)
Arguments
- x1
numeric vector or matrix. Data from a numerator distribution p(x).
- x2
numeric vector or matrix. Data from a denominator distribution q(x).
- sigma
positive numeric vector. Search range of Gaussian kernel bandwidth.
- lambda
positive numeric vector. Search range of regularization parameter.
- kernel_num
positive integer. Number of kernels.
- verbose
logical(default TRUE).