From 5dbc832d24f268433b8bec10c5f2c628b051c0f7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Mon, 8 Sep 2025 23:00:05 +0100 Subject: [PATCH] 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 b5979a0f763eeb3beb7d757b378b1673743b8fae..b1bfe897cdcf0ec961021f8f47d451f32ad39729 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")