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.5.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

random_survival_forest-0.5-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: random_survival_forest-0.5.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for random_survival_forest-0.5.tar.gz
Algorithm Hash digest
SHA256 1f50ae1464fc6c6aaae1583a72a6e61dc03bd71aaac3a02cd9b81b3654462b85
MD5 ab7a468ee2221cff4cbd5a73d57c0f8c
BLAKE2b-256 8613e12024f2af9c4fde27002253a6b994ff107c4a374b2c14d7f849a70cd88c

See more details on using hashes here.

File details

Details for the file random_survival_forest-0.5-py3-none-any.whl.

File metadata

  • Download URL: random_survival_forest-0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.1

File hashes

Hashes for random_survival_forest-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3e069d50364f6cbb66a35e67e8ead6818303db820aae3d0cc9de761c4f192ce5
MD5 2dbb27b2a4f7c276011ca91432433602
BLAKE2b-256 d01c4c76d45a820d27bbbb1a6351a9e78eecf349dc57328497565dcf51ff1ca0

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