A Random Survival Forest implementation inspired by Ishwaran et al.
Project description
Random Survival Forest
The Random Survival Forest package provides a python implementation of the survival prediction method originally published by Ishwaran et al. (2008).
Reference: Ishwaran, H., Kogalur, U. B., Blackstone, E. H., & Lauer, M. S. (2008). Random survival forests. The annals of applied statistics, 2(3), 841-860.
Installation
$ pip install random-survival-forest
Contribute
Getting Started
>>> from random_survival_forest import RandomSurvivalForest
>>> timeline = range(0, 10, 1)
>>> rsf = RandomSurvivalForest(n_estimators=20, timeline=timeline)
>>> rsf.fit(X, y)
>>> round(rsf.oob_score, 3)
0.76
>>> y_pred = rsf.predict(X_val)
>>> c_val = concordance_index(y_val["time"], y_pred, y_val["event"])
>>> round(c_val, 3)
0.72
Support
If you are having issues or feedback, please let me know.
julian.spaeth@student.uni-tuebinden.de
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for random_survival_forest-0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3281355d1fb48d57373045fa4ec7b3a76d29226b77df8fd2c2b96ca87439291 |
|
MD5 | f2232970525dd68ac84ae9e0510302e8 |
|
BLAKE2b-256 | a73af9682d0ac35fe633965ebf48a63996294c700aee721bd85ee7e759deb7e1 |
Close
Hashes for random_survival_forest-0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c12da202e4b4a4c184107ff1b5a02d5bb234aae1e2907f6fa56c729cabcf31e2 |
|
MD5 | 3e0577721a951c10d5174e088fd0a2ef |
|
BLAKE2b-256 | b09e43585fcbb1ef98c429edd9864534743ff1d0a92ee8086e3ec5b972b59f46 |