Skip to content

ROSE

Random Over-Sampling Examples

v0.0-4 · Jun 14, 2021 · GPL-2

Description

Functions to deal with binary classification problems in the presence of imbalanced classes. Synthetic balanced samples are generated according to ROSE (Menardi and Torelli, 2013). Functions that implement more traditional remedies to the class imbalance are also provided, as well as different metrics to evaluate a learner accuracy. These are estimated by holdout, bootstrap or cross-validation methods.

Downloads

CRAN

14.7K

Last 30 days

957th

51.2K

Last 90 days

239.4K

Last year

Trend: -21.9% (30d vs prior 30d)

r2u CRAN

329

Last 30 days

598

Last 90 days

1.5K

Last year

Trend: +77.8% (30d vs prior 30d)

autoCRAN

7

Last 7 days

13

Last 30 days

3

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

115

Last 30 days

454

Last 90 days

1.8K

Last year

Trend: -19.6% (30d vs prior 30d)

CRAN Check Status

2 NOTE
11 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Nicola Lunardon <nicola.lunardon@unimib.it>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Nicola",
                      family = "Lunardon",
                      role = c("aut", "cre"),
                      email = "nicola.lunardon@unimib.it"),
               person(given = "Giovanna",
                      family = "Menardi",
                      role = "aut"),
               person(given = "Nicola",
                      family = "Torelli",
                      role = "aut"))
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Nicola Lunardon <nicola.lunardon@unimib.it>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Nicola",
                      family = "Lunardon",
                      role = c("aut", "cre"),
                      email = "nicola.lunardon@unimib.it"),
               person(given = "Giovanna",
                      family = "Menardi",
                      role = "aut"),
               person(given = "Nicola",
                      family = "Torelli",
                      role = "aut"))
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Nicola Lunardon <nicola.lunardon@unimib.it>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Nicola",
                      family = "Lunardon",
                      role = c("aut", "cre"),
 
...[truncated]...
e = "aut"))
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Nicola Lunardon <nicola.lunardon@unimib.it>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Nicola",
                      family = "Lunardon",
                      role = c("aut", "cre"),
 
...[truncated]...
e = "aut"))
as necessary.

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

Line coverage

Expression

Tests / Examples

Functions

29 5 exported

Complexity

4.6 avg / 44 max

Call network

29 nodes / 10 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

1,777

Files

16

Compiled share

0%

Has compiled src

No

Language breakdown

R 867 (48.8%)Docs 910 (51.2%)

API

Exported functions

5

Internal functions

24

Recent export changes

v0.0-1+5 roc.curve, ROSE.eval, ROSE +2 more

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

4

First release

2013-02-04

Latest release

2021-06-14

Avg cadence

224 days

Cold removal rate

Dep drift

0

LOC over versions

v0.0-1: 1,765 LOCv0.0-2: 2,027 LOCv0.0-3: 1,778 LOCv0.0-4: 1,777 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies themis RStoolbox ROSE

Version History

5 tracked
new 0.0-4 Mar 10, 2026
updated 0.0-4 ← 0.0-3 diff Jun 13, 2021
updated 0.0-3 ← 0.0-2 diff Jul 14, 2014
updated 0.0-2 ← 0.0-1 diff Sep 15, 2013
new 0.0-1 Feb 28, 2013