├── .gitignore ├── LICENSE ├── MIMIC_preprocessing ├── README.md ├── __init__.py ├── create_all_tables.sql ├── flat_and_labels.py ├── flat_features.sql ├── labels.sql ├── reader.py ├── run_all_preprocessing.py ├── timeseries.py └── timeseries.sql ├── README.md ├── __init__.py ├── eICU_preprocessing ├── README.md ├── __init__.py ├── create_all_tables.sql ├── diagnoses.py ├── diagnoses.sql ├── flat_and_labels.py ├── flat_features.sql ├── labels.sql ├── reader.py ├── run_all_preprocessing.py ├── split_train_test.py ├── timeseries.py └── timeseries.sql ├── interpretability ├── permutation_importance.py ├── run_integrated_gradients.py └── visualise_integrated_gradients.py ├── models ├── README.md ├── __init__.py ├── experiment_template.py ├── final_experiment_scripts │ ├── MIMIC │ │ ├── LoS │ │ │ ├── __init__.py │ │ │ ├── channel_wise_lstm.py │ │ │ ├── mean_median.py │ │ │ ├── standard_lstm.py │ │ │ ├── tpc.py │ │ │ └── transformer.py │ │ ├── __init__.py │ │ ├── mortality │ │ │ ├── __init__.py │ │ │ ├── channel_wise_lstm.py │ │ │ ├── standard_lstm.py │ │ │ ├── tpc.py │ │ │ └── transformer.py │ │ └── multitask │ │ │ ├── __init__.py │ │ │ ├── channel_wise_lstm.py │ │ │ ├── standard_lstm.py │ │ │ ├── tpc.py │ │ │ └── transformer.py │ ├── __init__.py │ ├── best_hyperparameters.py │ ├── eICU │ │ ├── LoS │ │ │ ├── __init__.py │ │ │ ├── apache.py │ │ │ ├── channel_wise_lstm.py │ │ │ ├── channel_wise_lstm12p5.py │ │ │ ├── channel_wise_lstm25.py │ │ │ ├── channel_wise_lstm50.py │ │ │ ├── channel_wise_lstm6p25.py │ │ │ ├── channel_wise_lstm_MSE.py │ │ │ ├── channel_wise_lstm_labs_only.py │ │ │ ├── channel_wise_lstm_no_labs.py │ │ │ ├── mean_median.py │ │ │ ├── pointwise_no_decay.py │ │ │ ├── pointwise_only.py │ │ │ ├── standard_lstm.py │ │ │ ├── standard_lstm12p5.py │ │ │ ├── standard_lstm25.py │ │ │ ├── standard_lstm50.py │ │ │ ├── standard_lstm6p25.py │ │ │ ├── standard_lstm_MSE.py │ │ │ ├── standard_lstm_labs_only.py │ │ │ ├── standard_lstm_no_labs.py │ │ │ ├── temp_only.py │ │ │ ├── temp_weight_sharing.py │ │ │ ├── tpc.py │ │ │ ├── tpc12p5.py │ │ │ ├── tpc25.py │ │ │ ├── tpc50.py │ │ │ ├── tpc6p25.py │ │ │ ├── tpc_MSE.py │ │ │ ├── tpc_labs_only.py │ │ │ ├── tpc_no_diagnoses.py │ │ │ ├── tpc_no_exp.py │ │ │ ├── tpc_no_labs.py │ │ │ ├── tpc_no_mask.py │ │ │ ├── tpc_no_skip.py │ │ │ ├── transformer.py │ │ │ ├── transformer12p5.py │ │ │ ├── transformer25.py │ │ │ ├── transformer50.py │ │ │ ├── transformer6p25.py │ │ │ ├── transformer_MSE.py │ │ │ ├── transformer_labs_only.py │ │ │ └── transformer_no_labs.py │ │ ├── __init__.py │ │ ├── mortality │ │ │ ├── __init__.py │ │ │ ├── channel_wise_lstm.py │ │ │ ├── standard_lstm.py │ │ │ ├── tpc.py │ │ │ └── transformer.py │ │ └── multitask │ │ │ ├── __init__.py │ │ │ ├── channel_wise_lstm.py │ │ │ ├── standard_lstm.py │ │ │ ├── tpc.py │ │ │ └── transformer.py │ ├── latex_table_stats.py │ ├── reload_and_test.py │ └── significance_testing.py ├── hyperparameter_scripts │ ├── MIMIC │ │ ├── __init__.py │ │ ├── channel_wise_lstm.py │ │ ├── standard_lstm.py │ │ ├── tpc_stage1.py │ │ ├── tpc_stage2.py │ │ └── transformer.py │ ├── README.md │ ├── __init__.py │ └── eICU │ │ ├── __init__.py │ │ ├── channel_wise_lstm.py │ │ ├── standard_lstm.py │ │ ├── temp_weight_sharing.py │ │ ├── tpc_stage1.py │ │ ├── tpc_stage2.py │ │ └── transformer.py ├── initialise_arguments.py ├── lstm_model.py ├── mean_median_model.py ├── metrics.py ├── run_lstm.py ├── run_tpc.py ├── run_transformer.py ├── shuffle_train.py ├── tpc_model.py └── transformer_model.py ├── paths.json └── requirements.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/LICENSE -------------------------------------------------------------------------------- /MIMIC_preprocessing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/README.md -------------------------------------------------------------------------------- /MIMIC_preprocessing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /MIMIC_preprocessing/create_all_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/create_all_tables.sql -------------------------------------------------------------------------------- /MIMIC_preprocessing/flat_and_labels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/flat_and_labels.py -------------------------------------------------------------------------------- /MIMIC_preprocessing/flat_features.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/flat_features.sql -------------------------------------------------------------------------------- /MIMIC_preprocessing/labels.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/labels.sql -------------------------------------------------------------------------------- /MIMIC_preprocessing/reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/reader.py -------------------------------------------------------------------------------- /MIMIC_preprocessing/run_all_preprocessing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/run_all_preprocessing.py -------------------------------------------------------------------------------- /MIMIC_preprocessing/timeseries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/timeseries.py -------------------------------------------------------------------------------- /MIMIC_preprocessing/timeseries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/MIMIC_preprocessing/timeseries.sql -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/README.md -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /eICU_preprocessing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/README.md -------------------------------------------------------------------------------- /eICU_preprocessing/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /eICU_preprocessing/create_all_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/create_all_tables.sql -------------------------------------------------------------------------------- /eICU_preprocessing/diagnoses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/diagnoses.py -------------------------------------------------------------------------------- /eICU_preprocessing/diagnoses.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/diagnoses.sql -------------------------------------------------------------------------------- /eICU_preprocessing/flat_and_labels.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/flat_and_labels.py -------------------------------------------------------------------------------- /eICU_preprocessing/flat_features.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/flat_features.sql -------------------------------------------------------------------------------- /eICU_preprocessing/labels.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/labels.sql -------------------------------------------------------------------------------- /eICU_preprocessing/reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/reader.py -------------------------------------------------------------------------------- /eICU_preprocessing/run_all_preprocessing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/run_all_preprocessing.py -------------------------------------------------------------------------------- /eICU_preprocessing/split_train_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/split_train_test.py -------------------------------------------------------------------------------- /eICU_preprocessing/timeseries.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/timeseries.py -------------------------------------------------------------------------------- /eICU_preprocessing/timeseries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/eICU_preprocessing/timeseries.sql -------------------------------------------------------------------------------- /interpretability/permutation_importance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/interpretability/permutation_importance.py -------------------------------------------------------------------------------- /interpretability/run_integrated_gradients.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/interpretability/run_integrated_gradients.py -------------------------------------------------------------------------------- /interpretability/visualise_integrated_gradients.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/interpretability/visualise_integrated_gradients.py -------------------------------------------------------------------------------- /models/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/README.md -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | import eICU_preprocessing -------------------------------------------------------------------------------- /models/experiment_template.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/experiment_template.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/LoS/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/LoS/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/LoS/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/LoS/mean_median.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/LoS/mean_median.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/LoS/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/LoS/standard_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/LoS/tpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/LoS/tpc.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/LoS/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/LoS/transformer.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/mortality/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/mortality/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/mortality/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/mortality/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/mortality/standard_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/mortality/tpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/mortality/tpc.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/mortality/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/mortality/transformer.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/multitask/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/multitask/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/multitask/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/multitask/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/multitask/standard_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/multitask/tpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/multitask/tpc.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/MIMIC/multitask/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/MIMIC/multitask/transformer.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/best_hyperparameters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/best_hyperparameters.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/apache.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/apache.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm12p5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm12p5.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm50.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm50.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm6p25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm6p25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm_MSE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm_MSE.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm_labs_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm_labs_only.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/channel_wise_lstm_no_labs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/channel_wise_lstm_no_labs.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/mean_median.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/mean_median.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/pointwise_no_decay.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/pointwise_no_decay.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/pointwise_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/pointwise_only.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm12p5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm12p5.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm50.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm50.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm6p25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm6p25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm_MSE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm_MSE.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm_labs_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm_labs_only.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/standard_lstm_no_labs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/standard_lstm_no_labs.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/temp_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/temp_only.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/temp_weight_sharing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/temp_weight_sharing.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc12p5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc12p5.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc50.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc50.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc6p25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc6p25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc_MSE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc_MSE.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc_labs_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc_labs_only.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc_no_diagnoses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc_no_diagnoses.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc_no_exp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc_no_exp.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc_no_labs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc_no_labs.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc_no_mask.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc_no_mask.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/tpc_no_skip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/tpc_no_skip.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer12p5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer12p5.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer50.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer50.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer6p25.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer6p25.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer_MSE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer_MSE.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer_labs_only.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer_labs_only.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/LoS/transformer_no_labs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/LoS/transformer_no_labs.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/mortality/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/mortality/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/mortality/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/mortality/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/mortality/standard_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/mortality/tpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/mortality/tpc.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/mortality/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/mortality/transformer.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/multitask/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/multitask/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/multitask/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/multitask/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/multitask/standard_lstm.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/multitask/tpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/multitask/tpc.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/eICU/multitask/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/eICU/multitask/transformer.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/latex_table_stats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/latex_table_stats.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/reload_and_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/reload_and_test.py -------------------------------------------------------------------------------- /models/final_experiment_scripts/significance_testing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/final_experiment_scripts/significance_testing.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/MIMIC/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/hyperparameter_scripts/MIMIC/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/MIMIC/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/MIMIC/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/MIMIC/standard_lstm.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/MIMIC/tpc_stage1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/MIMIC/tpc_stage1.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/MIMIC/tpc_stage2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/MIMIC/tpc_stage2.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/MIMIC/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/MIMIC/transformer.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/README.md -------------------------------------------------------------------------------- /models/hyperparameter_scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/hyperparameter_scripts/eICU/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /models/hyperparameter_scripts/eICU/channel_wise_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/eICU/channel_wise_lstm.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/eICU/standard_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/eICU/standard_lstm.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/eICU/temp_weight_sharing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/eICU/temp_weight_sharing.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/eICU/tpc_stage1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/eICU/tpc_stage1.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/eICU/tpc_stage2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/eICU/tpc_stage2.py -------------------------------------------------------------------------------- /models/hyperparameter_scripts/eICU/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/hyperparameter_scripts/eICU/transformer.py -------------------------------------------------------------------------------- /models/initialise_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/initialise_arguments.py -------------------------------------------------------------------------------- /models/lstm_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/lstm_model.py -------------------------------------------------------------------------------- /models/mean_median_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/mean_median_model.py -------------------------------------------------------------------------------- /models/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/metrics.py -------------------------------------------------------------------------------- /models/run_lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/run_lstm.py -------------------------------------------------------------------------------- /models/run_tpc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/run_tpc.py -------------------------------------------------------------------------------- /models/run_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/run_transformer.py -------------------------------------------------------------------------------- /models/shuffle_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/shuffle_train.py -------------------------------------------------------------------------------- /models/tpc_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/tpc_model.py -------------------------------------------------------------------------------- /models/transformer_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/models/transformer_model.py -------------------------------------------------------------------------------- /paths.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/paths.json -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EmmaRocheteau/TPC-LoS-prediction/HEAD/requirements.txt --------------------------------------------------------------------------------