Biomarker and survival analysis software for thesis.
Project description
Survival analysis and Biomarker discovery
Survival analysis is a branch of statistics applied to modeling time-to-event data. It is used in time prediction from diagnosis until event, where an event can be considered either death or reoccurrence. In other fields, this topic is known as reliability analysis (engineering), duration analysis (economics), and event history analysis (sociology).
This repository has two main goals:
1. Explore best practice principles in MLOps using Optuna and MLFlow
So far, simple survival models such as Cox-Lasso from Scikit-Survival used in combination with Optuna for hyperparameter tuning, standard CV techniques and MLflow for monitoring and logging of results have yielded model scores over 10% higher than similar runs outside of this setup.
2. Explore stability in feature selection by artificial feature injection and quantification of results
Inspired by the Stabl repository and similarly named Nature publication, we inject artificial features into the design matrix for later feature selection, which allows for FDR-proxy quantification with the ultimate goal of selecting a cut-off on the minimum allowed feature frequency during subsampled feature selection runs.
How to use:
Note that this is a very unfinished repository.
Use package:
Until the package is publised on PyPi, feel free to use the repo as is by cloning it, install package after cloning using uv command:
uv pip install -e .
Read documentation:
Until the documentation is added to Github, it can be built and served through the mkdocs package. To build the documentation, use the following command:
mkdocs build
To serve the documentation on your localhost, use the following command:
mkdocs serve
Note that this is still a work in progress.
Tests:
When making changes to repository, test continiously using command:
pytest tests
To include full integration test, run command:
pytest tests --slow
Gradio:
To run hot reloading gradio for front-end developement, use:
gradio src/survana/frontend/gradio_app.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file survana-0.1.0.tar.gz.
File metadata
- Download URL: survana-0.1.0.tar.gz
- Upload date:
- Size: 938.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6af9d338372247760ab77e9deced0ba6944e55475c3991a0428ebaf38b7a4e4d
|
|
| MD5 |
88ae352fbc89883e647e6faae6d15da5
|
|
| BLAKE2b-256 |
38543ae4e9d277f7a7d55f9bac8270d9ec0f4e52bbe11a1fe7f3ab8f96430e28
|
Provenance
The following attestation bundles were made for survana-0.1.0.tar.gz:
Publisher:
python-publish.yml on ellenbet/survana
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
survana-0.1.0.tar.gz -
Subject digest:
6af9d338372247760ab77e9deced0ba6944e55475c3991a0428ebaf38b7a4e4d - Sigstore transparency entry: 1126558956
- Sigstore integration time:
-
Permalink:
ellenbet/survana@cf5151e46069c400f441b1a54d4792f14bd2feff -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ellenbet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cf5151e46069c400f441b1a54d4792f14bd2feff -
Trigger Event:
push
-
Statement type:
File details
Details for the file survana-0.1.0-py3-none-any.whl.
File metadata
- Download URL: survana-0.1.0-py3-none-any.whl
- Upload date:
- Size: 947.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcdade192604c102c3f12844b8a94615488e38abe23f6c5c06aafd5baaac0b50
|
|
| MD5 |
60d2f20ff44ce14b0e33a8e0836457ed
|
|
| BLAKE2b-256 |
8485863107a8f5dde5f37b690542c1f0ab31e663c6d1ae820fc40e02bb9f92c3
|
Provenance
The following attestation bundles were made for survana-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on ellenbet/survana
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
survana-0.1.0-py3-none-any.whl -
Subject digest:
dcdade192604c102c3f12844b8a94615488e38abe23f6c5c06aafd5baaac0b50 - Sigstore transparency entry: 1126559621
- Sigstore integration time:
-
Permalink:
ellenbet/survana@cf5151e46069c400f441b1a54d4792f14bd2feff -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ellenbet
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@cf5151e46069c400f441b1a54d4792f14bd2feff -
Trigger Event:
push
-
Statement type: