-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update dependencies & changes * Try fix action to check changelog * ... * mailto links added malto link for each maintainer with subject title * removed banner * Shorten README.md * bump version --------- Co-authored-by: Thibaud Coroller <[email protected]>
- Loading branch information
Showing
4 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Check Changelog Update" | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] # or the default branch of your repo | ||
|
||
jobs: | ||
check-changelog: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check for Changelog Updates | ||
run: | | ||
HEAD_CHANGELOG_HASH=$(git log -1 --format=format:%H -- docs/CHANGELOG.md) | ||
git fetch origin ${{ github.base_ref }} | ||
git checkout origin/${{ github.base_ref }} | ||
BASE_CHANGELOG_HASH=$(git log -1 --format=format:%H -- docs/CHANGELOG.md) | ||
if [ "$BASE_CHANGELOG_HASH" == "$HEAD_CHANGELOG_HASH" ]; then | ||
echo "Changelog must be updated with every pull request." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# Deep survival analysis made easy | ||
|
||
> :warning: :construction: **We are still working on the publication of this project and appreciate your patience until everything will be ready.** :construction: :warning: | ||
 | ||
 | ||
[](https://pypi.org/project/torchsurv/) | ||
[](https://arxiv.org/abs/2404.10761) | ||
[](https://opensource.nibr.com/torchsurv/) | ||
[](https://pepy.tech/project/torchsurv) | ||
|
||
|
||
`TorchSurv` is a Python package that serves as a companion tool to perform deep survival modeling within the `PyTorch` environment. Unlike existing libraries that impose specific parametric forms on users, `TorchSurv` enables the use of custom `PyTorch`-based deep survival models. With its lightweight design, minimal input requirements, full `PyTorch` backend, and freedom from restrictive survival model parameterizations, `TorchSurv` facilitates efficient survival model implementation, particularly beneficial for high-dimensional input data scenarios. | ||
|
||
## TL;DR | ||
|
@@ -43,15 +40,15 @@ cindex.p_value(method="noether", alternative="two_sided") | |
cindex.compare(cindexB) | ||
``` | ||
|
||
## Installation | ||
## Installation and dependencies | ||
|
||
First, install the package: | ||
|
||
```bash | ||
pip install torchsurv | ||
``` | ||
|
||
or for local installation (from package root) | ||
or for local installation (from package root / clone of this git repository): | ||
|
||
```bash | ||
pip install -e . | ||
|
@@ -60,6 +57,21 @@ pip install -e . | |
If you use Conda, you can install requirements into a conda environment | ||
using the `environment.yml` file included in the `dev` subfolder of the source repository. | ||
|
||
Using the package has the following dependencies which will be installed automatically via pip: | ||
|
||
* [torch](https://pytorch.org/): Consider pre-installing if you have specific system requirements (CPU / GPU / CUDA version). | ||
* [scipy](https://scipy.org/): We use some statistical helper functions to calculate metrics. | ||
* [torchmetrics](https://lightning.ai/docs/torchmetrics/stable/): We use some statistical helper functions to calculate metrics. | ||
|
||
To run the tests and example notebooks, you need to install the following additional packages: | ||
|
||
* [lifelines](https://lifelines.readthedocs.io/en/latest/) | ||
* [scikit-survival](https://scikit-survival.readthedocs.io/en/stable/) | ||
* [pytorch_lightning](https://lightning.ai/docs/pytorch/stable/) (and [lightning](https://lightning.ai/)) | ||
|
||
To build the documentation and for package development, please see [the development notes](https://opensource.nibr.com/torchsurv/devnotes.html) and | ||
[dev/environment.yml](dev/environment.yml). | ||
|
||
## Getting started | ||
|
||
We recommend starting with the [introductory guide](https://opensource.nibr.com/torchsurv/notebooks/introduction.html), where you'll find an overview of the package's functionalities. | ||
|
@@ -213,10 +225,10 @@ By contributing to this project, you agree to license your contributions under t | |
|
||
## Contacts | ||
|
||
* Thibaud Coroller [email protected] `(creator, maintainer)` | ||
* Mélodie Monod [email protected] `(creator, maintainer)` | ||
* Peter Krusche [email protected] `(author, maintainer)` | ||
* Qian Cao [email protected] `(author, maintainer)` | ||
* [Thibaud Coroller](mailto:[email protected]?subject=TorchSurv) `(creator, maintainer)` | ||
* [Mélodie Monod](mailto:[email protected]?subject=TorchSurv) `(creator, maintainer)` | ||
* [Peter Krusche](mailto:[email protected]?subject=TorchSurv) `(author, maintainer)` | ||
* [Qian Cao](mailto:[email protected]@novartis.com?subject=TorchSurv) `(author, maintainer)` | ||
|
||
If you have any questions, suggestions, or feedback, feel free to reach out the developement team [us](https://opensource.nibr.com/torchsurv/AUTHORS.html). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "torchsurv" | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
description = "Survival analysis made easy with pytorch" | ||
authors = [ | ||
{name = "Thibaud Coroller", email = "[email protected]"}, | ||
|
@@ -30,7 +30,6 @@ classifiers = [ | |
|
||
dependencies = [ | ||
"torch", | ||
"lightning", | ||
"scipy", | ||
"numpy", | ||
"torchmetrics", | ||
|