Subject: [bug#63923] [PATCH 1/2] gnu: Add r-caretensemble.

From: Navid Afkhami <[email-masked]>
Date: Tue, 6 Jun 2023 11:33:27 +0200

* gnu/packages/cran.scm (r-caretensemble): New variable.
---
 gnu/packages/cran.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index d8221fd0fc..b2eb3efc15 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -27921,6 +27921,37 @@ (define-public r-caret
 classification and regression models.")
     (license license:gpl2+)))
 
+(define-public r-caretensemble
+  (package
+    (name "r-caretensemble")
+    (version "2.0.2")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "caretEnsemble" version))
+              (sha256
+               (base32
+                "0kagw1ilfz1yy1q0ysmkp3f13k08hiq84xk7d0xp5p7d5dsg7z6q"))))
+    (properties `((upstream-name . "caretEnsemble")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-caret
+                             r-data-table
+                             r-digest
+                             r-ggplot2
+                             r-gridextra
+                             r-lattice
+                             r-pbapply
+                             r-plyr))
+    (native-inputs (list r-knitr))
+    (home-page "https://github.com/zachmayer/caretEnsemble")
+    (synopsis "Ensembles of caret models")
+    (description
+     "Framework for fitting multiple caret models.
+This Framework use the same re-sampling strategy as well as creating
+ensembles of such models.  Use caretList to fit multiple models and
+then use caretEnsemble to combine them greedily or caretStack to
+combine them using a caret model.")
+    (license license:expat)))
+
 (define-public r-adabag
   (package
     (name "r-adabag")

base-commit: e3cd3f03202c48cd8d777f4769b4e31fea8dcd60
-- 
2.34.1