Package: densityratio 0.1.1
densityratio: Distribution comparison through density ratio estimation
This package provides functionality to directly estimate the ratio of two probability distributions from samples from these distributions without estimating the densities separately. Density ratio estimation serves many purposes, for example, prediction, outlier detection, change-point detection in time-series, importance weighting under domain adaptation (i.e., sample selection bias) and evaluation of synthetic data utility. The rationale behind these use-cases is that differences between two data distributions can be captured in the ratio their density ratio, which is estimated over the entire multivariate space of the data. Computationally intensive code is executed in `C++` using `Rcpp` and `RcppArmadillo`. The package provides good default hyperparameters that can be optimized in cross-validation (we do recommend understanding those parameters before using `densityratio` in practice). Multiple density ratio estimation methods are implemented, such as unconstrained least-squares importance fitting (`ulsif()`), Kullback-Leibler importance estimation procedure (`kliep()`), ratio of estimated densities (`naive()`), ratio of estimated densities after dimension reduction (`naivesubspace()`), and least-squares heterodistributional subspace search (`lhss()`; experimental).
Authors:
densityratio_0.1.1.tar.gz
densityratio_0.1.1.zip(r-4.5)densityratio_0.1.1.zip(r-4.4)densityratio_0.1.1.zip(r-4.3)
densityratio_0.1.1.tgz(r-4.4-x86_64)densityratio_0.1.1.tgz(r-4.4-arm64)densityratio_0.1.1.tgz(r-4.3-x86_64)densityratio_0.1.1.tgz(r-4.3-arm64)
densityratio_0.1.1.tar.gz(r-4.5-noble)densityratio_0.1.1.tar.gz(r-4.4-noble)
densityratio_0.1.1.tgz(r-4.4-emscripten)densityratio_0.1.1.tgz(r-4.3-emscripten)
densityratio.pdf |densityratio.html✨
densityratio/json (API)
# Install 'densityratio' in R: |
install.packages('densityratio', repos = c('https://thomvolker.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/thomvolker/densityratio/issues
- denominator_data - Denominator_data
- numerator_data - Numerator_data
Last updated 2 months agofrom:e34ca87ae3. Checks:OK: 1 NOTE: 8. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 01 2024 |
R-4.5-win-x86_64 | NOTE | Nov 01 2024 |
R-4.5-linux-x86_64 | NOTE | Nov 01 2024 |
R-4.4-win-x86_64 | NOTE | Nov 01 2024 |
R-4.4-mac-x86_64 | NOTE | Nov 01 2024 |
R-4.4-mac-aarch64 | NOTE | Nov 01 2024 |
R-4.3-win-x86_64 | NOTE | Nov 01 2024 |
R-4.3-mac-x86_64 | NOTE | Nov 01 2024 |
R-4.3-mac-aarch64 | NOTE | Nov 01 2024 |
Exports:distancekernel_gaussiankliepkmmlhssnaiveplot_bivariateplot_univariatespectralulsif
Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepbapplypillarpkgconfigquadprogR6RColorBrewerRcppRcppArmadilloRcppProgressrlangscalestibbleutf8vctrsviridisLitewithr