Skip to content

densratio

0.3.1Package record

Density Ratio Estimation

3packages dependsuggested by 1
5.1Kdownloads / year
41.6%test coverage
13/13flavors OK

Overview

About

Density ratio estimation. The estimated density ratio function can be used in many applications such as anomaly detection, change-point detection, covariate shift adaptation. The implemented methods are uLSIF (Hido et al. (2011) doi:10.1007/s10115-010-0283-2), RuLSIF (Yamada et al. (2011) doi:10.1162/NECO_a_00442), and KLIEP (Sugiyama et al. (2007) doi:10.1007/s10463-008-0197-x).

Install

Health

CRAN checks
13OK
Slowest check: 1.5 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • NOTE12 OK, 1 NOTE2026-06-08
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3.1
READMEYes · 1,035 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · does not mention 0.3.1Citation fileNo
Help pages
5
Examples that run
100%1 run in a plain check
Exported functions with examples
25%
Documented parameters
93%
Return-value docs
100%
Help pages citing references
0%

Downloads

5.1K
CRAN downloads in the past year
Rank #6,123 · ~14/day · ~421/mo
Daily download trend is not available in this view yet.
49230 days
1.4K90 days
5.1K1 year
Compare downloads with other packages →
Also on140 r2u3 autocran

Repository

23Stars
8Forks
5Open issues
2Open PRs
3Releases
75Commits
1Commit identities
r-packagestatisticsmachine-learninganomaly-detection
75 commits · Last activity 2026-05-01 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
229
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-22 · 222026-07-07 · 23
PracticesBeta

9 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/hoxo-m/densratio on 2026-10-22.

Continuous integration (3)
GitHub ActionsR CMD check workflowTravis CI (config file)

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-05-01 · The repository has a site deploy workflow

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing densratio adds no packages beyond those that come with R.

Depends (0)
none
Imports (1)
utils
LinkingTo (0)
none
Suggests (6)
Enhances (0)
none
Reverse dependencies
3direct
0indirect
Depends 1 · Imports 2
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.0.3 (2016)
Releases (4)

Pick two releases to compare their code metrics.

  • 0.3.1Latest
    record
    2026-04-29 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2.1
    record
    2019-06-30 · diff ↗ ·
    added 1 export
    RuLSIF
  • 0.1.1
    record
    2019-05-09 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 0.0.3
    record
    2016-03-29
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2016-03-29
Total releases
4 / 10 yrs
License
MIT + file LICENSE OSI
Download size
72 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("densratio")
Makiyama, K. (2026). densratio: Density Ratio Estimation (Version 0.3.1) [Computer software]. https://doi.org/10.32614/CRAN.package.densratio

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for densratio version 0.3.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy