diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2024-06-16 22:48:48 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2024-06-16 22:54:56 +0200 |
commit | 21ce9502f155596a43a9ecef93148b8a8806906f (patch) | |
tree | 982d18e33bf1c66c7d878ca7367832e211d6197c | |
parent | 385b08370a5671a6e66592715a4c05527c71dc0c (diff) | |
download | guix-patches-21ce9502f155596a43a9ecef93148b8a8806906f.tar guix-patches-21ce9502f155596a43a9ecef93148b8a8806906f.tar.gz |
gnu: Add python-lifelines.
* gnu/packages/statistics.scm (python-lifelines): New variable.
Change-Id: I101c90521a624406a0e95a15566e32e964246034
-rw-r--r-- | gnu/packages/statistics.scm | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm index ebe2d3025c..af2ae9ec05 100644 --- a/gnu/packages/statistics.scm +++ b/gnu/packages/statistics.scm @@ -2348,6 +2348,41 @@ building design matrices.") ;; and is covered by the PSFL. (license (list license:bsd-2 license:psfl)))) +(define-public python-lifelines + (package + (name "python-lifelines") + (version "0.28.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "lifelines" version)) + (sha256 + (base32 "0pmjb3z1rw1ia64gw87r6y9x1g4kwpw239gqzsa9qh7xadj75kzf")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; This accuracy test fails because 0.012 is not < 0.01. + '(list "-k" "not test_weibull_with_delayed_entries"))) + (propagated-inputs (list python-autograd + python-autograd-gamma + python-formulaic + python-matplotlib + python-numpy + python-pandas + python-scipy)) + (native-inputs (list python-dill + python-flaky + python-joblib + python-pytest)) + (home-page "https://github.com/CamDavidsonPilon/lifelines") + (synopsis + "Survival analysis including Kaplan Meier, Nelson Aalen and regression") + (description + "This package enables survival analysis in Python, including Kaplan +Meier, Nelson Aalen and regression.") + (license license:expat))) + (define-public python-mapie (package (name "python-mapie") |