me
/
guix
Archived
1
0
Fork 0

gnu: Add python-lifelines.

* gnu/packages/statistics.scm (python-lifelines): New variable.

Change-Id: I101c90521a624406a0e95a15566e32e964246034
master
Ricardo Wurmus 2024-06-16 22:48:48 +02:00
parent 385b08370a
commit 21ce9502f1
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 35 additions and 0 deletions

View File

@ -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")