scikit-survival 0.26.0__cp314-cp314-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. scikit_survival-0.26.0.dist-info/METADATA +185 -0
  2. scikit_survival-0.26.0.dist-info/RECORD +58 -0
  3. scikit_survival-0.26.0.dist-info/WHEEL +6 -0
  4. scikit_survival-0.26.0.dist-info/licenses/COPYING +674 -0
  5. scikit_survival-0.26.0.dist-info/top_level.txt +1 -0
  6. sksurv/__init__.py +183 -0
  7. sksurv/base.py +115 -0
  8. sksurv/bintrees/__init__.py +15 -0
  9. sksurv/bintrees/_binarytrees.cpython-314-darwin.so +0 -0
  10. sksurv/column.py +204 -0
  11. sksurv/compare.py +123 -0
  12. sksurv/datasets/__init__.py +12 -0
  13. sksurv/datasets/base.py +614 -0
  14. sksurv/datasets/data/GBSG2.arff +700 -0
  15. sksurv/datasets/data/actg320.arff +1169 -0
  16. sksurv/datasets/data/bmt.arff +46 -0
  17. sksurv/datasets/data/breast_cancer_GSE7390-metastasis.arff +283 -0
  18. sksurv/datasets/data/cgvhd.arff +118 -0
  19. sksurv/datasets/data/flchain.arff +7887 -0
  20. sksurv/datasets/data/veteran.arff +148 -0
  21. sksurv/datasets/data/whas500.arff +520 -0
  22. sksurv/docstrings.py +99 -0
  23. sksurv/ensemble/__init__.py +2 -0
  24. sksurv/ensemble/_coxph_loss.cpython-314-darwin.so +0 -0
  25. sksurv/ensemble/boosting.py +1564 -0
  26. sksurv/ensemble/forest.py +902 -0
  27. sksurv/ensemble/survival_loss.py +151 -0
  28. sksurv/exceptions.py +18 -0
  29. sksurv/functions.py +114 -0
  30. sksurv/io/__init__.py +2 -0
  31. sksurv/io/arffread.py +91 -0
  32. sksurv/io/arffwrite.py +181 -0
  33. sksurv/kernels/__init__.py +1 -0
  34. sksurv/kernels/_clinical_kernel.cpython-314-darwin.so +0 -0
  35. sksurv/kernels/clinical.py +348 -0
  36. sksurv/linear_model/__init__.py +3 -0
  37. sksurv/linear_model/_coxnet.cpython-314-darwin.so +0 -0
  38. sksurv/linear_model/aft.py +208 -0
  39. sksurv/linear_model/coxnet.py +592 -0
  40. sksurv/linear_model/coxph.py +637 -0
  41. sksurv/meta/__init__.py +4 -0
  42. sksurv/meta/base.py +35 -0
  43. sksurv/meta/ensemble_selection.py +724 -0
  44. sksurv/meta/stacking.py +370 -0
  45. sksurv/metrics.py +1028 -0
  46. sksurv/nonparametric.py +911 -0
  47. sksurv/preprocessing.py +195 -0
  48. sksurv/svm/__init__.py +11 -0
  49. sksurv/svm/_minlip.cpython-314-darwin.so +0 -0
  50. sksurv/svm/_prsvm.cpython-314-darwin.so +0 -0
  51. sksurv/svm/minlip.py +695 -0
  52. sksurv/svm/naive_survival_svm.py +249 -0
  53. sksurv/svm/survival_svm.py +1236 -0
  54. sksurv/testing.py +155 -0
  55. sksurv/tree/__init__.py +1 -0
  56. sksurv/tree/_criterion.cpython-314-darwin.so +0 -0
  57. sksurv/tree/tree.py +790 -0
  58. sksurv/util.py +416 -0
