Subject: [PATCH 1/2] gnu: Add r-nestedcv.

From: "Afkhami, Navid" <[email-masked]>
Date: Thu, 2 Nov 2023 17:13:49 +0000

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

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

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index e82b027052..5aff1a2dd5 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -10007,6 +10007,43 @@ (define-public r-n2r
 @acronym{NSW, Navigable Small World} graphs.")
     (license license:asl2.0)))
 
+(define-public r-nestedcv
+  (package
+    (name "r-nestedcv")
+    (version "0.7.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "nestedcv" version))
+       (sha256
+        (base32 "0jpg4il1niyizfq8kkk391x7anhp2s38mrfypa86skr08ca46zss"))))
+    (properties `((upstream-name . "nestedcv")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-caret
+                             r-data-table
+                             r-doparallel
+                             r-foreach
+                             r-ggplot2
+                             r-glmnet
+                             r-matrixstats
+                             r-matrixtests
+                             r-proc
+                             r-rfast
+                             r-rlang))
+    (native-inputs (list r-knitr))
+    (home-page "https://github.com/myles-lewis/nestedcv")
+    (synopsis "Nested cross-validation with 'glmnet' and 'caret'")
+    (description
+     "Nested cross-validation applied to the glmnet and caret packages.
+With glmnet this includes cross-validation of elastic net alpha
+parameter.  A number of feature selection filter functions
+(t-test, Wilcoxon test, ANOVA, Pearson/Spearman correlation,
+random forest, ReliefF) for feature selection are provided and
+can be embedded within the outer loop of the nested CV.  Nested
+CV can be also be performed with the caret package giving access
+to the large number of prediction methods available in caret.")
+    (license license:expat)))
+
 (define-public r-network
   (package
     (name "r-network")

base-commit: f5346094f0365a2c04ca00111ff06e17dac832e2
-- 
2.34.1