Description Usage Arguments Details Value
Sugiyama density ratio estimation method, with an L1 penalty on the parameters.
1 2 3 |
x.de |
A matrix with d rows, with one sample from p(x_de) per column. |
x.nu |
A matrix with d rows, with one sample from p(x_nu) per column. |
lambda |
Positive real number. Regularisation parameter, see Sugiyama, Suzuki and Kanamori (2012) Section 6.2.1 for details |
sigma.chosen |
Positive real number. Sigma for the Gaussian kernel radial basis functions. If this is set to zero, will be chosen via cross validation. |
is.adaptive |
Boolean. Adaptively choose location of basis functions. |
neigh.rank |
Positive integer. How many other kernels to use to compute distance metrics. |
kernel.low |
Real number. Lower bound for rescaled distances. |
kernel.high |
Real number. Upper bound for rescaled distances. |
b |
Positive integer. How many kernels to use. |
fold |
Positive integer. How many cross validation folds to use to
select |
x.de
and x.nu
should be the same dimension (same number of
rows), but there can an uneven number of samples (number of rows)
list with the following elements:
basis function parameter estimates.
final cross validation score, used to select sigma.chosen.
the chosen centers for the density ratio.
the value of sigma.chosen after the cross validation.
the value of is.adaptive - used to figure out which basis function to call later.
vector of distances between centers, used if is.adaptive is true
Note that this is list is meant to be passed to fit.dr
. It
also serves as a small way to represent the estimated density ratio.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.