Skip to main content

Random Survival Forest

Chat

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@wzw.tum.de

License

MIT

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.8.0.tar.gz (7.5 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.8.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: random_survival_forest-0.8.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for random_survival_forest-0.8.0.tar.gz
Algorithm Hash digest
SHA256 e97f2f066eb7268611903a9cbe7fe0ba25cabe8a2cba878c4904524b65230a9f
MD5 1157d0574c0d91f9192ef46d0199c9f6
BLAKE2b-256 801b63a8b912674de1d43aa275ec5aa5048dc320a1797e93bab867162a0f4be5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: random_survival_forest-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for random_survival_forest-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5199319cfa17c9d852b7d7a66ab1ed3f73d6ef79a77be17ea829e662d010284
MD5 c6cec1d755a038a056e80b5f5fb2a809
BLAKE2b-256 759effeef59a8f4ba4d49ae02e32b9feb696a53eb3ec4e2b63ea5f44ee946998

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

2 files

0.8.2

2 files

0.8.1

2 files

This release

0.8.0 This release

2 files

0.7.2

2 files

0.7.1

2 files

0.7

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.1

1 file

0.5

2 files

0.4.2

1 file

0.4.1

1 file

0.4

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page