@@ -0,0 +1,185 @@
1
+ Metadata-Version: 2.4
2
+ Name: scikit-survival
3
+ Version: 0.26.0
4
+ Summary: Survival analysis built on top of scikit-learn
5
+ Author-email: Sebastian Pölsterl <sebp@k-d-w.org>
6
+ License-Expression: GPL-3.0-or-later
7
+ Project-URL: Homepage, https://github.com/sebp/scikit-survival
8
+ Project-URL: Documentation, https://scikit-survival.readthedocs.io
9
+ Project-URL: Source Code, https://github.com/sebp/scikit-survival
10
+ Project-URL: Bug Tracker, https://github.com/sebp/scikit-survival/issues
11
+ Project-URL: Release Notes, https://scikit-survival.readthedocs.io/en/latest/release_notes.html
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Operating System :: Microsoft :: Windows
17
+ Classifier: Operating System :: POSIX
18
+ Classifier: Programming Language :: C++
19
+ Classifier: Programming Language :: Cython
20
+ Classifier: Programming Language :: Python
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Software Development
27
+ Classifier: Topic :: Scientific/Engineering
28
+ Requires-Python: >=3.11
29
+ Description-Content-Type: text/x-rst
30
+ License-File: COPYING
31
+ Requires-Dist: ecos
32
+ Requires-Dist: joblib
33
+ Requires-Dist: numexpr
34
+ Requires-Dist: numpy
35
+ Requires-Dist: osqp>=1.0.2
36
+ Requires-Dist: pandas>=2.0.0
37
+ Requires-Dist: scipy>=1.3.2
38
+ Requires-Dist: scikit-learn<1.8,>=1.6.1
39
+ Dynamic: license-file
40
+
41
+ |License| |Docs| |DOI|
42
+
43
+ |build-tests| |build-windows| |Codecov| |Codacy|
44
+
45
+ ***************
46
+ scikit-survival
47
+ ***************
48
+
49
+ scikit-survival is a Python module for `survival analysis`_
50
+ built on top of `scikit-learn <https://scikit-learn.org/>`_. It allows doing survival analysis
51
+ while utilizing the power of scikit-learn, e.g., for pre-processing or doing cross-validation.
52
+
53
+ =======================
54
+ About Survival Analysis
55
+ =======================
56
+
57
+ The objective in `survival analysis`_ (also referred to as time-to-event or reliability analysis)
58
+ is to establish a connection between covariates and the time of an event.
59
+ What makes survival analysis differ from traditional machine learning is the fact that
60
+ parts of the training data can only be partially observed – they are *censored*.
61
+
62
+ For instance, in a clinical study, patients are often monitored for a particular time period,
63
+ and events occurring in this particular period are recorded.
64
+ If a patient experiences an event, the exact time of the event can
65
+ be recorded – the patient’s record is uncensored. In contrast, right censored records
66
+ refer to patients that remained event-free during the study period and
67
+ it is unknown whether an event has or has not occurred after the study ended.
68
+ Consequently, survival analysis demands for models that take
69
+ this unique characteristic of such a dataset into account.
70
+
71
+ ============
72
+ Requirements
73
+ ============
74
+
75
+ - Python 3.11 or later
76
+ - ecos
77
+ - joblib
78
+ - numexpr
79
+ - numpy
80
+ - osqp
81
+ - pandas 2.0.0 or later
82
+ - scikit-learn 1.6 or 1.7
83
+ - scipy
84
+ - C/C++ compiler
85
+
86
+ ============
87
+ Installation
88
+ ============
89
+
90
+ The easiest way to install scikit-survival is to use
91
+ `conda-forge <https://conda-forge.org/docs/user/introduction/>`_ by running::
92
+
93
+ conda install -c conda-forge scikit-survival
94
+
95
+ Alternatively, you can install scikit-survival `from PyPI <https://scikit-survival.readthedocs.io/en/stable/install.html#pip>`_
96
+ or `from source <https://scikit-survival.readthedocs.io/en/stable/install.html#from-source>`_.
97
+
98
+ ========
99
+ Examples
100
+ ========
101
+
102
+ The `user guide <https://scikit-survival.readthedocs.io/en/stable/user_guide/index.html>`_ provides
103
+ in-depth information on the key concepts of scikit-survival, an overview of available survival models,
104
+ and hands-on examples in the form of `Jupyter notebooks <https://jupyter.org/>`_.
105
+
106
+ ================
107
+ Help and Support
108
+ ================
109
+
110
+ **Documentation**
111
+
112
+ - HTML documentation for the latest release: https://scikit-survival.readthedocs.io/en/stable/
113
+ - HTML documentation for the development version (master branch): https://scikit-survival.readthedocs.io/en/latest/
114
+ - For a list of notable changes, see the `release notes <https://scikit-survival.readthedocs.io/en/stable/release_notes.html>`_.
115
+
116
+ **Bug reports**
117
+
118
+ - If you encountered a problem, please submit a
119
+ `bug report <https://github.com/sebp/scikit-survival/issues/new?template=bug_report.md>`_.
120
+
121
+ **Questions**
122
+
123
+ - If you have a question on how to use scikit-survival, please use `GitHub Discussions <https://github.com/sebp/scikit-survival/discussions>`_.
124
+ - For general theoretical or methodological questions on survival analysis, please use
125
+ `Cross Validated <https://stats.stackexchange.com/questions/tagged/survival>`_.
126
+
127
+ ============
128
+ Contributing
129
+ ============
130
+
131
+ New contributors are always welcome. Please have a look at the
132
+ `contributing guidelines <https://scikit-survival.readthedocs.io/en/latest/contributing.html>`_
133
+ on how to get started and to make sure your code complies with our guidelines.
134
+
135
+ ==========
136
+ References
137
+ ==========
138
+
139
+ Please cite the following paper if you are using **scikit-survival**.
140
+
141
+ S. Pölsterl, "scikit-survival: A Library for Time-to-Event Analysis Built on Top of scikit-learn,"
142
+ Journal of Machine Learning Research, vol. 21, no. 212, pp. 1–6, 2020.
143
+
144
+ .. code::
145
+
146
+ @article{sksurv,
147
+ author = {Sebastian P{\"o}lsterl},
148
+ title = {scikit-survival: A Library for Time-to-Event Analysis Built on Top of scikit-learn},
149
+ journal = {Journal of Machine Learning Research},
150
+ year = {2020},
151
+ volume = {21},
152
+ number = {212},
153
+ pages = {1-6},
154
+ url = {http://jmlr.org/papers/v21/20-729.html}
155
+ }
156
+
157
+ .. |License| image:: https://img.shields.io/badge/license-GPLv3-blue.svg
158
+ :target: COPYING
159
+ :alt: License
160
+
161
+ .. |Codecov| image:: https://codecov.io/gh/sebp/scikit-survival/branch/master/graph/badge.svg
162
+ :target: https://codecov.io/gh/sebp/scikit-survival
163
+ :alt: codecov
164
+
165
+ .. |Codacy| image:: https://api.codacy.com/project/badge/Grade/17242004cdf6422c9a1052bf1ec63104
166
+ :target: https://app.codacy.com/gh/sebp/scikit-survival/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade
167
+ :alt: Codacy Badge
168
+
169
+ .. |Docs| image:: https://readthedocs.org/projects/scikit-survival/badge/?version=latest
170
+ :target: https://scikit-survival.readthedocs.io/en/latest/
171
+ :alt: readthedocs.org
172
+
173
+ .. |DOI| image:: https://zenodo.org/badge/77409504.svg
174
+ :target: https://zenodo.org/badge/latestdoi/77409504
175
+ :alt: Digital Object Identifier (DOI)
176
+
177
+ .. |build-tests| image:: https://github.com/sebp/scikit-survival/actions/workflows/tests-workflow.yaml/badge.svg?branch=master
178
+ :target: https://github.com/sebp/scikit-survival/actions?query=workflow%3Atests+branch%3Amaster
179
+ :alt: GitHub Actions Tests Status
180
+
181
+ .. |build-windows| image:: https://ci.appveyor.com/api/projects/status/github/sebp/scikit-survival?branch=master&svg=true
182
+ :target: https://ci.appveyor.com/project/sebp/scikit-survival
183
+ :alt: Windows Build Status on AppVeyor
184
+
185
+ .. _survival analysis: https://en.wikipedia.org/wiki/Survival_analysis
@@ -0,0 +1,58 @@
1
+ scikit_survival-0.26.0.dist-info/RECORD,,
2
+ scikit_survival-0.26.0.dist-info/WHEEL,sha256=2Id6qreet5t4wZv58bZfijJ58qrc2xkw6OVvWfeqxV0,136
3
+ scikit_survival-0.26.0.dist-info/top_level.txt,sha256=fPkcFA-XQGbwnD_ZXOvaOWmSd34Qezr26Mn99nYPvAg,7
4
+ scikit_survival-0.26.0.dist-info/METADATA,sha256=vAt2W61HBUXRJsF8i5dfZzXmuSaF5xn5aIswUbue1LE,7180
5
+ scikit_survival-0.26.0.dist-info/licenses/COPYING,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
6
+ sksurv/functions.py,sha256=e0jVqnEtyHoI7qjn18gHD2oRTCoOOA3i6p90tDgMWKs,3898
7
+ sksurv/metrics.py,sha256=C8vWJEQ1CysbaG4KRnQA7cHOttDZsLGNAaL1DSVgccI,41241
8
+ sksurv/nonparametric.py,sha256=Bhvtr_j3gozbcnMcXJ_55BbfAEua-n4-hzTiVtBYt6M,31748
9
+ sksurv/util.py,sha256=1zX5DcUCw-9oM2uwMPrC5C736g3VsmxgL_w5piTuBew,15809
10
+ sksurv/__init__.py,sha256=eRitrwFtAUadhvZtcasgO443RRMaPTmJHCph3dWkHSg,5153
11
+ sksurv/docstrings.py,sha256=PJTe7sts8j6x3Gck_18buulAr2HIMOF6GnWDtrLQtIw,3301
12
+ sksurv/preprocessing.py,sha256=proeFKkPiyx4UDCwEnaOo0jLUTqA3jbnSP28R2izbPw,6974
13
+ sksurv/exceptions.py,sha256=CRun7zrKzcZ9zinni5b2cMaV-pU-pw1UnXpRV2h3z_4,801
14
+ sksurv/testing.py,sha256=l2jWKYxBzQcHhax7x1i_tfbAVuaq7J9yqqOLCj8qdMQ,5788
15
+ sksurv/compare.py,sha256=RCfPU-EhM1C_8BMhNV5eb34ZrTZX6ODkB6KxTHQh-6E,4420
16
+ sksurv/base.py,sha256=JGjekQGBRQdwS6AlI6uuNowT3KOpgBHCzxJGq6dsgew,4373
17
+ sksurv/column.py,sha256=ptWBSh2llhSPeGOxxmoAYhlI2KXXRJjJEZO9K9-eZXQ,6869
18
+ sksurv/tree/tree.py,sha256=uvCcwIGVqx2x39ycIsLtJSKWBhty37uDKr85zQOBR9U,31992
19
+ sksurv/tree/_criterion.cpython-314-darwin.so,sha256=Am9LIW3VM7taVDLhVY611gIuvZQFZshcUHJ57nos0f8,253760
20
+ sksurv/tree/__init__.py,sha256=7RUjPZtGrVYiHY4roDXdEDM7RVBSsbY_CXWmyqZk2ts,64
21
+ sksurv/ensemble/boosting.py,sha256=zLsJdjgPuEunYzPy-xlsmdNAI2U97YnX6aWN3ksFIrM,61572
22
+ sksurv/ensemble/__init__.py,sha256=7kZAzxFpJGtgLQfhoOqZUyGUubIs_Kw3RgyUsAd1Fq0,191
23
+ sksurv/ensemble/survival_loss.py,sha256=mhIbuOqz7t-nuygswZD0d0are2R0EQ3d3yHMRdxOKIk,5942
24
+ sksurv/ensemble/forest.py,sha256=zAo-Txbqc5GjnbfI5fJCUfUHG2NFdFS6dDQhADrBnuM,35268
25
+ sksurv/ensemble/_coxph_loss.cpython-314-darwin.so,sha256=99rWQTDWEIHY8LAWT4kKbn1yy344Eq4fybtTw5iHHGA,226464
26
+ sksurv/kernels/clinical.py,sha256=oNIXgBIivmgjM927qNpspfI3HivC_ORqFvdsTb_NHTA,11452
27
+ sksurv/kernels/__init__.py,sha256=_aZIFutv7kUTlkHJlP52zBDkpUXnKIlPPf3cikuAmCA,77
28
+ sksurv/kernels/_clinical_kernel.cpython-314-darwin.so,sha256=qcwpy6Hqgj9bmLdkGY5NW_1DO8UQcTs9gcyW40qAmuM,228632
29
+ sksurv/bintrees/_binarytrees.cpython-314-darwin.so,sha256=EbtNA4nbjZTBOa73RG3FXtRFYb6gZ-AtNz9R-kCQgjg,119104
30
+ sksurv/bintrees/__init__.py,sha256=l6Fe4PAMByrABpGzZ5W8KHieEYG-rh-DADo2QiEMLrU,727
31
+ sksurv/datasets/__init__.py,sha256=EPzJ50wd-cZ6mWuHFPRRRMqgt14WzM32HGxDrlOp9Q4,361
32
+ sksurv/datasets/base.py,sha256=C9fnZJXLBTw1mvzc7GqGB4LdS6_8pQqPIAzKBo5jDpM,25622
33
+ sksurv/datasets/data/cgvhd.arff,sha256=0lxUqY74JaMpC_vWJC4RWJy6vTmQwCg1yrUxjX65VX8,5214
34
+ sksurv/datasets/data/GBSG2.arff,sha256=jBuh302AIWtYaV1rvJ9RKEZkqzcSThAdVt8ImFFkWwQ,26204
35
+ sksurv/datasets/data/actg320.arff,sha256=8GE2kIU8Nvx7m5Ns-uTJW6Rgtk3xmJzBzMEmtynq5FU,45446
36
+ sksurv/datasets/data/bmt.arff,sha256=yRCh87tAlsBQAocliDquyP28lsnQhCTNU0vJatgH6ns,509
37
+ sksurv/datasets/data/breast_cancer_GSE7390-metastasis.arff,sha256=Iz9MHAay7imf_8ug-YgfbtZqNWbMvsMLUATw0pi1JXA,264743
38
+ sksurv/datasets/data/flchain.arff,sha256=vyYA7EN90ZBx9zva2C3mgXgEV9EUHsNu1VGwAm5uV3M,343058
39
+ sksurv/datasets/data/whas500.arff,sha256=9kBAyROYh1E3gi7KMGqScgjfaJaAjNl2SvcGVyL6U9Y,27772
40
+ sksurv/datasets/data/veteran.arff,sha256=cdvJ4jXzzC7RCzolTjn5hcCSNG0chFc27SGxP74mNFY,5260
41
+ sksurv/io/arffwrite.py,sha256=g7rVB3cuFwatFySle0AUhfB4oe3uW7KUsVMxjyGPur8,5435
42
+ sksurv/io/__init__.py,sha256=LacpKG9UKO_RefPXc6umPaGFGPOGzA-FZra_MCRWCxk,92
43
+ sksurv/io/arffread.py,sha256=zc18B_CWVPr5_6Q_8IjohSmHL6rdTwTOsMqygyM945Y,2750
44
+ sksurv/meta/__init__.py,sha256=VLA0VhLxZhF3z35md5Z4-nhw6BSSCfR6L7YOBGk1w1A,216
45
+ sksurv/meta/stacking.py,sha256=7dROmB9H-qfwWeCf9ueu9IEEsxDQOTNPK82nmH-EFlg,13164
46
+ sksurv/meta/ensemble_selection.py,sha256=cy4szNkw6KABLE7QjVkb6nMKV8YEWAunalM8SK0aSu8,26568
47
+ sksurv/meta/base.py,sha256=mV6653v4txKKHJqcJXVT-J-ARNN9rDfzIq02xoEy93I,1437
48
+ sksurv/linear_model/coxph.py,sha256=KFzVDP1TrNr9Hv08bCGsacTX0w_aE2jwsgMpCHe3R8A,22189
49
+ sksurv/linear_model/_coxnet.cpython-314-darwin.so,sha256=VP6a-WTPUMdDOEW4gMAndgtrQb1uhVOEuSPaFnv9Gik,134816
50
+ sksurv/linear_model/__init__.py,sha256=58Lt5Tj3xGqRS4uZfVR5avKQNZubHD6RSknVDyzLTso,152
51
+ sksurv/linear_model/coxnet.py,sha256=RgIomES97BcaM-RWmxmrP6AE3vkDaBsy4of727VsVfQ,22556
52
+ sksurv/linear_model/aft.py,sha256=1Vn_V-e5ffQhbIed34MZzZBt4RzvAcLaxI1VTOZrBEY,7558
53
+ sksurv/svm/_prsvm.cpython-314-darwin.so,sha256=gkwW8DEGnCam0oaqLNgI9xd9W2DzLquRg6HsBL4PMrI,225120
54
+ sksurv/svm/_minlip.cpython-314-darwin.so,sha256=8yj97xvkcThf5V4FJnRlARotStnZFDRB2dEnG96Ii7k,228896
55
+ sksurv/svm/naive_survival_svm.py,sha256=hx1C__lOT8hSV0g-YBI5reEgp9v4qQXOnvUlbVlHPwc,9319
56
+ sksurv/svm/__init__.py,sha256=7BRFkatw9wbtsY-aes9cnz31VPpIjZ-383LuDmucDsw,328
57
+ sksurv/svm/survival_svm.py,sha256=JGgUSft8p999DvZ0e617Ui2IEopt8kG3xspAJHt8CbU,44986
58
+ sksurv/svm/minlip.py,sha256=B6nfOSxxWdXAB_Ym4AXxileEkyffVpRAnr34Yqvh9C8,24976
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-macosx_11_0_arm64
5
+ Generator: delocate 0.13.0
6
+