Description Usage Arguments Value Examples
Estimate Density Ratio p(x)/q(x)
1 2 3 |
x1 |
numeric vector or matrix. Data from a numerator distribution p(x). |
x2 |
numeric vector or matrix. Data from a denominator distribution q(x). |
method |
"uLSIF" (default), "RuLSIF", or "KLIEP". |
sigma |
positive numeric vector. Search range of Gaussian kernel bandwidth. |
lambda |
positive numeric vector. Search range of regularization parameter for uLSIF and RuLSIF. |
alpha |
numeric in [0, 1]. Relative parameter for RuLSIF. Default 0.1. |
kernel_num |
positive integer. Number of kernels. |
fold |
positive integer. Numer of the folds of cross validation for KLIEP. |
verbose |
logical (default TRUE). |
densratio object that contains a function to compute estimated density ratio.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.