Subject: [PATCH] gnu: Add r-rrf.
From: "King, Spencer" <[email-masked]>
To: "King, Spencer via Guix-patches via" <[email-masked]>
Cc: Ricardo Wurmus <[email-masked]>, "[email-masked]" <[email-masked]>, "[email-masked]" <[email-masked]>
Date: Thu, 6 Mar 2025 06:17:31 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

From 11a542c84107ff94f4c791690ab705c0f644b717 Mon Sep 17 00:00:00 2001
From: Spencer King <[email-masked]>
Date: Wed, 5 Mar 2025 23:59:17 -0600
Subject: [PATCH] gnu: Add r-rrf.

* gnu/packages/cran.scm (r-rrf): New variable.

Change-Id: Ifaa0867d357eb1bb125182909344f3144ca9c675
---
 gnu/packages/cran.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 81938b2dad..ab87be97dd 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -44087,6 +44087,31 @@ (define-public r-gsalib
 for variant discovery in high-throughput sequencing data.")
     (license license:expat)))
 
+(define-public r-rrf
+  (package
+    (name "r-rrf")
+    (version "1.9.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "RRF" version))
+       (sha256
+        (base32 "05sswrqjrwyyk9aha7fvvw78iymgv89y0asl5cqfl9fg7gsw9ghs"))))
+    (properties `((upstream-name . "RRF")))
+    (build-system r-build-system)
+    (native-inputs (list gfortran))
+    (home-page "https://sites.google.com/site/houtaodeng/rrf")
+    (synopsis "Regularized Random Forest")
+    (description
+     "Feature Selection with Regularized Random Forest.  This package is based on the
+@code{randomForest} package by Andy Liaw.  The key difference is the
+@code{RRF()} function that builds a regularized random forest.  Fortran original
+by Leo Breiman and Adele Cutler, R port by Andy Liaw and Matthew Wiener,
+Regularized random forest for classification by Houtao Deng, Regularized random
+forest for regression by Xin Guan.  Reference: Houtao Deng (2013)
+<doi:10.48550/@code{arXiv.1306.0237>}.")
+    (license license:gpl2+)))
+
 (define-public r-randomforestexplainer
   (package
     (name "r-randomforestexplainer")

base-commit: 72923a75af53a819f2be9dc4ae3c096aa3147d3f
-- 
2.41.0