From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: [PATCH] gnu: Add r-glmnet. Date: Thu, 30 Jun 2016 11:44:44 +1000 Message-ID: <20160630014444.28656-1-donttrustben@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIR7g-0006Jv-Vv for guix-devel@gnu.org; Wed, 29 Jun 2016 21:50:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIR7c-0006U9-Re for guix-devel@gnu.org; Wed, 29 Jun 2016 21:50:31 -0400 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:33570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIR7c-0006TN-Kr for guix-devel@gnu.org; Wed, 29 Jun 2016 21:50:28 -0400 Received: by mail-pf0-x22b.google.com with SMTP id i123so23752589pfg.0 for ; Wed, 29 Jun 2016 18:50:28 -0700 (PDT) Received: from localhost.localdomain ([103.25.181.216]) by smtp.googlemail.com with ESMTPSA id s12sm745275pfj.57.2016.06.29.18.44.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Jun 2016 18:44:52 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/statistics.scm (r-glmnet): New variable. --- gnu/packages/statistics.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index f037392..732d874 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -2244,6 +2244,32 @@ singular and eigenvalue decompositions, as well as for principal component analysis of large sparse or dense matrices.") (license (list license:gpl2+ license:gpl3+)))) +(define-public r-glmnet + (package + (name "r-glmnet") + (version "2.0-5") + (source + (origin + (method url-fetch) + (uri (cran-uri "glmnet" version)) + (sha256 + (base32 + "1cbpzmbv837fvq88rgn6mgzgr9f1wqp9fg8gh2kkmngvr1957a9c")))) + (build-system r-build-system) + (inputs + `(("gfortran" ,gfortran))) + (propagated-inputs + `(("r-foreach" ,r-foreach))) + (home-page "http://www.jstatsoft.org/v33/i01") + (synopsis "Lasso and Elastic-Net Regularized Generalized Linear Models") + (description + "The glmnet package provides efficient procedures for fitting the entire +lasso or elastic-net regularization path for linear and Poisson regression, as +well as logistic, multinomial, Cox, multiple-response Gaussian and grouped +multinomial models. The algorithm uses cyclical coordinate descent in a +path-wise fashion.") + (license license:gpl2+))) + (define-public r-pkgmaker (package (name "r-pkgmaker") -- 2.9.0