├── .gitignore ├── LICENCE ├── README.md ├── data └── timeline_examples │ ├── 0_manual_timeline_examples.json │ ├── 10_manual_timeline_examples.json │ ├── 11_manual_timeline_examples.json │ ├── 12_manual_timeline_examples.json │ ├── 13_manual_timeline_examples.json │ ├── 14_manual_timeline_examples.json │ ├── 15_manual_timeline_examples.json │ ├── 16_manual_timeline_examples.json │ ├── 17_manual_timeline_examples.json │ ├── 18_manual_timeline_examples.json │ ├── 19_manual_timeline_examples.json │ ├── 1_manual_timeline_examples.json │ ├── 20_manual_timeline_examples.json │ ├── 21_manual_timeline_examples.json │ ├── 22_manual_timeline_examples.json │ ├── 23_manual_timeline_examples.json │ ├── 24_manual_timeline_examples.json │ ├── 25_manual_timeline_examples.json │ ├── 26_manual_timeline_examples.json │ ├── 27_manual_timeline_examples.json │ ├── 28_manual_timeline_examples.json │ ├── 29_manual_timeline_examples.json │ ├── 2_manual_timeline_examples.json │ ├── 30_manual_timeline_examples.json │ ├── 31_manual_timeline_examples.json │ ├── 32_manual_timeline_examples.json │ ├── 33_manual_timeline_examples.json │ ├── 34_manual_timeline_examples.json │ ├── 3_manual_timeline_examples.json │ ├── 4_manual_timeline_examples.json │ ├── 5_manual_timeline_examples.json │ ├── 6_manual_timeline_examples.json │ ├── 7_manual_timeline_examples.json │ ├── 8_manual_timeline_examples.json │ ├── 9_manual_timeline_examples.json │ └── all_manual_timeline_examples.json ├── experiments ├── Foresight Metrics MIMIC.ipynb ├── Foresight | MIMIC | Final | Prepare data.ipynb └── Foresight | MIMIC | Train and Test | Final.ipynb ├── foresight ├── __init__.py ├── datasets │ ├── __init__.py │ ├── data_collator.py │ ├── filters.py │ ├── patient_concept_stream.py │ └── utils.py ├── metrics │ ├── __init__.py │ └── next_concept_prediction.py ├── sight.py ├── tokenizers │ └── simple_map_tokenizer.py ├── trainer.py └── utils │ ├── cdb_utils.py │ ├── pickle.py │ └── stream_utils.py └── setup.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/LICENCE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/README.md -------------------------------------------------------------------------------- /data/timeline_examples/0_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/0_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/10_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/10_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/11_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/11_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/12_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/12_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/13_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/13_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/14_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/14_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/15_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/15_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/16_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/16_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/17_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/17_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/18_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/18_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/19_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/19_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/1_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/1_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/20_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/20_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/21_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/21_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/22_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/22_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/23_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/23_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/24_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/24_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/25_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/25_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/26_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/26_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/27_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/27_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/28_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/28_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/29_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/29_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/2_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/2_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/30_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/30_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/31_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/31_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/32_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/32_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/33_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/33_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/34_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/34_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/3_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/3_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/4_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/4_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/5_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/5_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/6_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/6_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/7_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/7_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/8_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/8_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/9_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/9_manual_timeline_examples.json -------------------------------------------------------------------------------- /data/timeline_examples/all_manual_timeline_examples.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/data/timeline_examples/all_manual_timeline_examples.json -------------------------------------------------------------------------------- /experiments/Foresight Metrics MIMIC.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/experiments/Foresight Metrics MIMIC.ipynb -------------------------------------------------------------------------------- /experiments/Foresight | MIMIC | Final | Prepare data.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/experiments/Foresight | MIMIC | Final | Prepare data.ipynb -------------------------------------------------------------------------------- /experiments/Foresight | MIMIC | Train and Test | Final.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/experiments/Foresight | MIMIC | Train and Test | Final.ipynb -------------------------------------------------------------------------------- /foresight/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /foresight/datasets/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /foresight/datasets/data_collator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/datasets/data_collator.py -------------------------------------------------------------------------------- /foresight/datasets/filters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/datasets/filters.py -------------------------------------------------------------------------------- /foresight/datasets/patient_concept_stream.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/datasets/patient_concept_stream.py -------------------------------------------------------------------------------- /foresight/datasets/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/datasets/utils.py -------------------------------------------------------------------------------- /foresight/metrics/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /foresight/metrics/next_concept_prediction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/metrics/next_concept_prediction.py -------------------------------------------------------------------------------- /foresight/sight.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/sight.py -------------------------------------------------------------------------------- /foresight/tokenizers/simple_map_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/tokenizers/simple_map_tokenizer.py -------------------------------------------------------------------------------- /foresight/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/trainer.py -------------------------------------------------------------------------------- /foresight/utils/cdb_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/utils/cdb_utils.py -------------------------------------------------------------------------------- /foresight/utils/pickle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/utils/pickle.py -------------------------------------------------------------------------------- /foresight/utils/stream_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/foresight/utils/stream_utils.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CogStack/Foresight/HEAD/setup.py --------------------------------------------------------------------------------