Skip to main content

A Random Survival Forest implementation inspired by Ishwaran et al.

Project description

Random Survival Forest

Build Status Documentation Status

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.


$ pip install random-survival-forest


Getting Started

>>> from random_survival_forest import RandomSurvivalForest
>>> timeline = range(0, 10, 1)
>>> rsf = RandomSurvivalForest(n_estimators=20, timeline=timeline)
>>>, y)
>>> round(rsf.oob_score, 3)
>>> y_pred = rsf.predict(X_val)
>>> c_val = concordance_index(y_val["time"], y_pred, y_val["event"])
>>> round(c_val, 3)


If you are having issues or feedback, please let me know.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for random-survival-forest, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size random_survival_forest-0.6.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View
Filename, size random_survival_forest-0.6.0-py3-none-any.whl (9.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page