all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add r-glmnet.
@ 2016-06-30  1:44 Ben Woodcroft
  2016-06-30 12:42 ` Ricardo Wurmus
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Woodcroft @ 2016-06-30  1:44 UTC (permalink / raw)
  To: guix-devel

* 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: Add r-glmnet.
  2016-06-30  1:44 [PATCH] gnu: Add r-glmnet Ben Woodcroft
@ 2016-06-30 12:42 ` Ricardo Wurmus
  2016-06-30 23:08   ` Ben Woodcroft
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Wurmus @ 2016-06-30 12:42 UTC (permalink / raw)
  To: Ben Woodcroft; +Cc: guix-devel


Ben Woodcroft <donttrustben@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: Add r-glmnet.
  2016-06-30 12:42 ` Ricardo Wurmus
@ 2016-06-30 23:08   ` Ben Woodcroft
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Woodcroft @ 2016-06-30 23:08 UTC (permalink / raw)
  To: Ricardo Wurmus, Ben Woodcroft; +Cc: guix-devel



On 30/06/16 22:42, Ricardo Wurmus wrote:
> Ben Woodcroft <donttrustben@gmail.com> 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?

No they do not. I made all except the first lower case and pushed. 
Thanks for the review.
ben

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-30 23:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-30  1:44 [PATCH] gnu: Add r-glmnet Ben Woodcroft
2016-06-30 12:42 ` Ricardo Wurmus
2016-06-30 23:08   ` Ben Woodcroft

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.