From 2a1fd51864826dd983194a16a49a9e0220f02454 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 14 Dec 2019 11:28:50 +0100 Subject: gnu: Add r-adabag. * gnu/packages/cran.scm (r-adabag): New variable. --- gnu/packages/cran.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/cran.scm') diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index 64b6ed9c10..6b64e797ea 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -18298,3 +18298,31 @@ (define-public r-acuityview "This package provides a simple method for representing a visual scene as it may be seen by an animal with less acute vision.") (license license:gpl2+))) + +(define-public r-adabag + (package + (name "r-adabag") + (version "4.2") + (source + (origin + (method url-fetch) + (uri (cran-uri "adabag" version)) + (sha256 + (base32 + "109wrl1pwvmyv2l909hrvk7dg4aa9pv449mvdycp50zwrsw9w0a7")))) + (properties `((upstream-name . "adabag"))) + (build-system r-build-system) + (propagated-inputs + `(("r-caret" ,r-caret) + ("r-doparallel" ,r-doparallel) + ("r-foreach" ,r-foreach) + ("r-rpart" ,r-rpart))) + (home-page "https://cran.r-project.org/web/packages/adabag/") + (synopsis "Multiclass AdaBoost.M1, SAMME and Bagging") + (description + "This package implements Freund and Schapire's Adaboost.M1 algorithm and +Breiman's Bagging algorithm using classification trees as individual +classifiers. Once these classifiers have been trained, they can be used to +predict on new data. Also, cross validation estimation of the error can be +done.") + (license license:gpl2+))) -- cgit v1.2.3