All Projects → julianspaeth → random-survival-forest

julianspaeth / random-survival-forest

Licence: other
A Random Survival Forest implementation for python inspired by Ishwaran et al. - Easily understandable, adaptable and extendable.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to random-survival-forest

deep cox mixtures
Code for the paper "Deep Cox Mixtures for Survival Regression", Machine Learning for Healthcare Conference 2021
Stars: ✭ 22 (-45%)
Mutual labels:  survival-analysis, survival-prediction
scoruby
Ruby Scoring API for PMML
Stars: ✭ 69 (+72.5%)
Mutual labels:  random-forest
cheapml
Machine Learning algorithms coded from scratch
Stars: ✭ 17 (-57.5%)
Mutual labels:  random-forest
Shapley regressions
Statistical inference on machine learning or general non-parametric models
Stars: ✭ 37 (-7.5%)
Mutual labels:  random-forest
xforest
A super-fast and scalable Random Forest library based on fast histogram decision tree algorithm and distributed bagging framework. It can be used for binary classification, multi-label classification, and regression tasks. This library provides both Python and command line interface to users.
Stars: ✭ 20 (-50%)
Mutual labels:  random-forest
rfvis
A tool for visualizing the structure and performance of Random Forests 🌳
Stars: ✭ 20 (-50%)
Mutual labels:  random-forest
wetlandmapR
Scripts, tools and example data for mapping wetland ecosystems using data driven R statistical methods like Random Forests and open source GIS
Stars: ✭ 16 (-60%)
Mutual labels:  random-forest
randomforest-density-python
Random Forests for Density Estimation in Python
Stars: ✭ 24 (-40%)
Mutual labels:  random-forest
pydata-london-2018
Slides and notebooks for my tutorial at PyData London 2018
Stars: ✭ 22 (-45%)
Mutual labels:  survival-analysis
introduction-to-machine-learning
A document covering machine learning basics. 🤖📊
Stars: ✭ 17 (-57.5%)
Mutual labels:  random-forest
survtmle
Targeted Learning for Survival Analysis
Stars: ✭ 18 (-55%)
Mutual labels:  survival-analysis
Github-Stars-Predictor
It's a github repo star predictor that tries to predict the stars of any github repository having greater than 100 stars.
Stars: ✭ 34 (-15%)
Mutual labels:  random-forest
LSTM-Time-Series-Analysis
Using LSTM network for time series forecasting
Stars: ✭ 41 (+2.5%)
Mutual labels:  random-forest
dlime experiments
In this work, we propose a deterministic version of Local Interpretable Model Agnostic Explanations (LIME) and the experimental results on three different medical datasets shows the superiority for Deterministic Local Interpretable Model-Agnostic Explanations (DLIME).
Stars: ✭ 21 (-47.5%)
Mutual labels:  random-forest
handson-ml
도서 "핸즈온 머신러닝"의 예제와 연습문제를 담은 주피터 노트북입니다.
Stars: ✭ 285 (+612.5%)
Mutual labels:  random-forest
receiptdID
Receipt.ID is a multi-label, multi-class, hierarchical classification system implemented in a two layer feed forward network.
Stars: ✭ 22 (-45%)
Mutual labels:  random-forest
survHE
Survival analysis in health economic evaluation Contains a suite of functions to systematise the workflow involving survival analysis in health economic evaluation. survHE can fit a large range of survival models using both a frequentist approach (by calling the R package flexsurv) and a Bayesian perspective.
Stars: ✭ 32 (-20%)
Mutual labels:  survival-analysis
Patch-GCN
Context-Aware Survival Prediction using Patch-based Graph Convolutional Networks - MICCAI 2021
Stars: ✭ 63 (+57.5%)
Mutual labels:  survival-prediction
bitcoin-prediction
bitcoin prediction algorithms
Stars: ✭ 21 (-47.5%)
Mutual labels:  random-forest
TFDeepSurv
COX Proportional risk model and survival analysis implemented by tensorflow.
Stars: ✭ 75 (+87.5%)
Mutual labels:  survival-analysis

Random Survival Forest

DOI

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, concordance_index
>>> from lifelines import datasets
>>> from sklearn.model_selection import train_test_split


>>> rossi = datasets.load_rossi()
# Attention: duration column must be index 0, event column index 1 in y
>>> y = rossi.loc[:, ["week", "arrest"]]
>>> X = rossi.drop(["arrest", "week"], axis=1)
>>> X, X_test, y, y_test = train_test_split(X, y, test_size=0.25)


>>> rsf = RandomSurvivalForest(n_estimators=20, n_jobs=-1)
>>> rsf = rsf.fit(X, y)
>>> y_pred = rsf.predict(X_test)
>>> c_val = concordance_index(y_time=y_test["week"], y_pred=y_pred, y_event=y_test["arrest"])
>>> print("C-index", round(c_val, 3))

Feedback

If you are having issues or feedback, please let me know. I am happy to fix some bug or implement feature requests.

[email protected]

This package is completely open-source. If it helped you or you even use it comercially, I would be happy about a little support:

"Buy Me A Coffee"

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].