From 37337699d7d6069ccd38aae6cc25bdbf4a6e56fc Mon Sep 17 00:00:00 2001 From: Raoul Jean Pierre Bonnal Date: Fri, 3 Feb 2017 19:50:00 +0100 Subject: [PATCH] gnu: Add r-randomforest. * gnu/packages/statistics.scm (r-randomforest): New variable. Signed-off-by: Kei Kebreau --- gnu/packages/statistics.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index 596c2baf5c..80f0b99b86 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2016 Pjotr Prins ;;; Copyright © 2016 Roel Janssen ;;; Copyright © 2016 Ben Woodcroft -;;; Copyright © 2016 Raoul Bonnal +;;; Copyright © 2016, 2017 Raoul Bonnal ;;; ;;; This file is part of GNU Guix. ;;; @@ -4145,3 +4145,25 @@ regression.") perform @dfn{independent component analysis} (ICA) and projection pursuit.") ;; Any GPL version. (license license:gpl3+))) + +(define-public r-randomforest + (package + (name "r-randomforest") + (version "4.6-12") + (source + (origin + (method url-fetch) + (uri (cran-uri "randomForest" version)) + (sha256 + (base32 + "1i43idaihhl6nwqw42v9dqpl6f8z3ykcn2in32lh2755i27jylbf")))) + (properties `((upstream-name . "randomForest"))) + (build-system r-build-system) + (home-page "https://www.stat.berkeley.edu/~breiman/RandomForests/") + (native-inputs + `(("gfortran" ,gfortran))) + (synopsis "Breiman and Cutler's random forests for classification and regression") + (description +"This package provides the Breiman and Cutler's random forests algorithm, based on a +forest of trees using random inputs, for classification and regression.") + (license license:gpl2+)))