guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 5dbc832d24f268433b8bec10c5f2c628b051c0f7
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Mon Sep 8 23:00:05 2025 +0100

    gnu: Add go-github-com-kshedden-statmodel.
    
    * gnu/packages/golang-maths.scm (go-github-com-kshedden-statmodel): New 
variable.
    
    Change-Id: I31ba3cfd863afcdb5119ee7674f3c3f0d26f908d
---
 gnu/packages/golang-maths.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm
index b5979a0f76..b1bfe897cd 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")

Reply via email to