[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add ApaptiveSparsity.
From: |
Ricardo Wurmus |
Subject: |
[PATCH] Add ApaptiveSparsity. |
Date: |
Thu, 17 Dec 2015 17:00:19 +0100 |
>From b9ef283243b792ea7ac095a203e5aea3c221f78f Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Thu, 17 Dec 2015 16:27:32 +0100
Subject: [PATCH 1/2] gnu: Add r-rcpparmadillo.
* gnu/packages/statistics.scm (r-rcpparmadillo): New variable.
---
gnu/packages/statistics.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 95176aa..8beb8c8 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1411,3 +1411,31 @@ encoder/decoder, round-off-error-free sum and cumsum,
etc.")
variety of formats.")
(license license:gpl3+)))
+(define-public r-rcpparmadillo
+ (package
+ (name "r-rcpparmadillo")
+ (version "0.6.200.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (cran-uri "RcppArmadillo" version))
+ (sha256
+ (base32
+ "137wqqga776yj6synx5awhrzgkz7mmqnvgmggh9l4k6d99vwp9gj"))))
+ (properties `((upstream-name . "RcppArmadillo")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-rcpp" ,r-rcpp)))
+ (home-page "https://github.com/RcppCore/RcppArmadillo")
+ (synopsis "Rcpp integration for the linear algebra library 'Armadillo'")
+ (description
+ "Armadillo is a templated C++ linear algebra library that aims towards a
+good balance between speed and ease of use. Integer, floating point and
+complex numbers are supported, as well as a subset of trigonometric and
+statistics functions. Various matrix decompositions are provided through
+optional integration with LAPACK and ATLAS libraries. This package includes
+the header files from the templated Armadillo library.")
+ ;; Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
+ ;; bindings to Armadillo) is licensed under the GNU GPL version 2 or
+ ;; later, as is the rest of 'Rcpp'.
+ (license license:gpl2+)))
+
--
2.1.0
>From 64e16086990806f2f30e651dbbf2ff62470b2fcc Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Thu, 17 Dec 2015 16:28:25 +0100
Subject: [PATCH 2/2] gnu: Add AdaptiveSparsity.
* gnu/packages/machine-learning.scm (r-adaptivesparsity): New variable.
---
gnu/packages/machine-learning.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/machine-learning.scm
b/gnu/packages/machine-learning.scm
index bfa88ac..030d60d 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -23,6 +23,7 @@
#:use-module (guix download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system r)
#:use-module (gnu packages)
#:use-module (gnu packages boost)
#:use-module (gnu packages compression)
@@ -290,3 +291,27 @@ combine multiple data representations, algorithm classes,
and general purpose
tools. This enables both rapid prototyping of data pipelines and extensibility
in terms of new algorithms.")
(license license:gpl3+)))
+
+(define-public r-adaptivesparsity
+ (package
+ (name "r-adaptivesparsity")
+ (version "1.4")
+ (source (origin
+ (method url-fetch)
+ (uri (cran-uri "AdaptiveSparsity" version))
+ (sha256
+ (base32
+ "1az7isvalf3kmdiycrfl6s9k9xqk22k1mc6rh8v0jmcz402qyq8z"))))
+ (properties
+ `((upstream-name . "AdaptiveSparsity")))
+ (build-system r-build-system)
+ (propagated-inputs
+ `(("r-rcpp" ,r-rcpp)
+ ("r-rcpparmadillo" ,r-rcpparmadillo)))
+ (home-page "http://cran.r-project.org/web/packages/AdaptiveSparsity")
+ (synopsis "Adaptive sparsity models")
+ (description
+ "This package implements the Figueiredo machine learning algorithm for
+adaptive sparsity and the Wong algorithm for adaptively sparse gaussian
+geometric models.")
+ (license license:lgpl3+)))
--
2.1.0
- [PATCH] Add ApaptiveSparsity.,
Ricardo Wurmus <=