Giter VIP home page Giter VIP logo

survml-nsc's Introduction

Neural Survival Cluster

This repository allows to reproduce the results in Neural Survival Clustering: Non parametric mixture of neural networks for survival clustering This paper approaches survival analysis as a mixture of neural baselines whereby different baseline cumulative hazard functions are modelled using positive and monotone neural networks.

Model

The model consists in a mixture of K neural networks that model different population-level survival distributions, and an assignment neural network that weights these different mixtures given the input data.

Model

How to use the model ?

To use the model, one needs to execute:

from nsc import NeuralSurvivalClustering
model = NeuralSurvivalClustering()
model.fit(x, t, e)
model.predict_risk(x)

A full example with analysis is provided in examples/Neural Survival Clustering on SUPPORT Dataset.ipynb.

Reproduce paper's results

To reproduce the paper's results:

  1. Clone the repository with dependencies: git clone [email protected]:Jeanselme/NeuralSurvivalClustering.git --recursive
  2. Create a conda environment with all necessary libraries pycox, lifelines, pysurvival.
  3. Add path export PYTHONPATH="$PWD:$PWD/DeepSurvivalMachines:$PWD/SuMo-net:$PYTHONPATH"
  4. Run examples/experiments_paper.py METABRIC
  5. Repeat with SUPPORT and SYNTHETIC
  6. Analysis using examples/Analysis.ipynb

Compare to a new method

Adding a new method consists in adding a child to Experiment in experiment.py with functions to compute the nll and fit the model. Then, add the method in examples/experiments_paper.py and follow the previous point. TODOs have been added to make the addition of a new method easier.

Future directions

  • Competing risks.
  • Post analysis: Replacing assignment neural network by more interpretable approach.

Setup

Structure

We followed the same structure than the DeepSurvivalMachines repository with the model in nsc/ - only the api should be used to test the model. Examples are provided in examples/.

Clone

git clone [email protected]:Jeanselme/NeuralSurvivalClustering.git --recursive

Requirements

The model relies on DeepSurvivalMachines, SuMo-net, pytorch, numpy and tqdm.
To run the set of experiments pycox, lifelines, pysurvival are necessary.

survml-nsc's People

Contributors

jeanselme avatar jiaxiang-cheng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.