Package: densityratio 0.2.2

densityratio: Distribution Comparison Through Density Ratio Estimation
Fast, flexible and user-friendly tools for distribution comparison through direct density ratio estimation. The estimated density ratio can be used for covariate shift adjustment, outlier-detection, change-point detection, classification and evaluation of synthetic data quality. The package implements multiple non-parametric estimation techniques (unconstrained least-squares importance fitting, ulsif(), Kullback-Leibler importance estimation procedure, kliep(), spectral density ratio estimation, spectral(), kernel mean matching, kmm(), and least-squares hetero-distributional subspace search, lhss()). with automatic tuning of hyperparameters. Helper functions are available for two-sample testing and visualizing the density ratios. For an overview on density ratio estimation, see Sugiyama et al. (2012) <doi:10.1017/CBO9781139035613> for a general overview, and the help files for references on the specific estimation techniques.
Authors:
densityratio_0.2.2.tar.gz
densityratio_0.2.2.tar.gz(r-4.7-arm64)densityratio_0.2.2.tar.gz(r-4.7-x86_64)densityratio_0.2.2.tar.gz(r-4.6-arm64)densityratio_0.2.2.tar.gz(r-4.6-x86_64)
densityratio_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
densityratio/json (API)
NEWS
| # Install 'densityratio' in R: |
| install.packages('densityratio', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/thomvolker/densityratio/issues
Pkgdown/docs site:https://thomvolker.github.io
- colon - Colon
- denominator_data - Denominator_data
- denominator_small - Denominator_small
- insurance - Insurance
- kidiq - Kidiq
- numerator_data - Numerator_data
- numerator_small - Numerator_small
Last updated from:c3b704d3a4. Checks:6 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 281 | ||
| linux-devel-x86_64 | OK | 518 | ||
| source / vignettes | OK | 261 | ||
| linux-release-arm64 | OK | 296 | ||
| linux-release-x86_64 | OK | 494 | ||
| wasm-release | OK | 146 |
Exports:kliepkmmlhssnaiveplot_bivariateplot_univariatespectralulsif
Dependencies:clicpp11farverggh4xggplot2gluegtableisobandlabelinglatticelifecycleMatrixosqppbapplyR6RColorBrewerRcppRcppArmadilloRcppProgressrlangS7scalesvctrsviridisLitewithr
Covariate shift adjustment
Rendered fromcovariate-shift.Rmdusingknitr::rmarkdownon Jun 13 2026.Last update: 2025-07-18
Started: 2025-05-19
densityratio
Rendered fromdensityratio.Rmdusingknitr::rmarkdownon Jun 13 2026.Last update: 2025-07-18
Started: 2025-05-19
High dimensional two-sample testing
Rendered fromhigh-dim-testing.Rmdusingknitr::rmarkdownon Jun 13 2026.Last update: 2025-05-19
Started: 2025-05-19
