From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] gnu: Add r-glmnet. Date: Thu, 30 Jun 2016 14:42:53 +0200 Message-ID: References: <20160630014444.28656-1-donttrustben@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIbJC-0000Li-3M for guix-devel@gnu.org; Thu, 30 Jun 2016 08:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIbJ8-00034n-37 for guix-devel@gnu.org; Thu, 30 Jun 2016 08:43:06 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:47458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIbJ7-00034R-Ou for guix-devel@gnu.org; Thu, 30 Jun 2016 08:43:02 -0400 In-Reply-To: <20160630014444.28656-1-donttrustben@gmail.com> 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: Ben Woodcroft Cc: guix-devel@gnu.org Ben Woodcroft writes: > * 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") Does this need to be all caps? > + (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+))) The rest looks good to me. Thanks! ~~ Ricardo