From ec3f52f1a870d89b9d556d7349abdbe015adb390 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 26 Nov 2024 17:20:30 +0100 Subject: [PATCH] gnu: Add r-rose. * gnu/packages/cran.scm (r-rose): New variable. Change-Id: I403f1ca3bd7d9d5bf13045e9e6f1a1809f3622d9 --- gnu/packages/cran.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index eea53f603e..4aec07ea38 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -2027,6 +2027,29 @@ (define-public r-robustrankaggreg significance probabilities for all the elements in the final ranking.") (license license:gpl2))) +(define-public r-rose + (package + (name "r-rose") + (version "0.0-4") + (source + (origin + (method url-fetch) + (uri (cran-uri "ROSE" version)) + (sha256 + (base32 "0y3v9zkgaxpv4f4zn22ra1gkkqg5hdz8js47ppciqahfydjbfl3p")))) + (properties `((upstream-name . "ROSE"))) + (build-system r-build-system) + (home-page "https://cran.r-project.org/package=ROSE") + (synopsis "Random over-sampling examples") + (description + "This package provides 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.") + (license license:gpl2))) + (define-public r-rotor (package (name "r-rotor")