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.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e31aa03f92a5619043e4e6e16380d0e3f4b42dba6959929ba3299044ca6a96ee |
|
MD5 | 9ac2559264f1ee85af9634952ba5bdc0 |
|
BLAKE2b-256 | ea59a445317fbf38d605592407050e1618fc7f0ccc4eefd813b8e33ed4d0947d |
Close
Hashes for random_survival_forest-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 119d67594c91c322af484b0c2199a7516b93abd958c8906d88d11188ebd58020 |
|
MD5 | 8cc93d9f6fbc69444bcbb320f1c91d03 |
|
BLAKE2b-256 | 3488ac69ed5d9a0f302968f7bb24562357c798f00abc18214038704948f07351 |