mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: Add AdaptiveSparsity.
* gnu/packages/machine-learning.scm (r-adaptivesparsity): New variable.
This commit is contained in:
parent
e22d4ca4c4
commit
8406138b72
1 changed files with 33 additions and 0 deletions
|
@ -23,6 +23,7 @@ (define-module (gnu packages machine-learning)
|
|||
#: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,35 @@ (define (delete-ifdefs file)
|
|||
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)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'link-against-armadillo
|
||||
(lambda _
|
||||
(substitute* "src/Makevars"
|
||||
(("PKG_LIBS=" prefix)
|
||||
(string-append prefix "-larmadillo"))))))))
|
||||
(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+)))
|
||||
|
|
Loading…
Reference in a new issue