This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.0.4 instead.
Reason given by maintainers: old version
Timesias
Forcast outcomes from time-series history. This is the top-performing algorithm for DII National Data Science Challenge.
Installation
Clone this program to your local directory:
git clone https://github.com/GuanLab/sepsis.git
Dependency
For visualization:
Input data format
The example data in the data/ are randomly generated data for the demonstration of the algorithm.
Two types of data is requied for model training and prediction:
gs.file:.txtfile two columns. The first column is file name index. The second column is the gold standard (0/1), representing the final outbreak of sepsis
0.psv,1
1.psv,1
2.psv,0
3.psv,1
4.psv,0
5.psv,1
6.psv,1
*.psv:.psvtable files separated by|, which is the time-series feature records. The header of psv file are the feature names. To note, the first column is the time index.
HR|feature_1|feature_2|...|feature_n-1|feature_n
0.0|1|0.0|...|1.3|0.0
1.0|NaN|0.0|...|0.0|0.0
3.5|NaN|2.3|...|0.0|0.0
Model training and cross validation
timesias -g [GS_FILE_PATH] -t [LAST_N_RECORDS] -f [EXTRA_FEATURES] --shap
GS_FILE_PATH: the path to the gold-standard file; for example,/data/gs.file;LAST_N_RECORDS: last n records to use for prediction. default: 16;EXTRA_FEATURES: addtional features used for prediction. default: ['norm', 'std', 'missing_portion', 'baseline'], which are all features we used in DII Data challenge.
also use
timesias --help
to get instructions on the usage of our program.
This will generate models, which will be saved under a new directory ./models.
Evaluation results during five-fold cross validation will be stored in eva.tsv.
Top feature evaluation
if --shap is indicated, SHAP analysis will be carried out to show top contributing measurements and last nth time points. This will generate an html report (top_feature_report.html) like the following:
The corresponding shap values will be stored in shap_group_by_measurment.csv and shap_group_by_timeslot.csv.
Other applications of this method
This method can be generalized to be used on other hospitalization data. One application of this method is the COVID-19 DREAM Challenge, where this method also achieves top performance.
Reference
- For citation, please refer to our latest iScience paper: Assessment of the timeliness and robustness for predicting adult sepsis.
- For protocol(TBD)
Release files for timesias 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| timesias-0.0.1.tar.gz | 3.3 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| timesias-0.0.1-py3.7.egg | Legacy Egg format | - | - | Details |
| timesias-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / timesias-0.0.1.tar.gz
| Download URL | timesias-0.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8502e49a5b778b1e85de27a83aedc5cff9256fddb2e07b0e7750bbdb7b4f132a
|
|
BLAKE2b-256 checksum How to use checksums |
956c5c390682f41682ff7e742479669b0cd8f0201955925e4e207a09cb597a71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / timesias-0.0.1-py3.7.egg
| Download URL | timesias-0.0.1-py3.7.egg |
|---|---|
| Size | 2.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
dfffa394763fc1968485b7510dccb2f5c60b73554c867bea2cfc40360482d496
|
|
BLAKE2b-256 checksum How to use checksums |
d1eb21adcbd24a3af9787aa6f995a230299c8a84b3aaa918a0452ff7b7f9bac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / timesias-0.0.1-py3-none-any.whl
| Download URL | timesias-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d4e987c7146988294686a97bc382e9a2ec854efed88deb1df7f102eb832d55d
|
|
BLAKE2b-256 checksum How to use checksums |
98a0bf24d5a9768870c6d427ab93c91b0dd43934956bd22e7abea9b1f24c7203
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|