uLSIF: Estimate Density Ratio p(x)/q(y) by uLSIF (unconstrained...

Description Usage Arguments Value

Description

Estimate Density Ratio p(x)/q(y) by uLSIF (unconstrained Least-Square Importance Fitting)

Usage

1
2
uLSIF(x, y, sigma = 10^seq(-3, 1, length.out = 9), lambda = 10^seq(-3,
  1, length.out = 9), kernel_num = 100, verbose = TRUE)

Arguments

x

numeric vector or matrix. Data from a numerator distribution p(x).

y

numeric vector or matrix. Data from a denominator distribution q(y).

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).

Value

uLSIF object that contains a function to compute estimated density ratio.


densratio documentation built on May 9, 2019, 1:03 a.m.