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.

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


Download files

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

Source Distribution

random_survival_forest-0.4.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file random_survival_forest-0.4.tar.gz.

File metadata

  • Download URL: random_survival_forest-0.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for random_survival_forest-0.4.tar.gz
Algorithm Hash digest
SHA256 409ca8e7ed545d2cec1bc65c333fc145dc772162e3f98427ef9dca5985bc74f4
MD5 769286367b9e8f71b001ae738e5c50b3
BLAKE2b-256 9d88cc23dc1a4b138f71fb7d9f34adb529b3c1a6c431f5d685051576eacf3d91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page