summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-09-08 23:00:05 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-08 23:03:11 +0100
commit5dbc832d24f268433b8bec10c5f2c628b051c0f7 (patch)
tree5517079bd67077ea40cc88926b04ef566c3e58e7 /gnu
parent8bb2eec536682f5227b88860c628d0ef8beae95f (diff)
gnu: Add go-github-com-kshedden-statmodel.
* gnu/packages/golang-maths.scm (go-github-com-kshedden-statmodel): New variable. Change-Id: I31ba3cfd863afcdb5119ee7674f3c3f0d26f908d
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang-maths.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm
index b5979a0f763..b1bfe897cdc 100644
--- a/gnu/packages/golang-maths.scm
+++ b/gnu/packages/golang-maths.scm
@@ -254,6 +254,45 @@ in typed Go slices. Only one chunk of the Dstream is held in memory at one
time.")
(license license:bsd-3)))
+(define-public go-github-com-kshedden-statmodel
+ (package
+ (name "go-github-com-kshedden-statmodel")
+ (version "0.0.0-20210519035403-ee97d3e48df1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kshedden/statmodel")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0v1p0gzkjakci7wbp6x9b4zgnh1qs1lpr6dfb663w868q9hx95vy"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/kshedden/statmodel"
+ #:test-flags #~(list "-vet=off")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-examples-and-benchmarks
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "duration/examples")
+ (delete-file-recursively "glm/examples")))))))
+ (propagated-inputs
+ (list go-github-com-kshedden-dstream
+ go-gonum-org-v1-gonum))
+ (home-page "https://github.com/kshedden/statmodel")
+ (synopsis "Statistical modeling in Golang")
+ (description
+ "This package implements a functionality for fitting statistical model.
+Additional Go packages include @code{glm} for Generalized Liner Models and
+@code{duration} for survival analysis. All models can be fit with maximum (or
+quasi-maximum) likelihood estimation, with optional L1 (Lasso) or L2 (ridge)
+penalization.")
+ (license license:bsd-3)))
+
(define-public go-github-com-montanaflynn-stats
(package
(name "go-github-com-montanaflynn-stats")