# Introducing PySurvival

DevFeed: [Introducing PySurvival](<https://devfeed.tech/articles/introducing-pysurvival-15712.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/introducing-pysurvival>)

Author: Stephane Fotso

Published: 2019-04-12T21:06:21Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [Data analysis](<https://devfeed.tech/topics/data-analysis.md>), [NumPy](<https://devfeed.tech/topics/numpy.md>), [SciPy](<https://devfeed.tech/topics/scipy.md>), [pip](<https://devfeed.tech/topics/pip.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [churn](<https://devfeed.tech/tags/churn.md>), [data-science](<https://devfeed.tech/tags/data-science.md>), [financial-institutions](<https://devfeed.tech/tags/financial-institutions.md>), [installation](<https://devfeed.tech/tags/installation.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [modeling](<https://devfeed.tech/tags/modeling.md>), [models](<https://devfeed.tech/tags/models.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [python](<https://devfeed.tech/tags/python.md>), [survival-analysis](<https://devfeed.tech/tags/survival-analysis.md>)

## AI overview

PySurvival is an open-source Python package for survival analysis, built on NumPy, SciPy, and PyTorch. It offers 10+ models, including Cox Proportional Hazard, Neural Multi-Task Logistic Regression, and Random Survival Forest; theory summaries, API descriptions, examples, tutorials, performance metrics such as c-index and Brier score, and model loading and saving. Survival analysis models the probability of an event by a particular time and can account for censored cases, where the event has not occurred by the end of observation; this preserves information that a regression approach discarding those cases would lose. The article says pip is the easiest installation method if a working gcc version is installed.

## Source excerpt

PySurvival is an open source python package for Survival Analysis modeling.