From 082c9db0b6fb3376be3659dffc559b82a4f8bd18 Mon Sep 17 00:00:00 2001 From: DanielCorralesAlonso Date: Thu, 21 Nov 2024 16:44:03 +0100 Subject: [PATCH] full use case output --- config.yaml | 2 +- update.py | 3 + use_cases.ipynb | 2656 ++++++++++++++++++----------------------------- 3 files changed, 1039 insertions(+), 1622 deletions(-) diff --git a/config.yaml b/config.yaml index a324d62..9d8952f 100644 --- a/config.yaml +++ b/config.yaml @@ -27,7 +27,7 @@ calculate_info_values: True # -- Flag for assigning a new test -new_test: True +new_test: False # --------- If new_test = True, the following parameters must be defined cost_new_test: 3 diff --git a/update.py b/update.py index 51c033c..fb369da 100644 --- a/update.py +++ b/update.py @@ -33,8 +33,11 @@ def update_influence_diagram(model_type = None, value_function = None, elicit = if not os.path.exists(output_dir): os.makedirs(output_dir) + if not os.path.exists(f"{output_dir}/decision_models"): os.makedirs(f"{output_dir}/decision_models") + if not os.path.exists(f"{output_dir}/output_images"): os.makedirs(f"{output_dir}/output_images") + if not os.path.exists(f"{output_dir}/output_data"): os.makedirs(f"{output_dir}/output_data") diff --git a/use_cases.ipynb b/use_cases.ipynb index de7524c..8b1f722 100644 --- a/use_cases.ipynb +++ b/use_cases.ipynb @@ -58,7 +58,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -73,7 +73,7 @@ " 'Alcohol': 'low'}" ] }, - "execution_count": 4, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -105,35 +105,35 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-21 10:40:02,146 - INFO - Model type: linear\n", - "2024-11-21 10:40:02,146 - INFO - Reading network...\n", - "2024-11-21 10:40:02,162 - INFO - Calculating information values...\n", - "2024-11-21 10:40:53,041 - INFO - Eliciting value of comfort...\n", - "2024-11-21 10:40:53,042 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-21 10:40:53,043 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 15:52:12,576 - INFO - Model type: linear\n", + "2024-11-21 15:52:12,577 - INFO - Reading network...\n", + "2024-11-21 15:52:12,600 - INFO - Calculating information values...\n", + "2024-11-21 15:53:22,348 - INFO - Eliciting value of comfort...\n", + "2024-11-21 15:53:22,349 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 15:53:22,350 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-21 10:40:53,044 - INFO - Saving network...\n", - "2024-11-21 10:40:53,076 - INFO - Plotting info functions...\n", - "2024-11-21 10:41:26,012 - INFO - Calculating final utilities...\n", - "2024-11-21 10:41:26,019 - INFO - Best info: 15.299634978175163\n", - "2024-11-21 10:41:26,021 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-21 10:41:26,021 - INFO - PE info: 4\n", - "2024-11-21 10:41:26,022 - INFO - v_best: 104.06788025218766\n", - "2024-11-21 10:41:26,022 - INFO - v_worst: -3.910235286299258\n", - "2024-11-21 10:41:26,023 - INFO - v_PE: 26.429786821508884\n", - "2024-11-21 10:41:26,023 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-21 10:41:26,184 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-21 10:41:26,217 - INFO - Done!\n", - "2024-11-21 10:41:26,218 - INFO - Calculating utilities for patient X...\n", - "2024-11-21 10:41:26,235 - INFO - \n", + "2024-11-21 15:53:22,351 - INFO - Saving network...\n", + "2024-11-21 15:53:22,397 - INFO - Plotting info functions...\n", + "2024-11-21 15:53:56,490 - INFO - Calculating final utilities...\n", + "2024-11-21 15:53:56,496 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 15:53:56,497 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 15:53:56,498 - INFO - PE info: 4\n", + "2024-11-21 15:53:56,498 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 15:53:56,498 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 15:53:56,499 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 15:53:56,499 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 15:53:56,587 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 15:53:56,634 - INFO - Done!\n", + "2024-11-21 15:53:56,635 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 15:53:56,656 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -160,8 +160,8 @@ "U 0.695161 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-21 10:41:26,236 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-21 10:41:26,244 - INFO - \n", + "2024-11-21 15:53:56,657 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 15:53:56,666 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.124881 0.140945 0.118212 0.138242 0.131085 \n", "\n", @@ -172,10 +172,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 5, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -206,58 +206,56 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 17:16:51,640 - INFO - Model type: linear\n", - "2024-11-20 17:16:51,640 - INFO - Model type: linear\n", - "2024-11-20 17:16:51,642 - INFO - Reading network...\n", - "2024-11-20 17:16:51,642 - INFO - Reading network...\n", - "2024-11-20 17:16:51,658 - INFO - Calculating information values...\n", - "2024-11-20 17:16:51,658 - INFO - Calculating information values...\n", - "2024-11-20 17:17:43,696 - INFO - Eliciting value of comfort...\n", - "2024-11-20 17:17:43,696 - INFO - Eliciting value of comfort...\n", - "2024-11-20 17:17:43,698 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-20 17:17:43,698 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-20 17:17:43,699 - INFO - Adding noise to the lambda values...\n", - "2024-11-20 17:17:43,699 - INFO - Adding noise to the lambda values...\n", - "2024-11-20 17:17:43,700 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 15:53:56,677 - INFO - Model type: linear\n", + "2024-11-21 15:53:56,677 - INFO - Model type: linear\n", + "2024-11-21 15:53:56,678 - INFO - Reading network...\n", + "2024-11-21 15:53:56,678 - INFO - Reading network...\n", + "2024-11-21 15:53:56,696 - INFO - Calculating information values...\n", + "2024-11-21 15:53:56,696 - INFO - Calculating information values...\n", + "2024-11-21 15:54:47,911 - INFO - Eliciting value of comfort...\n", + "2024-11-21 15:54:47,911 - INFO - Eliciting value of comfort...\n", + "2024-11-21 15:54:47,913 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 15:54:47,913 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 15:54:47,915 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-20 17:17:43,700 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 15:54:47,915 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-20 17:17:43,701 - INFO - Saving network...\n", - "2024-11-20 17:17:43,701 - INFO - Saving network...\n", - "2024-11-20 17:17:43,733 - INFO - Plotting info functions...\n", - "2024-11-20 17:17:43,733 - INFO - Plotting info functions...\n", - "2024-11-20 17:18:16,839 - INFO - Calculating final utilities...\n", - "2024-11-20 17:18:16,839 - INFO - Calculating final utilities...\n", - "2024-11-20 17:18:16,847 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 17:18:16,847 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 17:18:16,848 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 17:18:16,848 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 17:18:16,848 - INFO - PE info: 4\n", - "2024-11-20 17:18:16,848 - INFO - PE info: 4\n", - "2024-11-20 17:18:16,849 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 17:18:16,849 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 17:18:16,851 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 17:18:16,851 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 17:18:16,851 - INFO - v_PE: 26.429786821508884\n", - "2024-11-20 17:18:16,851 - INFO - v_PE: 26.429786821508884\n", - "2024-11-20 17:18:16,853 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 17:18:16,853 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 17:18:16,871 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-20 17:18:16,871 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-20 17:18:16,926 - INFO - Done!\n", - "2024-11-20 17:18:16,926 - INFO - Done!\n", - "2024-11-20 17:18:16,929 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 17:18:16,929 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 17:18:16,945 - INFO - \n", + "2024-11-21 15:54:47,915 - INFO - Saving network...\n", + "2024-11-21 15:54:47,915 - INFO - Saving network...\n", + "2024-11-21 15:54:47,961 - INFO - Plotting info functions...\n", + "2024-11-21 15:54:47,961 - INFO - Plotting info functions...\n", + "2024-11-21 15:55:21,768 - INFO - Calculating final utilities...\n", + "2024-11-21 15:55:21,768 - INFO - Calculating final utilities...\n", + "2024-11-21 15:55:21,775 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 15:55:21,775 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 15:55:21,776 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 15:55:21,776 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 15:55:21,777 - INFO - PE info: 4\n", + "2024-11-21 15:55:21,777 - INFO - PE info: 4\n", + "2024-11-21 15:55:21,778 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 15:55:21,778 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 15:55:21,779 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 15:55:21,779 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 15:55:21,779 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 15:55:21,779 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 15:55:21,780 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 15:55:21,780 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 15:55:21,826 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 15:55:21,826 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 15:55:21,873 - INFO - Done!\n", + "2024-11-21 15:55:21,873 - INFO - Done!\n", + "2024-11-21 15:55:21,873 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 15:55:21,873 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 15:55:21,893 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -284,7 +282,7 @@ "U 0.248652 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 17:18:16,945 - INFO - \n", + "2024-11-21 15:55:21,893 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -311,15 +309,15 @@ "U 0.248652 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 17:18:16,946 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 17:18:16,946 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 17:18:16,957 - INFO - \n", + "2024-11-21 15:55:21,894 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 15:55:21,894 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 15:55:21,904 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.142322 0.146222 0.140464 0.143392 0.142365 \n", "\n", " Colon_capsule \n", "Screening 0.140852 \n", - "2024-11-20 17:18:16,957 - INFO - \n", + "2024-11-21 15:55:21,904 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.142322 0.146222 0.140464 0.143392 0.142365 \n", "\n", @@ -330,10 +328,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 4, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -366,83 +364,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-21 10:36:17,431 - INFO - Model type: linear\n", - "2024-11-21 10:36:17,431 - INFO - Model type: linear\n", - "2024-11-21 10:36:17,438 - INFO - Reading network...\n", - "2024-11-21 10:36:17,438 - INFO - Reading network...\n", - "2024-11-21 10:36:17,452 - INFO - Calculating information values...\n", - "2024-11-21 10:36:17,452 - INFO - Calculating information values...\n", - "2024-11-21 10:37:07,971 - INFO - Eliciting value of comfort...\n", - "2024-11-21 10:37:07,971 - INFO - Eliciting value of comfort...\n", - "2024-11-21 10:37:07,973 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-21 10:37:07,973 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-21 10:37:07,974 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", - " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", - " 4.16848007 4.01194248]\n", - "2024-11-21 10:37:07,974 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 15:55:21,915 - INFO - Model type: linear\n", + "2024-11-21 15:55:21,916 - INFO - Reading network...\n", + "2024-11-21 15:55:21,934 - INFO - Calculating information values...\n", + "2024-11-21 15:56:14,156 - INFO - Eliciting value of comfort...\n", + "2024-11-21 15:56:14,157 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 15:56:14,159 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-21 10:37:07,975 - INFO - Saving network...\n", - "2024-11-21 10:37:07,975 - INFO - Saving network...\n", - "2024-11-21 10:37:08,008 - INFO - Plotting info functions...\n", - "2024-11-21 10:37:08,008 - INFO - Plotting info functions...\n", - "2024-11-21 10:37:45,189 - INFO - Calculating final utilities...\n", - "2024-11-21 10:37:45,189 - INFO - Calculating final utilities...\n", - "2024-11-21 10:37:45,197 - INFO - Best info: 15.299634978175163\n", - "2024-11-21 10:37:45,197 - INFO - Best info: 15.299634978175163\n", - "2024-11-21 10:37:45,198 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-21 10:37:45,198 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-21 10:37:45,199 - INFO - PE info: 4\n", - "2024-11-21 10:37:45,199 - INFO - PE info: 4\n", - "2024-11-21 10:37:45,200 - INFO - v_best: 104.06788025218766\n", - "2024-11-21 10:37:45,200 - INFO - v_best: 104.06788025218766\n", - "2024-11-21 10:37:45,201 - INFO - v_worst: -3.910235286299258\n", - "2024-11-21 10:37:45,201 - INFO - v_worst: -3.910235286299258\n", - "2024-11-21 10:37:45,202 - INFO - v_PE: 26.429786821508884\n", - "2024-11-21 10:37:45,202 - INFO - v_PE: 26.429786821508884\n", - "2024-11-21 10:37:45,203 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-21 10:37:45,203 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-21 10:37:45,222 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-21 10:37:45,222 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-21 10:37:45,270 - INFO - Done!\n", - "2024-11-21 10:37:45,270 - INFO - Done!\n", - "2024-11-21 10:37:45,272 - INFO - Calculating utilities for patient X...\n", - "2024-11-21 10:37:45,272 - INFO - Calculating utilities for patient X...\n", - "2024-11-21 10:37:45,292 - INFO - \n", - " No_screening \\\n", - " No_pred_screening Predicted_False Predicted_True \n", - " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.141984 0.122457 4.450148e-308 4.450148e-308 4.450148e-308 \n", - "\n", - " gFOBT \\\n", - " No_pred_screening Predicted_False \n", - " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.10747 0.088204 \n", - "\n", - " ... CTC \\\n", - " ... Predicted_False Predicted_True \n", - " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.082068 0.063939 0.230996 0.553248 \n", - "\n", - " Colon_capsule \\\n", - " No_pred_screening Predicted_False Predicted_True \n", - " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.059022 0.054248 0.337013 \n", - "\n", - " \n", - " \n", - " Colonoscopy \n", - "U 0.703065 \n", - "\n", - "[1 rows x 42 columns]\n", - "2024-11-21 10:37:45,292 - INFO - \n", + "2024-11-21 15:56:14,159 - INFO - Saving network...\n", + "2024-11-21 15:56:14,216 - INFO - Plotting info functions...\n", + "2024-11-21 15:56:48,828 - INFO - Calculating final utilities...\n", + "2024-11-21 15:56:48,835 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 15:56:48,835 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 15:56:48,836 - INFO - PE info: 4\n", + "2024-11-21 15:56:48,836 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 15:56:48,837 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 15:56:48,837 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 15:56:48,838 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 15:56:48,861 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 15:56:48,919 - INFO - Done!\n", + "2024-11-21 15:56:48,920 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 15:56:48,935 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -469,15 +419,8 @@ "U 0.703065 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-21 10:37:45,293 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-21 10:37:45,293 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-21 10:37:45,305 - INFO - \n", - " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.141984 0.126365 0.144437 0.121772 0.144888 0.135167 \n", - "\n", - " Colon_capsule \n", - "Screening 0.112532 \n", - "2024-11-21 10:37:45,305 - INFO - \n", + "2024-11-21 15:56:48,936 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 15:56:48,945 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.126365 0.144437 0.121772 0.144888 0.135167 \n", "\n", @@ -488,10 +431,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 4, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -526,36 +469,35 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 17:19:47,261 - INFO - Model type: linear\n", - "2024-11-20 17:19:47,261 - INFO - Reading network...\n", - "2024-11-20 17:19:47,278 - INFO - Calculating information values...\n", - "2024-11-20 17:20:42,898 - INFO - Eliciting value of comfort...\n", - "2024-11-20 17:20:42,899 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-20 17:20:42,901 - INFO - Adding noise to the lambda values...\n", - "2024-11-20 17:20:42,902 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 15:56:48,954 - INFO - Model type: linear\n", + "2024-11-21 15:56:48,954 - INFO - Reading network...\n", + "2024-11-21 15:56:48,972 - INFO - Calculating information values...\n", + "2024-11-21 15:57:41,115 - INFO - Eliciting value of comfort...\n", + "2024-11-21 15:57:41,117 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 15:57:41,118 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-20 17:20:42,902 - INFO - Saving network...\n", - "2024-11-20 17:20:42,941 - INFO - Plotting info functions...\n", - "2024-11-20 17:21:17,239 - INFO - Calculating final utilities...\n", - "2024-11-20 17:21:17,245 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 17:21:17,246 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 17:21:17,246 - INFO - PE info: 4\n", - "2024-11-20 17:21:17,247 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 17:21:17,248 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 17:21:17,248 - INFO - v_PE: 26.429786821508884\n", - "2024-11-20 17:21:17,249 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 17:21:17,303 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-20 17:21:17,361 - INFO - Done!\n", - "2024-11-20 17:21:17,361 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 17:21:17,378 - INFO - \n", + "2024-11-21 15:57:41,118 - INFO - Saving network...\n", + "2024-11-21 15:57:41,175 - INFO - Plotting info functions...\n", + "2024-11-21 15:58:15,337 - INFO - Calculating final utilities...\n", + "2024-11-21 15:58:15,344 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 15:58:15,345 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 15:58:15,345 - INFO - PE info: 4\n", + "2024-11-21 15:58:15,346 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 15:58:15,346 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 15:58:15,347 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 15:58:15,347 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 15:58:15,366 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 15:58:15,423 - INFO - Done!\n", + "2024-11-21 15:58:15,423 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 15:58:15,439 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -582,8 +524,8 @@ "U 0.667177 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 17:21:17,378 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 17:21:17,389 - INFO - \n", + "2024-11-21 15:58:15,440 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 15:58:15,449 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.143342 0.131309 0.155592 0.133432 0.158329 0.142705 \n", "\n", @@ -594,10 +536,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 6, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -645,36 +587,35 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 17:21:17,401 - INFO - Model type: linear\n", - "2024-11-20 17:21:17,402 - INFO - Reading network...\n", - "2024-11-20 17:21:17,422 - INFO - Calculating information values...\n", - "2024-11-20 17:22:08,424 - INFO - Eliciting value of comfort...\n", - "2024-11-20 17:22:08,425 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-20 17:22:08,425 - INFO - Adding noise to the lambda values...\n", - "2024-11-20 17:22:08,427 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 15:58:15,459 - INFO - Model type: linear\n", + "2024-11-21 15:58:15,460 - INFO - Reading network...\n", + "2024-11-21 15:58:15,477 - INFO - Calculating information values...\n", + "2024-11-21 15:59:07,883 - INFO - Eliciting value of comfort...\n", + "2024-11-21 15:59:07,884 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 15:59:07,886 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-20 17:22:08,428 - INFO - Saving network...\n", - "2024-11-20 17:22:08,465 - INFO - Plotting info functions...\n", - "2024-11-20 17:22:42,209 - INFO - Calculating final utilities...\n", - "2024-11-20 17:22:42,216 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 17:22:42,217 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 17:22:42,217 - INFO - PE info: 4\n", - "2024-11-20 17:22:42,218 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 17:22:42,218 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 17:22:42,218 - INFO - v_PE: 26.429786821508884\n", - "2024-11-20 17:22:42,219 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 17:22:42,314 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-20 17:22:42,345 - INFO - Done!\n", - "2024-11-20 17:22:42,346 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 17:22:42,361 - INFO - \n", + "2024-11-21 15:59:07,886 - INFO - Saving network...\n", + "2024-11-21 15:59:07,942 - INFO - Plotting info functions...\n", + "2024-11-21 15:59:42,111 - INFO - Calculating final utilities...\n", + "2024-11-21 15:59:42,118 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 15:59:42,118 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 15:59:42,119 - INFO - PE info: 4\n", + "2024-11-21 15:59:42,119 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 15:59:42,120 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 15:59:42,121 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 15:59:42,121 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 15:59:42,197 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 15:59:42,253 - INFO - Done!\n", + "2024-11-21 15:59:42,254 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 15:59:42,270 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -701,8 +642,8 @@ "U 0.460159 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 17:22:42,362 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 17:22:42,373 - INFO - \n", + "2024-11-21 15:59:42,270 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 15:59:42,279 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.154703 0.153232 0.182212 0.148801 0.172063 0.148891 \n", "\n", @@ -713,10 +654,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 7, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -770,36 +711,35 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 17:22:42,397 - INFO - Model type: linear\n", - "2024-11-20 17:22:42,398 - INFO - Reading network...\n", - "2024-11-20 17:22:42,414 - INFO - Calculating information values...\n", - "2024-11-20 17:23:37,585 - INFO - Eliciting value of comfort...\n", - "2024-11-20 17:23:37,586 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-20 17:23:37,586 - INFO - Adding noise to the lambda values...\n", - "2024-11-20 17:23:37,587 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 15:59:42,289 - INFO - Model type: linear\n", + "2024-11-21 15:59:42,290 - INFO - Reading network...\n", + "2024-11-21 15:59:42,308 - INFO - Calculating information values...\n", + "2024-11-21 16:00:34,581 - INFO - Eliciting value of comfort...\n", + "2024-11-21 16:00:34,582 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 16:00:34,583 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-20 17:23:37,588 - INFO - Saving network...\n", - "2024-11-20 17:23:37,634 - INFO - Plotting info functions...\n", - "2024-11-20 17:24:13,691 - INFO - Calculating final utilities...\n", - "2024-11-20 17:24:13,697 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 17:24:13,698 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 17:24:13,699 - INFO - PE info: 4\n", - "2024-11-20 17:24:13,699 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 17:24:13,701 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 17:24:13,701 - INFO - v_PE: 26.429786821508884\n", - "2024-11-20 17:24:13,702 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 17:24:13,805 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-20 17:24:13,861 - INFO - Done!\n", - "2024-11-20 17:24:13,861 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 17:24:13,879 - INFO - \n", + "2024-11-21 16:00:34,584 - INFO - Saving network...\n", + "2024-11-21 16:00:34,639 - INFO - Plotting info functions...\n", + "2024-11-21 16:01:09,207 - INFO - Calculating final utilities...\n", + "2024-11-21 16:01:09,214 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:01:09,215 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:01:09,215 - INFO - PE info: 4\n", + "2024-11-21 16:01:09,216 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:01:09,216 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:01:09,217 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:01:09,218 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:01:09,240 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:01:09,296 - INFO - Done!\n", + "2024-11-21 16:01:09,297 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:01:09,313 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -826,8 +766,8 @@ "U 0.712792 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 17:24:13,880 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 17:24:13,898 - INFO - \n", + "2024-11-21 16:01:09,313 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:01:09,323 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.125904 0.143387 0.121653 0.144418 0.135082 \n", "\n", @@ -838,10 +778,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 8, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -884,36 +824,35 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 17:24:13,911 - INFO - Model type: linear\n", - "2024-11-20 17:24:13,912 - INFO - Reading network...\n", - "2024-11-20 17:24:13,935 - INFO - Calculating information values...\n", - "2024-11-20 17:25:10,072 - INFO - Eliciting value of comfort...\n", - "2024-11-20 17:25:10,073 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-20 17:25:10,073 - INFO - Adding noise to the lambda values...\n", - "2024-11-20 17:25:10,075 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 16:01:09,333 - INFO - Model type: linear\n", + "2024-11-21 16:01:09,334 - INFO - Reading network...\n", + "2024-11-21 16:01:09,352 - INFO - Calculating information values...\n", + "2024-11-21 16:02:01,126 - INFO - Eliciting value of comfort...\n", + "2024-11-21 16:02:01,128 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 16:02:01,129 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-20 17:25:10,075 - INFO - Saving network...\n", - "2024-11-20 17:25:10,126 - INFO - Plotting info functions...\n", - "2024-11-20 17:25:46,524 - INFO - Calculating final utilities...\n", - "2024-11-20 17:25:46,531 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 17:25:46,531 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 17:25:46,532 - INFO - PE info: 4\n", - "2024-11-20 17:25:46,533 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 17:25:46,533 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 17:25:46,534 - INFO - v_PE: 26.429786821508884\n", - "2024-11-20 17:25:46,535 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 17:25:46,558 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-20 17:25:46,609 - INFO - Done!\n", - "2024-11-20 17:25:46,611 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 17:25:46,628 - INFO - \n", + "2024-11-21 16:02:01,130 - INFO - Saving network...\n", + "2024-11-21 16:02:01,186 - INFO - Plotting info functions...\n", + "2024-11-21 16:02:35,415 - INFO - Calculating final utilities...\n", + "2024-11-21 16:02:35,422 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:02:35,422 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:02:35,423 - INFO - PE info: 4\n", + "2024-11-21 16:02:35,423 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:02:35,424 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:02:35,424 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:02:35,425 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:02:35,440 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:02:35,496 - INFO - Done!\n", + "2024-11-21 16:02:35,497 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:02:35,513 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -940,8 +879,8 @@ "U 0.703065 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 17:25:46,629 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 17:25:46,646 - INFO - \n", + "2024-11-21 16:02:35,513 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:02:35,522 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.126365 0.144437 0.121772 0.144888 0.135167 \n", "\n", @@ -952,10 +891,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 9, + "execution_count": 10, "metadata": {}, "output_type": "execute_result" } @@ -998,36 +937,35 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 17:25:46,660 - INFO - Model type: linear\n", - "2024-11-20 17:25:46,661 - INFO - Reading network...\n", - "2024-11-20 17:25:46,676 - INFO - Calculating information values...\n", - "2024-11-20 17:26:42,742 - INFO - Eliciting value of comfort...\n", - "2024-11-20 17:26:42,743 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-20 17:26:42,744 - INFO - Adding noise to the lambda values...\n", - "2024-11-20 17:26:42,745 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 16:02:35,532 - INFO - Model type: linear\n", + "2024-11-21 16:02:35,533 - INFO - Reading network...\n", + "2024-11-21 16:02:35,550 - INFO - Calculating information values...\n", + "2024-11-21 16:03:27,585 - INFO - Eliciting value of comfort...\n", + "2024-11-21 16:03:27,586 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 16:03:27,588 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-20 17:26:42,746 - INFO - Saving network...\n", - "2024-11-20 17:26:42,787 - INFO - Plotting info functions...\n", - "2024-11-20 17:27:20,877 - INFO - Calculating final utilities...\n", - "2024-11-20 17:27:20,884 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 17:27:20,885 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 17:27:20,886 - INFO - PE info: 4\n", - "2024-11-20 17:27:20,886 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 17:27:20,887 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 17:27:20,888 - INFO - v_PE: 26.429786821508884\n", - "2024-11-20 17:27:20,890 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 17:27:21,225 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-20 17:27:21,261 - INFO - Done!\n", - "2024-11-20 17:27:21,262 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 17:27:21,279 - INFO - \n", + "2024-11-21 16:03:27,588 - INFO - Saving network...\n", + "2024-11-21 16:03:27,632 - INFO - Plotting info functions...\n", + "2024-11-21 16:04:01,608 - INFO - Calculating final utilities...\n", + "2024-11-21 16:04:01,615 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:04:01,616 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:04:01,617 - INFO - PE info: 4\n", + "2024-11-21 16:04:01,617 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:04:01,618 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:04:01,618 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:04:01,619 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:04:01,653 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:04:01,697 - INFO - Done!\n", + "2024-11-21 16:04:01,697 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:04:01,713 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -1054,8 +992,8 @@ "U 0.703019 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 17:27:21,280 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 17:27:21,291 - INFO - \n", + "2024-11-21 16:04:01,714 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:04:01,723 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.125469 0.142358 0.120043 0.141574 0.133204 \n", "\n", @@ -1066,10 +1004,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 10, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -1117,58 +1055,58 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 17:27:21,303 - INFO - Configuration variables of interest:\n", - "2024-11-20 17:27:21,305 - INFO - Single run: True\n", - "2024-11-20 17:27:21,305 - INFO - Use all variables: True\n", - "2024-11-20 17:27:21,306 - INFO - Use case with new test: False\n", - "2024-11-20 17:27:21,307 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 17:27:21,307 - INFO - Reading the network file...\n", - "2024-11-20 17:27:21,329 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestFalse/decision_models/DM_screening_rel_point_cond_mut_info_linear.xdsl\n", - "2024-11-20 17:27:21,331 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-20 17:27:21,978 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", - "2024-11-20 17:27:21,979 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 5000, 'CTC': 2000, 'Colon_capsule': 2000}\n", - "2024-11-20 17:27:21,980 - INFO - A single simulation of the tests will be performed...\n", - "2024-11-20 17:28:28,393 - INFO - Calculation finished!\n", - "2024-11-20 17:28:28,394 - INFO - ----------------------\n", - "2024-11-20 17:28:28,394 - INFO - New screening strategy without operational limits\n", - "2024-11-20 17:28:28,395 - INFO - No limit on the number of tests.\n", - "2024-11-20 17:28:28,582 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-20 17:28:28,596 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:28,597 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:28,622 - INFO - ** Testing strategy: FIT **\n", - "2024-11-20 17:28:28,642 - INFO - --> Number of recommended tests: 3201\n", - "2024-11-20 17:28:28,643 - INFO - --> Number of tests performed: 3201 \n", - "\n", - "2024-11-20 17:28:28,756 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-20 17:28:28,771 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:28,772 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:28,814 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-20 17:28:28,845 - INFO - --> Number of recommended tests: 47824\n", - "2024-11-20 17:28:28,846 - INFO - --> Number of tests performed: 47824 \n", - "\n", - "2024-11-20 17:28:30,195 - INFO - ** Testing strategy: CTC **\n", - "2024-11-20 17:28:30,210 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:30,211 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:30,228 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-20 17:28:30,244 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:30,245 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:30,265 - INFO - Total number of colonoscopies performed: 6662\n", - "2024-11-20 17:28:30,276 - INFO - ---> Total cost of the strategy: 18077777.10 €\n", - "2024-11-20 17:28:30,277 - INFO - ---> Mean cost per screened participant: 354.29 €\n", - "2024-11-20 17:28:30,278 - INFO - ---> Mean cost per individual in the total population: 53.22 €\n", - "2024-11-20 17:28:30,278 - INFO - ---> Total time for the simulation: 1.87 seconds\n", - "2024-11-20 17:28:34,674 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:04:01,733 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:04:01,734 - INFO - Single run: True\n", + "2024-11-21 16:04:01,734 - INFO - Use all variables: True\n", + "2024-11-21 16:04:01,735 - INFO - Use case with new test: False\n", + "2024-11-21 16:04:01,735 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:04:01,736 - INFO - Reading the network file...\n", + "2024-11-21 16:04:01,753 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestFalse/decision_models/DM_screening_rel_point_cond_mut_info_linear.xdsl\n", + "2024-11-21 16:04:01,754 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", + "2024-11-21 16:04:02,422 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", + "2024-11-21 16:04:02,422 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 6000, 'CTC': 2000, 'Colon_capsule': 2000}\n", + "2024-11-21 16:04:02,423 - INFO - A single simulation of the tests will be performed...\n", + "2024-11-21 16:05:06,510 - INFO - Calculation finished!\n", + "2024-11-21 16:05:06,511 - INFO - ----------------------\n", + "2024-11-21 16:05:06,512 - INFO - New screening strategy without operational limits\n", + "2024-11-21 16:05:06,512 - INFO - No limit on the number of tests.\n", + "2024-11-21 16:05:06,737 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:05:06,754 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:06,755 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:06,779 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:05:06,799 - INFO - --> Number of recommended tests: 3201\n", + "2024-11-21 16:05:06,799 - INFO - --> Number of tests performed: 3201 \n", + "\n", + "2024-11-21 16:05:06,907 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:05:06,924 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:06,925 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:06,971 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:05:07,013 - INFO - --> Number of recommended tests: 47824\n", + "2024-11-21 16:05:07,013 - INFO - --> Number of tests performed: 47824 \n", + "\n", + "2024-11-21 16:05:08,424 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:05:08,441 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:08,441 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:08,462 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:05:08,481 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:08,482 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:08,505 - INFO - Total number of colonoscopies performed: 6662\n", + "2024-11-21 16:05:08,518 - INFO - ---> Total cost of the strategy: 18077777.10 €\n", + "2024-11-21 16:05:08,518 - INFO - ---> Mean cost per screened participant: 354.29 €\n", + "2024-11-21 16:05:08,519 - INFO - ---> Mean cost per individual in the total population: 53.22 €\n", + "2024-11-21 16:05:08,519 - INFO - ---> Total time for the simulation: 1.99 seconds\n", + "2024-11-21 16:05:14,843 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", "FIT 0.0 0.0 0.0 False 3085\n", @@ -1184,7 +1122,7 @@ " True 1\n", " 1.0 1.0 False 60\n", " True 93\n", - "2024-11-20 17:28:35,790 - INFO - precision recall f1-score support\n", + "2024-11-21 16:05:15,490 - INFO - precision recall f1-score support\n", "Negative 0.999638 0.999820 0.999729 339489.000000\n", "Positive 0.608974 0.435780 0.508021 218.000000\n", "accuracy 0.999458 0.999458 0.999458 0.999458\n", @@ -1192,70 +1130,70 @@ "weighted avg 0.999387 0.999458 0.999413 339707.000000\n", "sensitivity 0.435780 NaN NaN NaN\n", "specificity 0.999820 NaN NaN NaN\n", - "2024-11-20 17:28:35,794 - INFO - ----------------------\n", - "2024-11-20 17:28:35,794 - INFO - New screening strategy with operational limits\n", - "2024-11-20 17:28:35,796 - INFO - Limited number of tests will be performed.\n", - "2024-11-20 17:28:46,767 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-20 17:28:46,783 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:46,784 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:46,824 - INFO - ** Testing strategy: FIT **\n", - "2024-11-20 17:28:46,844 - INFO - --> Number of recommended tests: 3201\n", - "2024-11-20 17:28:46,845 - INFO - --> Number of tests performed: 42000 \n", - "\n", - "2024-11-20 17:28:47,899 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-20 17:28:47,914 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:47,915 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:47,938 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-20 17:28:47,969 - INFO - --> Number of recommended tests: 47824\n", - "2024-11-20 17:28:47,970 - INFO - --> Number of tests performed: 5000 \n", - "\n", - "2024-11-20 17:28:48,118 - INFO - ** Testing strategy: CTC **\n", - "2024-11-20 17:28:48,133 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:48,134 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:48,151 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-20 17:28:48,166 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:28:48,167 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:28:48,187 - INFO - Total number of colonoscopies performed: 2195\n", - "2024-11-20 17:28:48,419 - INFO - ---> Total cost of the strategy: 3995296.00 €\n", - "2024-11-20 17:28:48,420 - INFO - ---> Mean cost per screened participant: 85.01 €\n", - "2024-11-20 17:28:48,421 - INFO - ---> Mean cost per individual in the total population: 11.76 €\n", - "2024-11-20 17:28:48,422 - INFO - ---> Total time for the simulation: 12.39 seconds\n", - "2024-11-20 17:28:53,566 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:05:15,495 - INFO - ----------------------\n", + "2024-11-21 16:05:15,496 - INFO - New screening strategy with operational limits\n", + "2024-11-21 16:05:15,496 - INFO - Limited number of tests will be performed.\n", + "2024-11-21 16:05:25,009 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:05:25,027 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:25,028 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:25,080 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:05:25,101 - INFO - --> Number of recommended tests: 3201\n", + "2024-11-21 16:05:25,101 - INFO - --> Number of tests performed: 42000 \n", + "\n", + "2024-11-21 16:05:26,238 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:05:26,256 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:26,256 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:26,282 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:05:26,320 - INFO - --> Number of recommended tests: 47824\n", + "2024-11-21 16:05:26,320 - INFO - --> Number of tests performed: 6000 \n", + "\n", + "2024-11-21 16:05:26,525 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:05:26,543 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:26,543 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:26,564 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:05:26,583 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:26,583 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:26,607 - INFO - Total number of colonoscopies performed: 2303\n", + "2024-11-21 16:05:26,883 - INFO - ---> Total cost of the strategy: 4340845.94 €\n", + "2024-11-21 16:05:26,883 - INFO - ---> Mean cost per screened participant: 90.43 €\n", + "2024-11-21 16:05:26,884 - INFO - ---> Mean cost per individual in the total population: 12.78 €\n", + "2024-11-21 16:05:26,884 - INFO - ---> Total time for the simulation: 11.11 seconds\n", + "2024-11-21 16:05:33,800 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 40469\n", - " True 22\n", - " 1.0 0.0 0.0 False 1429\n", + "FIT 0.0 0.0 0.0 False 40479\n", + " True 23\n", + " 1.0 0.0 0.0 False 1420\n", " True 1\n", " 1.0 1.0 False 16\n", - " True 63\n", - "No_scr_no_col 0.0 0.0 0.0 False 292592\n", - " True 115\n", - "Stool_DNA 0.0 0.0 0.0 False 4311\n", - " True 3\n", - " 1.0 0.0 0.0 False 667\n", - " 1.0 1.0 False 5\n", - " True 14\n", - "2024-11-20 17:28:54,291 - INFO - precision recall f1-score support\n", - "Negative 0.999585 0.999938 0.999761 339489.000000\n", - "Positive 0.785714 0.353211 0.487342 218.000000\n", - "accuracy 0.999523 0.999523 0.999523 0.999523\n", - "macro avg 0.892650 0.676575 0.743552 339707.000000\n", - "weighted avg 0.999448 0.999523 0.999433 339707.000000\n", - "sensitivity 0.353211 NaN NaN NaN\n", - "specificity 0.999938 NaN NaN NaN\n", - "2024-11-20 17:28:54,296 - INFO - ----------------------\n", - "2024-11-20 17:28:54,296 - INFO - Old screening strategy\n", - "2024-11-20 17:28:55,510 - INFO - Total number of colonoscopies performed: 1774\n", - "2024-11-20 17:28:55,522 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", - "2024-11-20 17:28:55,523 - INFO - ---> Mean cost per screened participant: 50.71 €\n", - "2024-11-20 17:28:55,523 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", - "2024-11-20 17:28:55,524 - INFO - ---> Total time for the simulation: 1.21 seconds\n", - "2024-11-20 17:28:59,784 - INFO - ---> Distribution of positive predictions: \n", + " True 61\n", + "No_scr_no_col 0.0 0.0 0.0 False 291596\n", + " True 111\n", + "Stool_DNA 0.0 0.0 0.0 False 5191\n", + " True 4\n", + " 1.0 0.0 0.0 False 781\n", + " 1.0 1.0 False 6\n", + " True 18\n", + "2024-11-21 16:05:34,488 - INFO - precision recall f1-score support\n", + "Negative 0.999591 0.999935 0.999763 339489.000000\n", + "Positive 0.782178 0.362385 0.495298 218.000000\n", + "accuracy 0.999526 0.999526 0.999526 0.999526\n", + "macro avg 0.890884 0.681160 0.747530 339707.000000\n", + "weighted avg 0.999451 0.999526 0.999439 339707.000000\n", + "sensitivity 0.362385 NaN NaN NaN\n", + "specificity 0.999935 NaN NaN NaN\n", + "2024-11-21 16:05:34,493 - INFO - ----------------------\n", + "2024-11-21 16:05:34,493 - INFO - Old screening strategy\n", + "2024-11-21 16:05:35,881 - INFO - Total number of colonoscopies performed: 1774\n", + "2024-11-21 16:05:35,894 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", + "2024-11-21 16:05:35,894 - INFO - ---> Mean cost per screened participant: 50.71 €\n", + "2024-11-21 16:05:35,895 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", + "2024-11-21 16:05:35,895 - INFO - ---> Total time for the simulation: 1.39 seconds\n", + "2024-11-21 16:05:41,791 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", "FIT 0 0 0 False 47277\n", @@ -1266,7 +1204,7 @@ " True 82\n", "No_scr_no_col 0 0 0 False 290522\n", " True 111\n", - "2024-11-20 17:29:00,457 - INFO - precision recall f1-score support\n", + "2024-11-21 16:05:42,342 - INFO - precision recall f1-score support\n", "Negative 0.999600 0.999944 0.999772 339489.000000\n", "Positive 0.811881 0.376147 0.514107 218.000000\n", "accuracy 0.999544 0.999544 0.999544 0.999544\n", @@ -1274,49 +1212,49 @@ "weighted avg 0.999479 0.999544 0.999460 339707.000000\n", "sensitivity 0.376147 NaN NaN NaN\n", "specificity 0.999944 NaN NaN NaN\n", - "2024-11-20 17:29:00,461 - INFO - Comparison of the strategies\n", - "2024-11-20 17:29:00,463 - INFO - Limited number of tests will be performed.\n", - "2024-11-20 17:29:01,005 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-20 17:29:01,019 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:29:01,020 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:29:01,067 - INFO - ** Testing strategy: FIT **\n", - "2024-11-20 17:29:01,090 - INFO - --> Number of recommended tests: 3201\n", - "2024-11-20 17:29:01,091 - INFO - --> Number of tests performed: 49074 \n", - "\n", - "2024-11-20 17:29:02,277 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-20 17:29:02,291 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:29:02,293 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:29:02,308 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-20 17:29:02,340 - INFO - --> Number of recommended tests: 47824\n", - "2024-11-20 17:29:02,341 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:29:02,357 - INFO - ** Testing strategy: CTC **\n", - "2024-11-20 17:29:02,372 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:29:02,373 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:29:02,389 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-20 17:29:02,405 - INFO - --> Number of recommended tests: 0\n", - "2024-11-20 17:29:02,405 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-20 17:29:02,424 - INFO - Total number of colonoscopies performed: 1759\n", - "2024-11-20 17:29:02,443 - INFO - ---> Total cost of the strategy: 2473632.57 €\n", - "2024-11-20 17:29:02,444 - INFO - ---> Mean cost per screened participant: 81.41 €\n", - "2024-11-20 17:29:02,445 - INFO - ---> Mean cost per individual in the total population: 7.28 €\n", - "2024-11-20 17:29:02,446 - INFO - ---> Total time for the simulation: 1.96 seconds\n", - "2024-11-20 17:29:07,552 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:05:42,347 - INFO - Comparison of the strategies\n", + "2024-11-21 16:05:42,348 - INFO - Limited number of tests will be performed.\n", + "2024-11-21 16:05:42,965 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:05:42,983 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:42,984 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:43,037 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:05:43,059 - INFO - --> Number of recommended tests: 3201\n", + "2024-11-21 16:05:43,059 - INFO - --> Number of tests performed: 49074 \n", + "\n", + "2024-11-21 16:05:44,395 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:05:44,413 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:44,413 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:44,434 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:05:44,472 - INFO - --> Number of recommended tests: 47824\n", + "2024-11-21 16:05:44,473 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:44,493 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:05:44,510 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:44,511 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:44,532 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:05:44,550 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:05:44,550 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:05:44,574 - INFO - Total number of colonoscopies performed: 1753\n", + "2024-11-21 16:05:44,592 - INFO - ---> Total cost of the strategy: 2467595.35 €\n", + "2024-11-21 16:05:44,593 - INFO - ---> Mean cost per screened participant: 88.46 €\n", + "2024-11-21 16:05:44,593 - INFO - ---> Mean cost per individual in the total population: 7.26 €\n", + "2024-11-21 16:05:44,593 - INFO - ---> Total time for the simulation: 2.23 seconds\n", + "2024-11-21 16:05:51,559 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 47287\n", + "FIT 0.0 0.0 0.0 False 47293\n", " True 28\n", - " 1.0 0.0 0.0 False 1658\n", + " 1.0 0.0 0.0 False 1652\n", " True 1\n", " 1.0 1.0 False 21\n", " True 79\n", "No_scr_no_col 0.0 0.0 0.0 False 290523\n", " True 110\n", - "2024-11-20 17:29:08,272 - INFO - precision recall f1-score support\n", + "2024-11-21 16:05:52,949 - INFO - precision recall f1-score support\n", "Negative 0.999591 0.999938 0.999764 339489.000000\n", "Positive 0.790000 0.362385 0.496855 218.000000\n", "accuracy 0.999529 0.999529 0.999529 0.999529\n", @@ -1349,7 +1287,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -1364,7 +1302,7 @@ " 'Alcohol': 'low'}" ] }, - "execution_count": 6, + "execution_count": 13, "metadata": {}, "output_type": "execute_result" } @@ -1375,58 +1313,36 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 14, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-21 10:41:32,030 - INFO - Model type: linear\n", - "2024-11-21 10:41:32,030 - INFO - Model type: linear\n", - "2024-11-21 10:41:32,032 - INFO - Reading network...\n", - "2024-11-21 10:41:32,032 - INFO - Reading network...\n", - "2024-11-21 10:41:32,046 - INFO - Calculating information values...\n", - "2024-11-21 10:41:32,046 - INFO - Calculating information values...\n", - "2024-11-21 10:42:23,638 - INFO - Eliciting value of comfort...\n", - "2024-11-21 10:42:23,638 - INFO - Eliciting value of comfort...\n", - "2024-11-21 10:42:23,640 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-21 10:42:23,640 - INFO - No elicitation of lambda values, taking default values...\n", - "2024-11-21 10:42:23,641 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", + "2024-11-21 16:05:53,829 - INFO - Model type: linear\n", + "2024-11-21 16:05:53,830 - INFO - Reading network...\n", + "2024-11-21 16:05:53,849 - INFO - Calculating information values...\n", + "2024-11-21 16:06:46,119 - INFO - Eliciting value of comfort...\n", + "2024-11-21 16:06:46,120 - INFO - No elicitation of lambda values, taking default values...\n", + "2024-11-21 16:06:46,121 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", " 4.16848007 4.01194248]\n", - "2024-11-21 10:42:23,641 - INFO - Lambda values: [7. 4.01194248 6.80198452 4.01194248 6.80198452 4.01194248\n", - " 6.80198452 4.01194248 6.80198452 4.01194248 4.16848007 4.01194248\n", - " 4.16848007 4.01194248]\n", - "2024-11-21 10:42:23,643 - INFO - Adding new test values...\n", - "2024-11-21 10:42:23,643 - INFO - Adding new test values...\n", - "2024-11-21 10:43:45,392 - INFO - Saving network...\n", - "2024-11-21 10:43:45,392 - INFO - Saving network...\n", - "2024-11-21 10:43:45,429 - INFO - Plotting info functions...\n", - "2024-11-21 10:43:45,429 - INFO - Plotting info functions...\n", - "2024-11-21 10:45:07,587 - INFO - Calculating final utilities...\n", - "2024-11-21 10:45:07,587 - INFO - Calculating final utilities...\n", - "2024-11-21 10:45:07,597 - INFO - Best info: 15.299634978175163\n", - "2024-11-21 10:45:07,597 - INFO - Best info: 15.299634978175163\n", - "2024-11-21 10:45:07,598 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-21 10:45:07,598 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-21 10:45:07,599 - INFO - PE info: 4\n", - "2024-11-21 10:45:07,599 - INFO - PE info: 4\n", - "2024-11-21 10:45:07,600 - INFO - v_best: 104.06788025218766\n", - "2024-11-21 10:45:07,600 - INFO - v_best: 104.06788025218766\n", - "2024-11-21 10:45:07,601 - INFO - v_worst: -3.910235286299258\n", - "2024-11-21 10:45:07,601 - INFO - v_worst: -3.910235286299258\n", - "2024-11-21 10:45:07,601 - INFO - v_PE: 26.429786821508884\n", - "2024-11-21 10:45:07,601 - INFO - v_PE: 26.429786821508884\n", - "2024-11-21 10:45:07,602 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-21 10:45:07,602 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-21 10:45:07,674 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-21 10:45:07,674 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", - "2024-11-21 10:45:07,711 - INFO - Done!\n", - "2024-11-21 10:45:07,711 - INFO - Done!\n", - "2024-11-21 10:45:07,712 - INFO - Calculating utilities for patient X...\n", - "2024-11-21 10:45:07,712 - INFO - Calculating utilities for patient X...\n", - "2024-11-21 10:45:07,741 - INFO - \n", + "2024-11-21 16:06:46,122 - INFO - Adding new test values...\n", + "2024-11-21 16:07:53,059 - INFO - Saving network...\n", + "2024-11-21 16:07:53,110 - INFO - Plotting info functions...\n", + "2024-11-21 16:09:13,827 - INFO - Calculating final utilities...\n", + "2024-11-21 16:09:13,836 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:09:13,836 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:09:13,837 - INFO - PE info: 4\n", + "2024-11-21 16:09:13,837 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:09:13,838 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:09:13,838 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:09:13,839 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:09:13,906 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:09:13,957 - INFO - Done!\n", + "2024-11-21 16:09:13,957 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:09:13,976 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", @@ -1453,42 +1369,8 @@ "U 0.7981 \n", "\n", "[1 rows x 48 columns]\n", - "2024-11-21 10:45:07,741 - INFO - \n", - " No_screening \\\n", - " No_pred_screening Predicted_False Predicted_True \n", - " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.141984 0.111991 4.450148e-308 4.450148e-308 4.450148e-308 \n", - "\n", - " gFOBT \\\n", - " No_pred_screening Predicted_False \n", - " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.106879 0.081044 \n", - "\n", - " ... Colon_capsule \\\n", - " ... Predicted_False Predicted_True \n", - " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.057042 0.050357 0.308068 0.695161 \n", - "\n", - " New_test \\\n", - " No_pred_screening Predicted_False Predicted_True \n", - " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.137188 0.057718 0.604805 \n", - "\n", - " \n", - " \n", - " Colonoscopy \n", - "U 0.7981 \n", - "\n", - "[1 rows x 48 columns]\n", - "2024-11-21 10:45:07,742 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-21 10:45:07,742 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-21 10:45:07,759 - INFO - \n", - " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.141984 0.124881 0.140945 0.118212 0.138242 0.131085 \n", - "\n", - " Colon_capsule New_test \n", - "Screening 0.108522 0.177288 \n", - "2024-11-21 10:45:07,759 - INFO - \n", + "2024-11-21 16:09:13,977 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:09:13,988 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", "Screening 0.141984 0.124881 0.140945 0.118212 0.138242 0.131085 \n", "\n", @@ -1499,10 +1381,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 7, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -1526,7 +1408,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -1535,7 +1417,7 @@ "[4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]" ] }, - "execution_count": 9, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -1546,206 +1428,110 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 16, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-21 10:59:42,909 - INFO - Configuration variables of interest:\n", - "2024-11-21 10:59:42,909 - INFO - Configuration variables of interest:\n", - "2024-11-21 10:59:42,909 - INFO - Configuration variables of interest:\n", - "2024-11-21 10:59:42,909 - INFO - Configuration variables of interest:\n", - "2024-11-21 10:59:42,911 - INFO - Single run: True\n", - "2024-11-21 10:59:42,911 - INFO - Single run: True\n", - "2024-11-21 10:59:42,911 - INFO - Single run: True\n", - "2024-11-21 10:59:42,911 - INFO - Single run: True\n", - "2024-11-21 10:59:42,913 - INFO - Use all variables: True\n", - "2024-11-21 10:59:42,913 - INFO - Use all variables: True\n", - "2024-11-21 10:59:42,913 - INFO - Use all variables: True\n", - "2024-11-21 10:59:42,913 - INFO - Use all variables: True\n", - "2024-11-21 10:59:42,914 - INFO - Use case with new test: True\n", - "2024-11-21 10:59:42,914 - INFO - Use case with new test: True\n", - "2024-11-21 10:59:42,914 - INFO - Use case with new test: True\n", - "2024-11-21 10:59:42,914 - INFO - Use case with new test: True\n", - "2024-11-21 10:59:42,916 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-21 10:59:42,916 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-21 10:59:42,916 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-21 10:59:42,916 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-21 10:59:42,917 - INFO - Reading the network file...\n", - "2024-11-21 10:59:42,917 - INFO - Reading the network file...\n", - "2024-11-21 10:59:42,917 - INFO - Reading the network file...\n", - "2024-11-21 10:59:42,917 - INFO - Reading the network file...\n", - "2024-11-21 10:59:42,959 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestTrue/decision_models/DM_screening_rel_point_cond_mut_info_linear_new_test.xdsl\n", - "2024-11-21 10:59:42,959 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestTrue/decision_models/DM_screening_rel_point_cond_mut_info_linear_new_test.xdsl\n", - "2024-11-21 10:59:42,959 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestTrue/decision_models/DM_screening_rel_point_cond_mut_info_linear_new_test.xdsl\n", - "2024-11-21 10:59:42,959 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestTrue/decision_models/DM_screening_rel_point_cond_mut_info_linear_new_test.xdsl\n", - "2024-11-21 10:59:42,961 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-21 10:59:42,961 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-21 10:59:42,961 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-21 10:59:42,961 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-21 10:59:43,532 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", - "2024-11-21 10:59:43,532 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", - "2024-11-21 10:59:43,532 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", - "2024-11-21 10:59:43,532 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", - "2024-11-21 10:59:43,535 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 5000, 'CTC': 2000, 'Colon_capsule': 2000, 'New_test': 50000}\n", - "2024-11-21 10:59:43,535 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 5000, 'CTC': 2000, 'Colon_capsule': 2000, 'New_test': 50000}\n", - "2024-11-21 10:59:43,535 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 5000, 'CTC': 2000, 'Colon_capsule': 2000, 'New_test': 50000}\n", - "2024-11-21 10:59:43,535 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 5000, 'CTC': 2000, 'Colon_capsule': 2000, 'New_test': 50000}\n", - "2024-11-21 10:59:43,537 - INFO - A single simulation of the tests will be performed...\n", - "2024-11-21 10:59:43,537 - INFO - A single simulation of the tests will be performed...\n", - "2024-11-21 10:59:43,537 - INFO - A single simulation of the tests will be performed...\n", - "2024-11-21 10:59:43,537 - INFO - A single simulation of the tests will be performed...\n", - "2024-11-21 11:00:59,346 - INFO - Calculation finished!\n", - "2024-11-21 11:00:59,346 - INFO - Calculation finished!\n", - "2024-11-21 11:00:59,346 - INFO - Calculation finished!\n", - "2024-11-21 11:00:59,346 - INFO - Calculation finished!\n", - "2024-11-21 11:00:59,349 - INFO - ----------------------\n", - "2024-11-21 11:00:59,349 - INFO - ----------------------\n", - "2024-11-21 11:00:59,349 - INFO - ----------------------\n", - "2024-11-21 11:00:59,349 - INFO - ----------------------\n", - "2024-11-21 11:00:59,352 - INFO - New screening strategy without operational limits\n", - "2024-11-21 11:00:59,352 - INFO - New screening strategy without operational limits\n", - "2024-11-21 11:00:59,352 - INFO - New screening strategy without operational limits\n", - "2024-11-21 11:00:59,352 - INFO - New screening strategy without operational limits\n", - "2024-11-21 11:00:59,354 - INFO - No limit on the number of tests.\n", - "2024-11-21 11:00:59,354 - INFO - No limit on the number of tests.\n", - "2024-11-21 11:00:59,354 - INFO - No limit on the number of tests.\n", - "2024-11-21 11:00:59,354 - INFO - No limit on the number of tests.\n", - "2024-11-21 11:00:59,420 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:00:59,420 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:00:59,420 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:00:59,420 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:00:59,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,461 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:00:59,461 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:00:59,461 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:00:59,461 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:00:59,482 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,482 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,482 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,482 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,484 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,484 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,484 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,484 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,503 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:00:59,503 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:00:59,503 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:00:59,503 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:00:59,526 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,526 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,526 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,526 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,529 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,529 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,529 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,529 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,552 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:00:59,552 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:00:59,552 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:00:59,552 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:00:59,569 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,569 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,569 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,569 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,572 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,572 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,572 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,572 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,593 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:00:59,593 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:00:59,593 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:00:59,593 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:00:59,615 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,615 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,615 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,615 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,617 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,617 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,617 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,617 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,637 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:00:59,637 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:00:59,637 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:00:59,637 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:00:59,654 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,654 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,654 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,654 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:00:59,656 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,656 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,656 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,656 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:00:59,867 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:00:59,867 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:00:59,867 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:00:59,867 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:00:59,996 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:00:59,996 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:00:59,996 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:00:59,996 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:00,000 - INFO - --> Number of tests performed: 339707 \n", - "\n", - "2024-11-21 11:01:00,000 - INFO - --> Number of tests performed: 339707 \n", - "\n", - "2024-11-21 11:01:00,000 - INFO - --> Number of tests performed: 339707 \n", - "\n", - "2024-11-21 11:01:00,000 - INFO - --> Number of tests performed: 339707 \n", - "\n", - "2024-11-21 11:01:09,076 - INFO - Total number of colonoscopies performed: 20484\n", - "2024-11-21 11:01:09,076 - INFO - Total number of colonoscopies performed: 20484\n", - "2024-11-21 11:01:09,076 - INFO - Total number of colonoscopies performed: 20484\n", - "2024-11-21 11:01:09,076 - INFO - Total number of colonoscopies performed: 20484\n", - "2024-11-21 11:01:09,099 - INFO - ---> Total cost of the strategy: 21630187.10 €\n", - "2024-11-21 11:01:09,099 - INFO - ---> Total cost of the strategy: 21630187.10 €\n", - "2024-11-21 11:01:09,099 - INFO - ---> Total cost of the strategy: 21630187.10 €\n", - "2024-11-21 11:01:09,099 - INFO - ---> Total cost of the strategy: 21630187.10 €\n", - "2024-11-21 11:01:09,102 - INFO - ---> Mean cost per screened participant: 63.67 €\n", - "2024-11-21 11:01:09,102 - INFO - ---> Mean cost per screened participant: 63.67 €\n", - "2024-11-21 11:01:09,102 - INFO - ---> Mean cost per screened participant: 63.67 €\n", - "2024-11-21 11:01:09,102 - INFO - ---> Mean cost per screened participant: 63.67 €\n", - "2024-11-21 11:01:09,105 - INFO - ---> Mean cost per individual in the total population: 63.67 €\n", - "2024-11-21 11:01:09,105 - INFO - ---> Mean cost per individual in the total population: 63.67 €\n", - "2024-11-21 11:01:09,105 - INFO - ---> Mean cost per individual in the total population: 63.67 €\n", - "2024-11-21 11:01:09,105 - INFO - ---> Mean cost per individual in the total population: 63.67 €\n", - "2024-11-21 11:01:09,107 - INFO - ---> Total time for the simulation: 9.73 seconds\n", - "2024-11-21 11:01:09,107 - INFO - ---> Total time for the simulation: 9.73 seconds\n", - "2024-11-21 11:01:09,107 - INFO - ---> Total time for the simulation: 9.73 seconds\n", - "2024-11-21 11:01:09,107 - INFO - ---> Total time for the simulation: 9.73 seconds\n", - "2024-11-21 11:01:14,265 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:09:14,004 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:09:14,004 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:09:14,005 - INFO - Single run: True\n", + "2024-11-21 16:09:14,005 - INFO - Single run: True\n", + "2024-11-21 16:09:14,006 - INFO - Use all variables: True\n", + "2024-11-21 16:09:14,006 - INFO - Use all variables: True\n", + "2024-11-21 16:09:14,007 - INFO - Use case with new test: True\n", + "2024-11-21 16:09:14,007 - INFO - Use case with new test: True\n", + "2024-11-21 16:09:14,008 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:09:14,008 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:09:14,009 - INFO - Reading the network file...\n", + "2024-11-21 16:09:14,009 - INFO - Reading the network file...\n", + "2024-11-21 16:09:14,030 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestTrue/decision_models/DM_screening_rel_point_cond_mut_info_linear_new_test.xdsl\n", + "2024-11-21 16:09:14,030 - INFO - Located at: outputs/linear_rel_point_cond_mut_info_elicitFalse_newtestTrue/decision_models/DM_screening_rel_point_cond_mut_info_linear_new_test.xdsl\n", + "2024-11-21 16:09:14,031 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", + "2024-11-21 16:09:14,031 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", + "2024-11-21 16:09:14,673 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", + "2024-11-21 16:09:14,673 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", + "2024-11-21 16:09:14,675 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 5000, 'CTC': 2000, 'Colon_capsule': 2000, 'New_test': 50000}\n", + "2024-11-21 16:09:14,675 - INFO - Operational limits for the screening strategies: {'No_scr_no_col': inf, 'No_scr_col': 3000, 'gFOBT': 30000, 'FIT': 42000, 'Blood_based': 7000, 'Stool_DNA': 5000, 'CTC': 2000, 'Colon_capsule': 2000, 'New_test': 50000}\n", + "2024-11-21 16:09:14,676 - INFO - A single simulation of the tests will be performed...\n", + "2024-11-21 16:09:14,676 - INFO - A single simulation of the tests will be performed...\n", + "2024-11-21 16:10:31,586 - INFO - Calculation finished!\n", + "2024-11-21 16:10:31,586 - INFO - Calculation finished!\n", + "2024-11-21 16:10:31,588 - INFO - ----------------------\n", + "2024-11-21 16:10:31,588 - INFO - ----------------------\n", + "2024-11-21 16:10:31,589 - INFO - New screening strategy without operational limits\n", + "2024-11-21 16:10:31,589 - INFO - New screening strategy without operational limits\n", + "2024-11-21 16:10:31,590 - INFO - No limit on the number of tests.\n", + "2024-11-21 16:10:31,590 - INFO - No limit on the number of tests.\n", + "2024-11-21 16:10:31,650 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:10:31,650 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:10:31,669 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,669 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,670 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,670 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,691 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:10:31,691 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:10:31,709 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,709 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,710 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,710 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,732 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:10:31,732 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:10:31,753 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,753 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,754 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,754 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,776 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:10:31,776 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:10:31,795 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,795 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,796 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,796 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,817 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:10:31,817 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:10:31,835 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,835 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,836 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,836 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,857 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:10:31,857 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:10:31,876 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,876 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:31,877 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:31,877 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:32,143 - INFO - ** Testing strategy: New_test **\n", + "2024-11-21 16:10:32,143 - INFO - ** Testing strategy: New_test **\n", + "2024-11-21 16:10:32,266 - INFO - --> Number of recommended tests: 339707\n", + "2024-11-21 16:10:32,266 - INFO - --> Number of recommended tests: 339707\n", + "2024-11-21 16:10:32,268 - INFO - --> Number of tests performed: 339707 \n", + "\n", + "2024-11-21 16:10:32,268 - INFO - --> Number of tests performed: 339707 \n", + "\n", + "2024-11-21 16:10:41,517 - INFO - Total number of colonoscopies performed: 20484\n", + "2024-11-21 16:10:41,517 - INFO - Total number of colonoscopies performed: 20484\n", + "2024-11-21 16:10:41,539 - INFO - ---> Total cost of the strategy: 21630187.10 €\n", + "2024-11-21 16:10:41,539 - INFO - ---> Total cost of the strategy: 21630187.10 €\n", + "2024-11-21 16:10:41,540 - INFO - ---> Mean cost per screened participant: 63.67 €\n", + "2024-11-21 16:10:41,540 - INFO - ---> Mean cost per screened participant: 63.67 €\n", + "2024-11-21 16:10:41,541 - INFO - ---> Mean cost per individual in the total population: 63.67 €\n", + "2024-11-21 16:10:41,541 - INFO - ---> Mean cost per individual in the total population: 63.67 €\n", + "2024-11-21 16:10:41,542 - INFO - ---> Total time for the simulation: 9.93 seconds\n", + "2024-11-21 16:10:41,542 - INFO - ---> Total time for the simulation: 9.93 seconds\n", + "2024-11-21 16:10:48,006 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", "New_test 0.0 0.0 0.0 False 319198\n", @@ -1754,7 +1540,7 @@ " True 6\n", " 1.0 1.0 False 191\n", " True 187\n", - "2024-11-21 11:01:14,265 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:10:48,006 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", "New_test 0.0 0.0 0.0 False 319198\n", @@ -1763,25 +1549,7 @@ " True 6\n", " 1.0 1.0 False 191\n", " True 187\n", - "2024-11-21 11:01:14,265 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "New_test 0.0 0.0 0.0 False 319198\n", - " True 25\n", - " 1.0 0.0 0.0 False 20100\n", - " True 6\n", - " 1.0 1.0 False 191\n", - " True 187\n", - "2024-11-21 11:01:14,265 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "New_test 0.0 0.0 0.0 False 319198\n", - " True 25\n", - " 1.0 0.0 0.0 False 20100\n", - " True 6\n", - " 1.0 1.0 False 191\n", - " True 187\n", - "2024-11-21 11:01:15,415 - INFO - precision recall f1-score support\n", + "2024-11-21 16:10:48,587 - INFO - precision recall f1-score support\n", "Negative 0.999909 0.999437 0.999673 339489.000000\n", "Positive 0.494709 0.857798 0.627517 218.000000\n", "accuracy 0.999346 0.999346 0.999346 0.999346\n", @@ -1789,7 +1557,7 @@ "weighted avg 0.999584 0.999346 0.999434 339707.000000\n", "sensitivity 0.857798 NaN NaN NaN\n", "specificity 0.999437 NaN NaN NaN\n", - "2024-11-21 11:01:15,415 - INFO - precision recall f1-score support\n", + "2024-11-21 16:10:48,587 - INFO - precision recall f1-score support\n", "Negative 0.999909 0.999437 0.999673 339489.000000\n", "Positive 0.494709 0.857798 0.627517 218.000000\n", "accuracy 0.999346 0.999346 0.999346 0.999346\n", @@ -1797,235 +1565,107 @@ "weighted avg 0.999584 0.999346 0.999434 339707.000000\n", "sensitivity 0.857798 NaN NaN NaN\n", "specificity 0.999437 NaN NaN NaN\n", - "2024-11-21 11:01:15,415 - INFO - precision recall f1-score support\n", - "Negative 0.999909 0.999437 0.999673 339489.000000\n", - "Positive 0.494709 0.857798 0.627517 218.000000\n", - "accuracy 0.999346 0.999346 0.999346 0.999346\n", - "macro avg 0.747309 0.928618 0.813595 339707.000000\n", - "weighted avg 0.999584 0.999346 0.999434 339707.000000\n", - "sensitivity 0.857798 NaN NaN NaN\n", - "specificity 0.999437 NaN NaN NaN\n", - "2024-11-21 11:01:15,415 - INFO - precision recall f1-score support\n", - "Negative 0.999909 0.999437 0.999673 339489.000000\n", - "Positive 0.494709 0.857798 0.627517 218.000000\n", - "accuracy 0.999346 0.999346 0.999346 0.999346\n", - "macro avg 0.747309 0.928618 0.813595 339707.000000\n", - "weighted avg 0.999584 0.999346 0.999434 339707.000000\n", - "sensitivity 0.857798 NaN NaN NaN\n", - "specificity 0.999437 NaN NaN NaN\n", - "2024-11-21 11:01:15,430 - INFO - ----------------------\n", - "2024-11-21 11:01:15,430 - INFO - ----------------------\n", - "2024-11-21 11:01:15,430 - INFO - ----------------------\n", - "2024-11-21 11:01:15,430 - INFO - ----------------------\n", - "2024-11-21 11:01:15,433 - INFO - New screening strategy with operational limits\n", - "2024-11-21 11:01:15,433 - INFO - New screening strategy with operational limits\n", - "2024-11-21 11:01:15,433 - INFO - New screening strategy with operational limits\n", - "2024-11-21 11:01:15,433 - INFO - New screening strategy with operational limits\n", - "2024-11-21 11:01:15,436 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:15,436 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:15,436 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:15,436 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:29,031 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:29,031 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:29,031 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:29,031 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:29,049 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,049 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,049 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,049 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,052 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,052 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,052 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,052 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,085 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:29,085 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:29,085 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:29,085 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:29,103 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,103 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,103 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,103 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,106 - INFO - --> Number of tests performed: 1787 \n", - "\n", - "2024-11-21 11:01:29,106 - INFO - --> Number of tests performed: 1787 \n", - "\n", - "2024-11-21 11:01:29,106 - INFO - --> Number of tests performed: 1787 \n", - "\n", - "2024-11-21 11:01:29,106 - INFO - --> Number of tests performed: 1787 \n", - "\n", - "2024-11-21 11:01:29,179 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:29,179 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:29,179 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:29,179 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:29,205 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,205 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,205 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,205 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,207 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,207 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,207 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,207 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,229 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:29,229 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:29,229 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:29,229 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:29,250 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,250 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,250 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,250 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,253 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,253 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,253 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,253 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,279 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:29,279 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:29,279 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:29,279 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:29,297 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,297 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,297 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,297 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,299 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,299 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,299 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,299 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,320 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:29,320 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:29,320 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:29,320 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:29,340 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,340 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,340 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,340 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:29,342 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,342 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,342 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,342 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:29,398 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:29,398 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:29,398 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:29,398 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:29,528 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:29,528 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:29,528 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:29,528 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:29,530 - INFO - --> Number of tests performed: 50000 \n", - "\n", - "2024-11-21 11:01:29,530 - INFO - --> Number of tests performed: 50000 \n", - "\n", - "2024-11-21 11:01:29,530 - INFO - --> Number of tests performed: 50000 \n", - "\n", - "2024-11-21 11:01:29,530 - INFO - --> Number of tests performed: 50000 \n", - "\n", - "2024-11-21 11:01:30,975 - INFO - Total number of colonoscopies performed: 3115\n", - "2024-11-21 11:01:30,975 - INFO - Total number of colonoscopies performed: 3115\n", - "2024-11-21 11:01:30,975 - INFO - Total number of colonoscopies performed: 3115\n", - "2024-11-21 11:01:30,975 - INFO - Total number of colonoscopies performed: 3115\n", - "2024-11-21 11:01:31,253 - INFO - ---> Total cost of the strategy: 3309948.51 €\n", - "2024-11-21 11:01:31,253 - INFO - ---> Total cost of the strategy: 3309948.51 €\n", - "2024-11-21 11:01:31,253 - INFO - ---> Total cost of the strategy: 3309948.51 €\n", - "2024-11-21 11:01:31,253 - INFO - ---> Total cost of the strategy: 3309948.51 €\n", - "2024-11-21 11:01:31,255 - INFO - ---> Mean cost per screened participant: 63.91 €\n", - "2024-11-21 11:01:31,255 - INFO - ---> Mean cost per screened participant: 63.91 €\n", - "2024-11-21 11:01:31,255 - INFO - ---> Mean cost per screened participant: 63.91 €\n", - "2024-11-21 11:01:31,255 - INFO - ---> Mean cost per screened participant: 63.91 €\n", - "2024-11-21 11:01:31,258 - INFO - ---> Mean cost per individual in the total population: 9.74 €\n", - "2024-11-21 11:01:31,258 - INFO - ---> Mean cost per individual in the total population: 9.74 €\n", - "2024-11-21 11:01:31,258 - INFO - ---> Mean cost per individual in the total population: 9.74 €\n", - "2024-11-21 11:01:31,258 - INFO - ---> Mean cost per individual in the total population: 9.74 €\n", - "2024-11-21 11:01:31,261 - INFO - ---> Total time for the simulation: 15.54 seconds\n", - "2024-11-21 11:01:31,261 - INFO - ---> Total time for the simulation: 15.54 seconds\n", - "2024-11-21 11:01:31,261 - INFO - ---> Total time for the simulation: 15.54 seconds\n", - "2024-11-21 11:01:31,261 - INFO - ---> Total time for the simulation: 15.54 seconds\n", - "2024-11-21 11:01:36,692 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 1730\n", - " True 1\n", - " 1.0 0.0 0.0 False 55\n", - " 1.0 1.0 True 1\n", - "New_test 0.0 0.0 0.0 False 46925\n", - " True 16\n", - " 1.0 0.0 0.0 False 2938\n", - " True 1\n", - " 1.0 1.0 False 28\n", - " True 92\n", - "No_scr_no_col 0.0 0.0 0.0 False 287813\n", - " True 107\n", - "2024-11-21 11:01:36,692 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:10:48,595 - INFO - ----------------------\n", + "2024-11-21 16:10:48,595 - INFO - ----------------------\n", + "2024-11-21 16:10:48,596 - INFO - New screening strategy with operational limits\n", + "2024-11-21 16:10:48,596 - INFO - New screening strategy with operational limits\n", + "2024-11-21 16:10:48,597 - INFO - Limited number of tests will be performed.\n", + "2024-11-21 16:10:48,597 - INFO - Limited number of tests will be performed.\n", + "2024-11-21 16:10:59,437 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:10:59,437 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:10:59,456 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,456 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,456 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,456 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,479 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:10:59,479 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:10:59,496 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,496 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,497 - INFO - --> Number of tests performed: 1787 \n", + "\n", + "2024-11-21 16:10:59,497 - INFO - --> Number of tests performed: 1787 \n", + "\n", + "2024-11-21 16:10:59,568 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:10:59,568 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:10:59,586 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,586 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,587 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,587 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,607 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:10:59,607 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:10:59,625 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,625 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,625 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,625 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,646 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:10:59,646 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:10:59,664 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,664 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,664 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,664 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,685 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:10:59,685 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:10:59,703 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,703 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:10:59,704 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,704 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:10:59,758 - INFO - ** Testing strategy: New_test **\n", + "2024-11-21 16:10:59,758 - INFO - ** Testing strategy: New_test **\n", + "2024-11-21 16:10:59,936 - INFO - --> Number of recommended tests: 339707\n", + "2024-11-21 16:10:59,936 - INFO - --> Number of recommended tests: 339707\n", + "2024-11-21 16:10:59,937 - INFO - --> Number of tests performed: 50000 \n", + "\n", + "2024-11-21 16:10:59,937 - INFO - --> Number of tests performed: 50000 \n", + "\n", + "2024-11-21 16:11:01,329 - INFO - Total number of colonoscopies performed: 3119\n", + "2024-11-21 16:11:01,329 - INFO - Total number of colonoscopies performed: 3119\n", + "2024-11-21 16:11:01,628 - INFO - ---> Total cost of the strategy: 3313973.32 €\n", + "2024-11-21 16:11:01,628 - INFO - ---> Total cost of the strategy: 3313973.32 €\n", + "2024-11-21 16:11:01,629 - INFO - ---> Mean cost per screened participant: 63.99 €\n", + "2024-11-21 16:11:01,629 - INFO - ---> Mean cost per screened participant: 63.99 €\n", + "2024-11-21 16:11:01,630 - INFO - ---> Mean cost per individual in the total population: 9.76 €\n", + "2024-11-21 16:11:01,630 - INFO - ---> Mean cost per individual in the total population: 9.76 €\n", + "2024-11-21 16:11:01,631 - INFO - ---> Total time for the simulation: 12.73 seconds\n", + "2024-11-21 16:11:01,631 - INFO - ---> Total time for the simulation: 12.73 seconds\n", + "2024-11-21 16:11:08,625 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 1730\n", + "FIT 0.0 0.0 0.0 False 1720\n", " True 1\n", - " 1.0 0.0 0.0 False 55\n", - " 1.0 1.0 True 1\n", - "New_test 0.0 0.0 0.0 False 46925\n", + " 1.0 0.0 0.0 False 66\n", + "New_test 0.0 0.0 0.0 False 46931\n", " True 16\n", - " 1.0 0.0 0.0 False 2938\n", + " 1.0 0.0 0.0 False 2931\n", " True 1\n", " 1.0 1.0 False 28\n", - " True 92\n", + " True 93\n", "No_scr_no_col 0.0 0.0 0.0 False 287813\n", " True 107\n", - "2024-11-21 11:01:36,692 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:11:08,625 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 1730\n", + "FIT 0.0 0.0 0.0 False 1720\n", " True 1\n", - " 1.0 0.0 0.0 False 55\n", - " 1.0 1.0 True 1\n", - "New_test 0.0 0.0 0.0 False 46925\n", + " 1.0 0.0 0.0 False 66\n", + "New_test 0.0 0.0 0.0 False 46931\n", " True 16\n", - " 1.0 0.0 0.0 False 2938\n", + " 1.0 0.0 0.0 False 2931\n", " True 1\n", " 1.0 1.0 False 28\n", - " True 92\n", + " True 93\n", "No_scr_no_col 0.0 0.0 0.0 False 287813\n", " True 107\n", - "2024-11-21 11:01:36,692 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 1730\n", - " True 1\n", - " 1.0 0.0 0.0 False 55\n", - " 1.0 1.0 True 1\n", - "New_test 0.0 0.0 0.0 False 46925\n", - " True 16\n", - " 1.0 0.0 0.0 False 2938\n", - " True 1\n", - " 1.0 1.0 False 28\n", - " True 92\n", - "No_scr_no_col 0.0 0.0 0.0 False 287813\n", - " True 107\n", - "2024-11-21 11:01:37,446 - INFO - precision recall f1-score support\n", - "Negative 0.999632 0.999918 0.999775 339489.00000\n", - "Positive 0.768595 0.426606 0.548673 218.00000\n", - "accuracy 0.999550 0.999550 0.999550 0.99955\n", - "macro avg 0.884113 0.713262 0.774224 339707.00000\n", - "weighted avg 0.999484 0.999550 0.999485 339707.00000\n", - "sensitivity 0.426606 NaN NaN NaN\n", - "specificity 0.999918 NaN NaN NaN\n", - "2024-11-21 11:01:37,446 - INFO - precision recall f1-score support\n", + "2024-11-21 16:11:09,199 - INFO - precision recall f1-score support\n", "Negative 0.999632 0.999918 0.999775 339489.00000\n", "Positive 0.768595 0.426606 0.548673 218.00000\n", "accuracy 0.999550 0.999550 0.999550 0.99955\n", @@ -2033,7 +1673,7 @@ "weighted avg 0.999484 0.999550 0.999485 339707.00000\n", "sensitivity 0.426606 NaN NaN NaN\n", "specificity 0.999918 NaN NaN NaN\n", - "2024-11-21 11:01:37,446 - INFO - precision recall f1-score support\n", + "2024-11-21 16:11:09,199 - INFO - precision recall f1-score support\n", "Negative 0.999632 0.999918 0.999775 339489.00000\n", "Positive 0.768595 0.426606 0.548673 218.00000\n", "accuracy 0.999550 0.999550 0.999550 0.99955\n", @@ -2041,54 +1681,21 @@ "weighted avg 0.999484 0.999550 0.999485 339707.00000\n", "sensitivity 0.426606 NaN NaN NaN\n", "specificity 0.999918 NaN NaN NaN\n", - "2024-11-21 11:01:37,446 - INFO - precision recall f1-score support\n", - "Negative 0.999632 0.999918 0.999775 339489.00000\n", - "Positive 0.768595 0.426606 0.548673 218.00000\n", - "accuracy 0.999550 0.999550 0.999550 0.99955\n", - "macro avg 0.884113 0.713262 0.774224 339707.00000\n", - "weighted avg 0.999484 0.999550 0.999485 339707.00000\n", - "sensitivity 0.426606 NaN NaN NaN\n", - "specificity 0.999918 NaN NaN NaN\n", - "2024-11-21 11:01:37,463 - INFO - ----------------------\n", - "2024-11-21 11:01:37,463 - INFO - ----------------------\n", - "2024-11-21 11:01:37,463 - INFO - ----------------------\n", - "2024-11-21 11:01:37,463 - INFO - ----------------------\n", - "2024-11-21 11:01:37,465 - INFO - Old screening strategy\n", - "2024-11-21 11:01:37,465 - INFO - Old screening strategy\n", - "2024-11-21 11:01:37,465 - INFO - Old screening strategy\n", - "2024-11-21 11:01:37,465 - INFO - Old screening strategy\n", - "2024-11-21 11:01:38,784 - INFO - Total number of colonoscopies performed: 1774\n", - "2024-11-21 11:01:38,784 - INFO - Total number of colonoscopies performed: 1774\n", - "2024-11-21 11:01:38,784 - INFO - Total number of colonoscopies performed: 1774\n", - "2024-11-21 11:01:38,784 - INFO - Total number of colonoscopies performed: 1774\n", - "2024-11-21 11:01:38,797 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", - "2024-11-21 11:01:38,797 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", - "2024-11-21 11:01:38,797 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", - "2024-11-21 11:01:38,797 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", - "2024-11-21 11:01:38,800 - INFO - ---> Mean cost per screened participant: 50.71 €\n", - "2024-11-21 11:01:38,800 - INFO - ---> Mean cost per screened participant: 50.71 €\n", - "2024-11-21 11:01:38,800 - INFO - ---> Mean cost per screened participant: 50.71 €\n", - "2024-11-21 11:01:38,800 - INFO - ---> Mean cost per screened participant: 50.71 €\n", - "2024-11-21 11:01:38,802 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", - "2024-11-21 11:01:38,802 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", - "2024-11-21 11:01:38,802 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", - "2024-11-21 11:01:38,802 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", - "2024-11-21 11:01:38,804 - INFO - ---> Total time for the simulation: 1.32 seconds\n", - "2024-11-21 11:01:38,804 - INFO - ---> Total time for the simulation: 1.32 seconds\n", - "2024-11-21 11:01:38,804 - INFO - ---> Total time for the simulation: 1.32 seconds\n", - "2024-11-21 11:01:38,804 - INFO - ---> Total time for the simulation: 1.32 seconds\n", - "2024-11-21 11:01:43,714 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0 0 0 False 47277\n", - " True 23\n", - " 1 0 0 False 1671\n", - " True 2\n", - " 1 1 False 19\n", - " True 82\n", - "No_scr_no_col 0 0 0 False 290522\n", - " True 111\n", - "2024-11-21 11:01:43,714 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:11:09,207 - INFO - ----------------------\n", + "2024-11-21 16:11:09,207 - INFO - ----------------------\n", + "2024-11-21 16:11:09,208 - INFO - Old screening strategy\n", + "2024-11-21 16:11:09,208 - INFO - Old screening strategy\n", + "2024-11-21 16:11:10,592 - INFO - Total number of colonoscopies performed: 1774\n", + "2024-11-21 16:11:10,592 - INFO - Total number of colonoscopies performed: 1774\n", + "2024-11-21 16:11:10,605 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", + "2024-11-21 16:11:10,605 - INFO - ---> Total cost of the strategy: 2488725.62 €\n", + "2024-11-21 16:11:10,606 - INFO - ---> Mean cost per screened participant: 50.71 €\n", + "2024-11-21 16:11:10,606 - INFO - ---> Mean cost per screened participant: 50.71 €\n", + "2024-11-21 16:11:10,607 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", + "2024-11-21 16:11:10,607 - INFO - ---> Mean cost per individual in the total population: 7.33 €\n", + "2024-11-21 16:11:10,608 - INFO - ---> Total time for the simulation: 1.38 seconds\n", + "2024-11-21 16:11:10,608 - INFO - ---> Total time for the simulation: 1.38 seconds\n", + "2024-11-21 16:11:16,811 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", "FIT 0 0 0 False 47277\n", @@ -2099,7 +1706,7 @@ " True 82\n", "No_scr_no_col 0 0 0 False 290522\n", " True 111\n", - "2024-11-21 11:01:43,714 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:11:16,811 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", "FIT 0 0 0 False 47277\n", @@ -2110,18 +1717,7 @@ " True 82\n", "No_scr_no_col 0 0 0 False 290522\n", " True 111\n", - "2024-11-21 11:01:43,714 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0 0 0 False 47277\n", - " True 23\n", - " 1 0 0 False 1671\n", - " True 2\n", - " 1 1 False 19\n", - " True 82\n", - "No_scr_no_col 0 0 0 False 290522\n", - " True 111\n", - "2024-11-21 11:01:44,403 - INFO - precision recall f1-score support\n", + "2024-11-21 16:11:17,362 - INFO - precision recall f1-score support\n", "Negative 0.999600 0.999944 0.999772 339489.000000\n", "Positive 0.811881 0.376147 0.514107 218.000000\n", "accuracy 0.999544 0.999544 0.999544 0.999544\n", @@ -2129,7 +1725,7 @@ "weighted avg 0.999479 0.999544 0.999460 339707.000000\n", "sensitivity 0.376147 NaN NaN NaN\n", "specificity 0.999944 NaN NaN NaN\n", - "2024-11-21 11:01:44,403 - INFO - precision recall f1-score support\n", + "2024-11-21 16:11:17,362 - INFO - precision recall f1-score support\n", "Negative 0.999600 0.999944 0.999772 339489.000000\n", "Positive 0.811881 0.376147 0.514107 218.000000\n", "accuracy 0.999544 0.999544 0.999544 0.999544\n", @@ -2137,237 +1733,113 @@ "weighted avg 0.999479 0.999544 0.999460 339707.000000\n", "sensitivity 0.376147 NaN NaN NaN\n", "specificity 0.999944 NaN NaN NaN\n", - "2024-11-21 11:01:44,403 - INFO - precision recall f1-score support\n", - "Negative 0.999600 0.999944 0.999772 339489.000000\n", - "Positive 0.811881 0.376147 0.514107 218.000000\n", - "accuracy 0.999544 0.999544 0.999544 0.999544\n", - "macro avg 0.905740 0.688045 0.756939 339707.000000\n", - "weighted avg 0.999479 0.999544 0.999460 339707.000000\n", - "sensitivity 0.376147 NaN NaN NaN\n", - "specificity 0.999944 NaN NaN NaN\n", - "2024-11-21 11:01:44,403 - INFO - precision recall f1-score support\n", - "Negative 0.999600 0.999944 0.999772 339489.000000\n", - "Positive 0.811881 0.376147 0.514107 218.000000\n", - "accuracy 0.999544 0.999544 0.999544 0.999544\n", - "macro avg 0.905740 0.688045 0.756939 339707.000000\n", - "weighted avg 0.999479 0.999544 0.999460 339707.000000\n", - "sensitivity 0.376147 NaN NaN NaN\n", - "specificity 0.999944 NaN NaN NaN\n", - "2024-11-21 11:01:44,416 - INFO - Comparison of the strategies\n", - "2024-11-21 11:01:44,416 - INFO - Comparison of the strategies\n", - "2024-11-21 11:01:44,416 - INFO - Comparison of the strategies\n", - "2024-11-21 11:01:44,416 - INFO - Comparison of the strategies\n", - "2024-11-21 11:01:44,418 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:44,418 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:44,418 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:44,418 - INFO - Limited number of tests will be performed.\n", - "2024-11-21 11:01:44,970 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:44,970 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:44,970 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:44,970 - INFO - ** Testing strategy: gFOBT **\n", - "2024-11-21 11:01:44,986 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:44,986 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:44,986 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:44,986 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:44,990 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:44,990 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:44,990 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:44,990 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:45,040 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:45,040 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:45,040 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:45,040 - INFO - ** Testing strategy: FIT **\n", - "2024-11-21 11:01:45,059 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:45,059 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:45,059 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:45,059 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:45,062 - INFO - --> Number of tests performed: 49074 \n", - "\n", - "2024-11-21 11:01:45,062 - INFO - --> Number of tests performed: 49074 \n", - "\n", - "2024-11-21 11:01:45,062 - INFO - --> Number of tests performed: 49074 \n", - "\n", - "2024-11-21 11:01:45,062 - INFO - --> Number of tests performed: 49074 \n", - "\n", - "2024-11-21 11:01:46,293 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:46,293 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:46,293 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:46,293 - INFO - ** Testing strategy: Blood_based **\n", - "2024-11-21 11:01:46,309 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,309 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,309 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,309 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,313 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,313 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,313 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,313 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,333 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:46,333 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:46,333 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:46,333 - INFO - ** Testing strategy: Stool_DNA **\n", - "2024-11-21 11:01:46,354 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,354 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,354 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,354 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,356 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,356 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,356 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,356 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,376 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:46,376 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:46,376 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:46,376 - INFO - ** Testing strategy: CTC **\n", - "2024-11-21 11:01:46,395 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,395 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,395 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,395 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,397 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,397 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,397 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,397 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,420 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:46,420 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:46,420 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:46,420 - INFO - ** Testing strategy: Colon_capsule **\n", - "2024-11-21 11:01:46,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,437 - INFO - --> Number of recommended tests: 0\n", - "2024-11-21 11:01:46,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,439 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,459 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:46,459 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:46,459 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:46,459 - INFO - ** Testing strategy: New_test **\n", - "2024-11-21 11:01:46,586 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:46,586 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:46,586 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:46,586 - INFO - --> Number of recommended tests: 339707\n", - "2024-11-21 11:01:46,589 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,589 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,589 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,589 - INFO - --> Number of tests performed: 0 \n", - "\n", - "2024-11-21 11:01:46,614 - INFO - Total number of colonoscopies performed: 1750\n", - "2024-11-21 11:01:46,614 - INFO - Total number of colonoscopies performed: 1750\n", - "2024-11-21 11:01:46,614 - INFO - Total number of colonoscopies performed: 1750\n", - "2024-11-21 11:01:46,614 - INFO - Total number of colonoscopies performed: 1750\n", - "2024-11-21 11:01:46,640 - INFO - ---> Total cost of the strategy: 2464576.74 €\n", - "2024-11-21 11:01:46,640 - INFO - ---> Total cost of the strategy: 2464576.74 €\n", - "2024-11-21 11:01:46,640 - INFO - ---> Total cost of the strategy: 2464576.74 €\n", - "2024-11-21 11:01:46,640 - INFO - ---> Total cost of the strategy: 2464576.74 €\n", - "2024-11-21 11:01:46,643 - INFO - ---> Mean cost per screened participant: 67.45 €\n", - "2024-11-21 11:01:46,643 - INFO - ---> Mean cost per screened participant: 67.45 €\n", - "2024-11-21 11:01:46,643 - INFO - ---> Mean cost per screened participant: 67.45 €\n", - "2024-11-21 11:01:46,643 - INFO - ---> Mean cost per screened participant: 67.45 €\n", - "2024-11-21 11:01:46,645 - INFO - ---> Mean cost per individual in the total population: 7.26 €\n", - "2024-11-21 11:01:46,645 - INFO - ---> Mean cost per individual in the total population: 7.26 €\n", - "2024-11-21 11:01:46,645 - INFO - ---> Mean cost per individual in the total population: 7.26 €\n", - "2024-11-21 11:01:46,645 - INFO - ---> Mean cost per individual in the total population: 7.26 €\n", - "2024-11-21 11:01:46,647 - INFO - ---> Total time for the simulation: 2.20 seconds\n", - "2024-11-21 11:01:46,647 - INFO - ---> Total time for the simulation: 2.20 seconds\n", - "2024-11-21 11:01:46,647 - INFO - ---> Total time for the simulation: 2.20 seconds\n", - "2024-11-21 11:01:46,647 - INFO - ---> Total time for the simulation: 2.20 seconds\n", - "2024-11-21 11:01:51,914 - INFO - ---> Distribution of positive predictions: \n", + "2024-11-21 16:11:17,371 - INFO - Comparison of the strategies\n", + "2024-11-21 16:11:17,371 - INFO - Comparison of the strategies\n", + "2024-11-21 16:11:17,372 - INFO - Limited number of tests will be performed.\n", + "2024-11-21 16:11:17,372 - INFO - Limited number of tests will be performed.\n", + "2024-11-21 16:11:17,983 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:11:17,983 - INFO - ** Testing strategy: gFOBT **\n", + "2024-11-21 16:11:18,001 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:18,001 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:18,002 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:18,002 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:18,057 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:11:18,057 - INFO - ** Testing strategy: FIT **\n", + "2024-11-21 16:11:18,076 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:18,076 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:18,077 - INFO - --> Number of tests performed: 49074 \n", + "\n", + "2024-11-21 16:11:18,077 - INFO - --> Number of tests performed: 49074 \n", + "\n", + "2024-11-21 16:11:19,406 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:11:19,406 - INFO - ** Testing strategy: Blood_based **\n", + "2024-11-21 16:11:19,424 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,424 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,425 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,425 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,445 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:11:19,445 - INFO - ** Testing strategy: Stool_DNA **\n", + "2024-11-21 16:11:19,463 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,463 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,464 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,464 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,484 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:11:19,484 - INFO - ** Testing strategy: CTC **\n", + "2024-11-21 16:11:19,502 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,502 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,502 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,502 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,523 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:11:19,523 - INFO - ** Testing strategy: Colon_capsule **\n", + "2024-11-21 16:11:19,541 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,541 - INFO - --> Number of recommended tests: 0\n", + "2024-11-21 16:11:19,542 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,542 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,562 - INFO - ** Testing strategy: New_test **\n", + "2024-11-21 16:11:19,562 - INFO - ** Testing strategy: New_test **\n", + "2024-11-21 16:11:19,749 - INFO - --> Number of recommended tests: 339707\n", + "2024-11-21 16:11:19,749 - INFO - --> Number of recommended tests: 339707\n", + "2024-11-21 16:11:19,750 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,750 - INFO - --> Number of tests performed: 0 \n", + "\n", + "2024-11-21 16:11:19,775 - INFO - Total number of colonoscopies performed: 1755\n", + "2024-11-21 16:11:19,775 - INFO - Total number of colonoscopies performed: 1755\n", + "2024-11-21 16:11:19,793 - INFO - ---> Total cost of the strategy: 2469607.75 €\n", + "2024-11-21 16:11:19,793 - INFO - ---> Total cost of the strategy: 2469607.75 €\n", + "2024-11-21 16:11:19,794 - INFO - ---> Mean cost per screened participant: 67.53 €\n", + "2024-11-21 16:11:19,794 - INFO - ---> Mean cost per screened participant: 67.53 €\n", + "2024-11-21 16:11:19,795 - INFO - ---> Mean cost per individual in the total population: 7.27 €\n", + "2024-11-21 16:11:19,795 - INFO - ---> Mean cost per individual in the total population: 7.27 €\n", + "2024-11-21 16:11:19,796 - INFO - ---> Total time for the simulation: 2.40 seconds\n", + "2024-11-21 16:11:19,796 - INFO - ---> Total time for the simulation: 2.40 seconds\n", + "2024-11-21 16:11:26,748 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 47296\n", + "FIT 0.0 0.0 0.0 False 47291\n", " True 28\n", - " 1.0 0.0 0.0 False 1649\n", + " 1.0 0.0 0.0 False 1653\n", " True 1\n", " 1.0 1.0 False 21\n", - " True 79\n", - "No_scr_no_col 0.0 0.0 0.0 False 290523\n", - " True 110\n", - "2024-11-21 11:01:51,914 - INFO - ---> Distribution of positive predictions: \n", + " True 80\n", + "No_scr_no_col 0.0 0.0 0.0 False 290524\n", + " True 109\n", + "2024-11-21 16:11:26,748 - INFO - ---> Distribution of positive predictions: \n", " CRC\n", "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 47296\n", + "FIT 0.0 0.0 0.0 False 47291\n", " True 28\n", - " 1.0 0.0 0.0 False 1649\n", + " 1.0 0.0 0.0 False 1653\n", " True 1\n", " 1.0 1.0 False 21\n", - " True 79\n", - "No_scr_no_col 0.0 0.0 0.0 False 290523\n", - " True 110\n", - "2024-11-21 11:01:51,914 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 47296\n", - " True 28\n", - " 1.0 0.0 0.0 False 1649\n", - " True 1\n", - " 1.0 1.0 False 21\n", - " True 79\n", - "No_scr_no_col 0.0 0.0 0.0 False 290523\n", - " True 110\n", - "2024-11-21 11:01:51,914 - INFO - ---> Distribution of positive predictions: \n", - " CRC\n", - "best_option_w_lim Prediction_screening Prediction_colonoscopy Final_decision CRC \n", - "FIT 0.0 0.0 0.0 False 47296\n", - " True 28\n", - " 1.0 0.0 0.0 False 1649\n", - " True 1\n", - " 1.0 1.0 False 21\n", - " True 79\n", - "No_scr_no_col 0.0 0.0 0.0 False 290523\n", - " True 110\n", - "2024-11-21 11:01:52,673 - INFO - precision recall f1-score support\n", - "Negative 0.999591 0.999938 0.999764 339489.000000\n", - "Positive 0.790000 0.362385 0.496855 218.000000\n", - "accuracy 0.999529 0.999529 0.999529 0.999529\n", - "macro avg 0.894795 0.681162 0.748310 339707.000000\n", - "weighted avg 0.999456 0.999529 0.999442 339707.000000\n", - "sensitivity 0.362385 NaN NaN NaN\n", - "specificity 0.999938 NaN NaN NaN\n", - "2024-11-21 11:01:52,673 - INFO - precision recall f1-score support\n", - "Negative 0.999591 0.999938 0.999764 339489.000000\n", - "Positive 0.790000 0.362385 0.496855 218.000000\n", - "accuracy 0.999529 0.999529 0.999529 0.999529\n", - "macro avg 0.894795 0.681162 0.748310 339707.000000\n", - "weighted avg 0.999456 0.999529 0.999442 339707.000000\n", - "sensitivity 0.362385 NaN NaN NaN\n", + " True 80\n", + "No_scr_no_col 0.0 0.0 0.0 False 290524\n", + " True 109\n", + "2024-11-21 16:11:27,325 - INFO - precision recall f1-score support\n", + "Negative 0.999594 0.999938 0.999766 339489.000000\n", + "Positive 0.792079 0.366972 0.501567 218.000000\n", + "accuracy 0.999532 0.999532 0.999532 0.999532\n", + "macro avg 0.895836 0.683455 0.750667 339707.000000\n", + "weighted avg 0.999460 0.999532 0.999446 339707.000000\n", + "sensitivity 0.366972 NaN NaN NaN\n", "specificity 0.999938 NaN NaN NaN\n", - "2024-11-21 11:01:52,673 - INFO - precision recall f1-score support\n", - "Negative 0.999591 0.999938 0.999764 339489.000000\n", - "Positive 0.790000 0.362385 0.496855 218.000000\n", - "accuracy 0.999529 0.999529 0.999529 0.999529\n", - "macro avg 0.894795 0.681162 0.748310 339707.000000\n", - "weighted avg 0.999456 0.999529 0.999442 339707.000000\n", - "sensitivity 0.362385 NaN NaN NaN\n", - "specificity 0.999938 NaN NaN NaN\n", - "2024-11-21 11:01:52,673 - INFO - precision recall f1-score support\n", - "Negative 0.999591 0.999938 0.999764 339489.000000\n", - "Positive 0.790000 0.362385 0.496855 218.000000\n", - "accuracy 0.999529 0.999529 0.999529 0.999529\n", - "macro avg 0.894795 0.681162 0.748310 339707.000000\n", - "weighted avg 0.999456 0.999529 0.999442 339707.000000\n", - "sensitivity 0.362385 NaN NaN NaN\n", + "2024-11-21 16:11:27,325 - INFO - precision recall f1-score support\n", + "Negative 0.999594 0.999938 0.999766 339489.000000\n", + "Positive 0.792079 0.366972 0.501567 218.000000\n", + "accuracy 0.999532 0.999532 0.999532 0.999532\n", + "macro avg 0.895836 0.683455 0.750667 339707.000000\n", + "weighted avg 0.999460 0.999532 0.999446 339707.000000\n", + "sensitivity 0.366972 NaN NaN NaN\n", "specificity 0.999938 NaN NaN NaN\n" ] } @@ -2401,59 +1873,59 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 17, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 13:30:35,094 - INFO - PE_info_array: [3.8 4. 4.2]\n", - "2024-11-20 13:30:35,094 - INFO - PE_info_array: [3.8 4. 4.2]\n", - "2024-11-20 13:30:35,096 - INFO - PE_cost_array: [ 5 10 50]\n", - "2024-11-20 13:30:35,096 - INFO - PE_cost_array: [ 5 10 50]\n" + "2024-11-21 16:11:27,357 - INFO - PE_info_array: [3.8 4. 4.2]\n", + "2024-11-21 16:11:27,357 - INFO - PE_info_array: [3.8 4. 4.2]\n", + "2024-11-21 16:11:27,358 - INFO - PE_cost_array: [ 5 10 50]\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 13:30:38,737 - INFO - Params: [1.0105405558122231, 0.8618081053948691, 0.04071571451462677]\n", - "2024-11-20 13:30:38,737 - INFO - Params: [1.0105405558122231, 0.8618081053948691, 0.04071571451462677]\n", - "2024-11-20 13:31:38,305 - INFO - PE_info: 3.8, PE_cost: 5, DONE!\n", - "2024-11-20 13:31:38,305 - INFO - PE_info: 3.8, PE_cost: 5, DONE!\n", - "2024-11-20 13:31:39,096 - INFO - Params: [1.0170169520480368, 0.8677488153052746, 0.040592639410855884]\n", - "2024-11-20 13:31:39,096 - INFO - Params: [1.0170169520480368, 0.8677488153052746, 0.040592639410855884]\n", - "2024-11-20 13:32:37,544 - INFO - PE_info: 3.8, PE_cost: 10, DONE!\n", - "2024-11-20 13:32:37,544 - INFO - PE_info: 3.8, PE_cost: 10, DONE!\n", - "2024-11-20 13:32:38,164 - INFO - Params: [1.0151957194469061, 0.8624584291169836, 0.04169819311246861]\n", - "2024-11-20 13:32:38,164 - INFO - Params: [1.0151957194469061, 0.8624584291169836, 0.04169819311246861]\n", - "2024-11-20 13:33:37,272 - INFO - PE_info: 3.8, PE_cost: 50, DONE!\n", - "2024-11-20 13:33:37,272 - INFO - PE_info: 3.8, PE_cost: 50, DONE!\n", - "2024-11-20 13:33:37,974 - INFO - Params: [1.022067459821693, 0.8807280032514646, 0.03806265341941766]\n", - "2024-11-20 13:33:37,974 - INFO - Params: [1.022067459821693, 0.8807280032514646, 0.03806265341941766]\n", - "2024-11-20 13:34:36,603 - INFO - PE_info: 4.0, PE_cost: 5, DONE!\n", - "2024-11-20 13:34:36,603 - INFO - PE_info: 4.0, PE_cost: 5, DONE!\n", - "2024-11-20 13:34:37,343 - INFO - Params: [1.021187024801558, 0.8786095088223509, 0.038458151584832]\n", - "2024-11-20 13:34:37,343 - INFO - Params: [1.021187024801558, 0.8786095088223509, 0.038458151584832]\n", - "2024-11-20 13:35:37,141 - INFO - PE_info: 4.0, PE_cost: 10, DONE!\n", - "2024-11-20 13:35:37,141 - INFO - PE_info: 4.0, PE_cost: 10, DONE!\n", - "2024-11-20 13:35:37,965 - INFO - Params: [1.0190670467347074, 0.8732762847895542, 0.039483772499104994]\n", - "2024-11-20 13:35:37,965 - INFO - Params: [1.0190670467347074, 0.8732762847895542, 0.039483772499104994]\n", - "2024-11-20 13:36:36,896 - INFO - PE_info: 4.0, PE_cost: 50, DONE!\n", - "2024-11-20 13:36:36,896 - INFO - PE_info: 4.0, PE_cost: 50, DONE!\n", - "2024-11-20 13:36:37,791 - INFO - Params: [1.027023396538065, 0.8918162430716965, 0.03610009917073344]\n", - "2024-11-20 13:36:37,791 - INFO - Params: [1.027023396538065, 0.8918162430716965, 0.03610009917073344]\n", - "2024-11-20 13:37:36,974 - INFO - PE_info: 4.2, PE_cost: 5, DONE!\n", - "2024-11-20 13:37:36,974 - INFO - PE_info: 4.2, PE_cost: 5, DONE!\n", - "2024-11-20 13:37:37,868 - INFO - Params: [1.0260096777692866, 0.889649200484113, 0.036469730286183666]\n", - "2024-11-20 13:37:37,868 - INFO - Params: [1.0260096777692866, 0.889649200484113, 0.036469730286183666]\n", - "2024-11-20 13:38:37,679 - INFO - PE_info: 4.2, PE_cost: 10, DONE!\n", - "2024-11-20 13:38:37,679 - INFO - PE_info: 4.2, PE_cost: 10, DONE!\n", - "2024-11-20 13:38:38,710 - INFO - Params: [1.0235627479785547, 0.8842131758314179, 0.037426526353288136]\n", - "2024-11-20 13:38:38,710 - INFO - Params: [1.0235627479785547, 0.8842131758314179, 0.037426526353288136]\n", - "2024-11-20 13:39:38,035 - INFO - PE_info: 4.2, PE_cost: 50, DONE!\n", - "2024-11-20 13:39:38,035 - INFO - PE_info: 4.2, PE_cost: 50, DONE!\n" + "2024-11-21 16:11:27,358 - INFO - PE_cost_array: [ 5 10 50]\n", + "2024-11-21 16:11:31,642 - INFO - Params: [1.010540555812223, 0.8618081053948691, 0.040715714514626765]\n", + "2024-11-21 16:11:31,642 - INFO - Params: [1.010540555812223, 0.8618081053948691, 0.040715714514626765]\n", + "2024-11-21 16:12:37,441 - INFO - PE_info: 3.8, PE_cost: 5, DONE!\n", + "2024-11-21 16:12:37,441 - INFO - PE_info: 3.8, PE_cost: 5, DONE!\n", + "2024-11-21 16:12:38,201 - INFO - Params: [1.0170169518491206, 0.8677488181646118, 0.04059263956915226]\n", + "2024-11-21 16:12:38,201 - INFO - Params: [1.0170169518491206, 0.8677488181646118, 0.04059263956915226]\n", + "2024-11-21 16:13:42,116 - INFO - PE_info: 3.8, PE_cost: 10, DONE!\n", + "2024-11-21 16:13:42,116 - INFO - PE_info: 3.8, PE_cost: 10, DONE!\n", + "2024-11-21 16:13:42,888 - INFO - Params: [1.0151957192545649, 0.8624584320399733, 0.04169819327814257]\n", + "2024-11-21 16:13:42,888 - INFO - Params: [1.0151957192545649, 0.8624584320399733, 0.04169819327814257]\n", + "2024-11-21 16:14:47,718 - INFO - PE_info: 3.8, PE_cost: 50, DONE!\n", + "2024-11-21 16:14:47,718 - INFO - PE_info: 3.8, PE_cost: 50, DONE!\n", + "2024-11-21 16:14:48,538 - INFO - Params: [1.0220674595814392, 0.8807280059463244, 0.03806265356341365]\n", + "2024-11-21 16:14:48,538 - INFO - Params: [1.0220674595814392, 0.8807280059463244, 0.03806265356341365]\n", + "2024-11-21 16:15:52,162 - INFO - PE_info: 4.0, PE_cost: 5, DONE!\n", + "2024-11-21 16:15:52,162 - INFO - PE_info: 4.0, PE_cost: 5, DONE!\n", + "2024-11-21 16:15:53,096 - INFO - Params: [1.021187024567059, 0.878609511543006, 0.038458151731073996]\n", + "2024-11-21 16:15:53,096 - INFO - Params: [1.021187024567059, 0.878609511543006, 0.038458151731073996]\n", + "2024-11-21 16:16:56,305 - INFO - PE_info: 4.0, PE_cost: 10, DONE!\n", + "2024-11-21 16:16:56,305 - INFO - PE_info: 4.0, PE_cost: 10, DONE!\n", + "2024-11-21 16:16:57,340 - INFO - Params: [1.0190670465144778, 0.8732762875759646, 0.03948377265129826]\n", + "2024-11-21 16:16:57,340 - INFO - Params: [1.0190670465144778, 0.8732762875759646, 0.03948377265129826]\n", + "2024-11-21 16:18:01,806 - INFO - PE_info: 4.0, PE_cost: 50, DONE!\n", + "2024-11-21 16:18:01,806 - INFO - PE_info: 4.0, PE_cost: 50, DONE!\n", + "2024-11-21 16:18:02,834 - INFO - Params: [1.0270233962669635, 0.8918162456347871, 0.03610009930398227]\n", + "2024-11-21 16:18:02,834 - INFO - Params: [1.0270233962669635, 0.8918162456347871, 0.03610009930398227]\n", + "2024-11-21 16:19:06,259 - INFO - PE_info: 4.2, PE_cost: 5, DONE!\n", + "2024-11-21 16:19:06,259 - INFO - PE_info: 4.2, PE_cost: 5, DONE!\n", + "2024-11-21 16:19:07,446 - INFO - Params: [1.0260096775043042, 0.8896492030725135, 0.03646973042140636]\n", + "2024-11-21 16:19:07,446 - INFO - Params: [1.0260096775043042, 0.8896492030725135, 0.03646973042140636]\n", + "2024-11-21 16:20:11,440 - INFO - PE_info: 4.2, PE_cost: 10, DONE!\n", + "2024-11-21 16:20:11,440 - INFO - PE_info: 4.2, PE_cost: 10, DONE!\n", + "2024-11-21 16:20:12,612 - INFO - Params: [1.0235627477287326, 0.8842131784842631, 0.03742652649372831]\n", + "2024-11-21 16:20:12,612 - INFO - Params: [1.0235627477287326, 0.8842131784842631, 0.03742652649372831]\n", + "2024-11-21 16:21:15,916 - INFO - PE_info: 4.2, PE_cost: 50, DONE!\n", + "2024-11-21 16:21:15,916 - INFO - PE_info: 4.2, PE_cost: 50, DONE!\n" ] } ], @@ -2477,257 +1949,253 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 18, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 13:39:39,037 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:39:39,037 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:39:39,037 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:39:39,037 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:39:39,039 - INFO - Single run: True\n", - "2024-11-20 13:39:39,039 - INFO - Single run: True\n", - "2024-11-20 13:39:39,039 - INFO - Single run: True\n", - "2024-11-20 13:39:39,039 - INFO - Single run: True\n", - "2024-11-20 13:39:39,040 - INFO - Use all variables: True\n", - "2024-11-20 13:39:39,040 - INFO - Use all variables: True\n", - "2024-11-20 13:39:39,040 - INFO - Use all variables: True\n", - "2024-11-20 13:39:39,040 - INFO - Use all variables: True\n", - "2024-11-20 13:39:39,042 - INFO - Use case with new test: False\n", - "2024-11-20 13:39:39,042 - INFO - Use case with new test: False\n", - "2024-11-20 13:39:39,042 - INFO - Use case with new test: False\n", - "2024-11-20 13:39:39,042 - INFO - Use case with new test: False\n", - "2024-11-20 13:39:39,043 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:39:39,043 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:39:39,043 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:39:39,043 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:39:39,044 - INFO - Change lambdas? True\n", - "2024-11-20 13:39:39,044 - INFO - Change lambdas? True\n", - "2024-11-20 13:39:39,044 - INFO - Change lambdas? True\n", - "2024-11-20 13:39:39,044 - INFO - Change lambdas? True\n", - "2024-11-20 13:39:39,046 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:39:39,046 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:39:39,046 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:39:39,046 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:39:39,047 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", - "2024-11-20 13:39:39,047 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", - "2024-11-20 13:39:39,047 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", - "2024-11-20 13:39:39,047 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", - "2024-11-20 13:39:39,049 - INFO - Model type: linear\n", - "2024-11-20 13:39:39,049 - INFO - Model type: linear\n", - "2024-11-20 13:39:39,049 - INFO - Model type: linear\n", - "2024-11-20 13:39:39,049 - INFO - Model type: linear\n", - "2024-11-20 13:39:39,050 - INFO - Reading network...\n", - "2024-11-20 13:39:39,050 - INFO - Reading network...\n", - "2024-11-20 13:39:39,050 - INFO - Reading network...\n", - "2024-11-20 13:39:39,050 - INFO - Reading network...\n", - "2024-11-20 13:39:39,067 - INFO - Calculating information values...\n", - "2024-11-20 13:39:39,067 - INFO - Calculating information values...\n", - "2024-11-20 13:39:39,067 - INFO - Calculating information values...\n", - "2024-11-20 13:39:39,067 - INFO - Calculating information values...\n", - "2024-11-20 13:40:30,141 - INFO - Saving network...\n", - "2024-11-20 13:40:30,141 - INFO - Saving network...\n", - "2024-11-20 13:40:30,141 - INFO - Saving network...\n", - "2024-11-20 13:40:30,141 - INFO - Saving network...\n", - "2024-11-20 13:40:30,174 - INFO - Plotting info functions...\n", - "2024-11-20 13:40:30,174 - INFO - Plotting info functions...\n", - "2024-11-20 13:40:30,174 - INFO - Plotting info functions...\n", - "2024-11-20 13:40:30,174 - INFO - Plotting info functions...\n", - "2024-11-20 13:41:02,477 - INFO - Calculating final utilities...\n", - "2024-11-20 13:41:02,477 - INFO - Calculating final utilities...\n", - "2024-11-20 13:41:02,477 - INFO - Calculating final utilities...\n", - "2024-11-20 13:41:02,477 - INFO - Calculating final utilities...\n", - "2024-11-20 13:41:02,485 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:41:02,485 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:41:02,485 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:41:02,485 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:41:02,487 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:41:02,487 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:41:02,487 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:41:02,487 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:41:02,488 - INFO - PE info: 4\n", - "2024-11-20 13:41:02,488 - INFO - PE info: 4\n", - "2024-11-20 13:41:02,488 - INFO - PE info: 4\n", - "2024-11-20 13:41:02,488 - INFO - PE info: 4\n", - "2024-11-20 13:41:02,490 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 13:41:02,490 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 13:41:02,490 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 13:41:02,490 - INFO - v_best: 104.06788025218766\n", - "2024-11-20 13:41:02,491 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:41:02,491 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:41:02,491 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:41:02,491 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:41:02,493 - INFO - v_PE: 26.166545386734303\n", - "2024-11-20 13:41:02,493 - INFO - v_PE: 26.166545386734303\n", - "2024-11-20 13:41:02,493 - INFO - v_PE: 26.166545386734303\n", - "2024-11-20 13:41:02,493 - INFO - v_PE: 26.166545386734303\n", - "2024-11-20 13:41:02,495 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:41:02,495 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:41:02,495 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:41:02,495 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:41:02,533 - INFO - Parameters found: [1.0152433509042216, 0.8720386208427602, 0.038885103659118084]\n", - "2024-11-20 13:41:02,533 - INFO - Parameters found: [1.0152433509042216, 0.8720386208427602, 0.038885103659118084]\n", - "2024-11-20 13:41:02,533 - INFO - Parameters found: [1.0152433509042216, 0.8720386208427602, 0.038885103659118084]\n", - "2024-11-20 13:41:02,533 - INFO - Parameters found: [1.0152433509042216, 0.8720386208427602, 0.038885103659118084]\n", - "2024-11-20 13:41:02,565 - INFO - Done!\n", - "2024-11-20 13:41:02,565 - INFO - Done!\n", - "2024-11-20 13:41:02,565 - INFO - Done!\n", - "2024-11-20 13:41:02,565 - INFO - Done!\n", - "2024-11-20 13:41:02,567 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:41:02,567 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:41:02,567 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:41:02,567 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:41:02,584 - INFO - \n", + "2024-11-21 16:21:17,144 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:21:17,144 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:21:17,144 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:21:17,144 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:21:17,146 - INFO - Single run: True\n", + "2024-11-21 16:21:17,146 - INFO - Single run: True\n", + "2024-11-21 16:21:17,146 - INFO - Single run: True\n", + "2024-11-21 16:21:17,146 - INFO - Single run: True\n", + "2024-11-21 16:21:17,147 - INFO - Use all variables: True\n", + "2024-11-21 16:21:17,147 - INFO - Use all variables: True\n", + "2024-11-21 16:21:17,147 - INFO - Use all variables: True\n", + "2024-11-21 16:21:17,147 - INFO - Use all variables: True\n", + "2024-11-21 16:21:17,149 - INFO - Use case with new test: False\n", + "2024-11-21 16:21:17,149 - INFO - Use case with new test: False\n", + "2024-11-21 16:21:17,149 - INFO - Use case with new test: False\n", + "2024-11-21 16:21:17,149 - INFO - Use case with new test: False\n", + "2024-11-21 16:21:17,151 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:21:17,151 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:21:17,151 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:21:17,151 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:21:17,153 - INFO - Change lambdas? True\n", + "2024-11-21 16:21:17,153 - INFO - Change lambdas? True\n", + "2024-11-21 16:21:17,153 - INFO - Change lambdas? True\n", + "2024-11-21 16:21:17,153 - INFO - Change lambdas? True\n", + "2024-11-21 16:21:17,155 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:21:17,155 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:21:17,155 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:21:17,155 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:21:17,157 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:21:17,157 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:21:17,157 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:21:17,157 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:21:17,159 - INFO - Model type: linear\n", + "2024-11-21 16:21:17,159 - INFO - Model type: linear\n", + "2024-11-21 16:21:17,159 - INFO - Model type: linear\n", + "2024-11-21 16:21:17,159 - INFO - Model type: linear\n", + "2024-11-21 16:21:17,161 - INFO - Reading network...\n", + "2024-11-21 16:21:17,161 - INFO - Reading network...\n", + "2024-11-21 16:21:17,161 - INFO - Reading network...\n", + "2024-11-21 16:21:17,161 - INFO - Reading network...\n", + "2024-11-21 16:21:17,180 - INFO - Calculating information values...\n", + "2024-11-21 16:21:17,180 - INFO - Calculating information values...\n", + "2024-11-21 16:21:17,180 - INFO - Calculating information values...\n", + "2024-11-21 16:21:17,180 - INFO - Calculating information values...\n", + "2024-11-21 16:22:09,615 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:22:09,615 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:22:09,615 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:22:09,615 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.801984517973132, 7.0]\n", + "2024-11-21 16:22:09,617 - INFO - Saving network...\n", + "2024-11-21 16:22:09,617 - INFO - Saving network...\n", + "2024-11-21 16:22:09,617 - INFO - Saving network...\n", + "2024-11-21 16:22:09,617 - INFO - Saving network...\n", + "2024-11-21 16:22:09,665 - INFO - Plotting info functions...\n", + "2024-11-21 16:22:09,665 - INFO - Plotting info functions...\n", + "2024-11-21 16:22:09,665 - INFO - Plotting info functions...\n", + "2024-11-21 16:22:09,665 - INFO - Plotting info functions...\n", + "2024-11-21 16:22:44,923 - INFO - Calculating final utilities...\n", + "2024-11-21 16:22:44,923 - INFO - Calculating final utilities...\n", + "2024-11-21 16:22:44,923 - INFO - Calculating final utilities...\n", + "2024-11-21 16:22:44,923 - INFO - Calculating final utilities...\n", + "2024-11-21 16:22:44,931 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:22:44,931 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:22:44,931 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:22:44,931 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:22:44,933 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:22:44,933 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:22:44,933 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:22:44,933 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:22:44,935 - INFO - PE info: 4\n", + "2024-11-21 16:22:44,935 - INFO - PE info: 4\n", + "2024-11-21 16:22:44,935 - INFO - PE info: 4\n", + "2024-11-21 16:22:44,935 - INFO - PE info: 4\n", + "2024-11-21 16:22:44,937 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:22:44,937 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:22:44,937 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:22:44,937 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:22:44,939 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:22:44,939 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:22:44,939 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:22:44,939 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:22:44,940 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:22:44,940 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:22:44,940 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:22:44,940 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:22:44,942 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:22:44,942 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:22:44,942 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:22:44,942 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:22:45,010 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:22:45,010 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:22:45,010 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:22:45,010 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:22:45,057 - INFO - Done!\n", + "2024-11-21 16:22:45,057 - INFO - Done!\n", + "2024-11-21 16:22:45,057 - INFO - Done!\n", + "2024-11-21 16:22:45,057 - INFO - Done!\n", + "2024-11-21 16:22:45,058 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:22:45,058 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:22:45,058 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:22:45,058 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:22:45,076 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.143205 0.112972 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.141984 0.111991 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.107818 0.081768 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.106879 0.081044 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.081333 0.060006 0.214013 0.540242 \n", + "U ... 0.080613 0.059469 0.212272 0.537007 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.057559 0.050814 0.310418 \n", + "U 4.450148e-308 4.450148e-308 0.057042 0.050357 0.308068 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.698383 \n", + "U 0.695161 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:41:02,584 - INFO - \n", + "2024-11-21 16:22:45,076 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.143205 0.112972 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.141984 0.111991 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.107818 0.081768 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.106879 0.081044 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.081333 0.060006 0.214013 0.540242 \n", + "U ... 0.080613 0.059469 0.212272 0.537007 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.057559 0.050814 0.310418 \n", + "U 4.450148e-308 4.450148e-308 0.057042 0.050357 0.308068 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.698383 \n", + "U 0.695161 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:41:02,584 - INFO - \n", + "2024-11-21 16:22:45,076 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.143205 0.112972 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.141984 0.111991 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.107818 0.081768 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.106879 0.081044 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.081333 0.060006 0.214013 0.540242 \n", + "U ... 0.080613 0.059469 0.212272 0.537007 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.057559 0.050814 0.310418 \n", + "U 4.450148e-308 4.450148e-308 0.057042 0.050357 0.308068 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.698383 \n", + "U 0.695161 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:41:02,584 - INFO - \n", + "2024-11-21 16:22:45,076 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.143205 0.112972 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.141984 0.111991 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.107818 0.081768 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.106879 0.081044 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.081333 0.060006 0.214013 0.540242 \n", + "U ... 0.080613 0.059469 0.212272 0.537007 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.057559 0.050814 0.310418 \n", + "U 4.450148e-308 4.450148e-308 0.057042 0.050357 0.308068 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.698383 \n", + "U 0.695161 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:41:02,586 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:41:02,586 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:41:02,586 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:41:02,586 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:41:02,596 - INFO - \n", + "2024-11-21 16:22:45,077 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:22:45,077 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:22:45,077 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:22:45,077 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:22:45,088 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.143205 0.125839 0.141949 0.119126 0.139287 0.132083 \n", + "Screening 0.141984 0.124881 0.140945 0.118212 0.138242 0.131085 \n", "\n", " Colon_capsule \n", - "Screening 0.109256 \n", - "2024-11-20 13:41:02,596 - INFO - \n", + "Screening 0.108522 \n", + "2024-11-21 16:22:45,088 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.143205 0.125839 0.141949 0.119126 0.139287 0.132083 \n", + "Screening 0.141984 0.124881 0.140945 0.118212 0.138242 0.131085 \n", "\n", " Colon_capsule \n", - "Screening 0.109256 \n", - "2024-11-20 13:41:02,596 - INFO - \n", + "Screening 0.108522 \n", + "2024-11-21 16:22:45,088 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.143205 0.125839 0.141949 0.119126 0.139287 0.132083 \n", + "Screening 0.141984 0.124881 0.140945 0.118212 0.138242 0.131085 \n", "\n", " Colon_capsule \n", - "Screening 0.109256 \n", - "2024-11-20 13:41:02,596 - INFO - \n", + "Screening 0.108522 \n", + "2024-11-21 16:22:45,088 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.143205 0.125839 0.141949 0.119126 0.139287 0.132083 \n", + "Screening 0.141984 0.124881 0.140945 0.118212 0.138242 0.131085 \n", "\n", " Colon_capsule \n", - "Screening 0.109256 \n", - "2024-11-20 13:41:02,599 - INFO - Reading the network file...\n", - "2024-11-20 13:41:02,599 - INFO - Reading the network file...\n", - "2024-11-20 13:41:02,599 - INFO - Reading the network file...\n", - "2024-11-20 13:41:02,629 - INFO - Located at: notebook/notebook_sens_analysis_comf_param\\_run/decision_models/DM_screening_rel_point_cond_mut_info_linear.xdsl\n", - "2024-11-20 13:41:02,629 - INFO - Located at: notebook/notebook_sens_analysis_comf_param\\_run/decision_models/DM_screening_rel_point_cond_mut_info_linear.xdsl\n", - "2024-11-20 13:41:02,629 - INFO - Located at: notebook/notebook_sens_analysis_comf_param\\_run/decision_models/DM_screening_rel_point_cond_mut_info_linear.xdsl\n", - "2024-11-20 13:41:02,630 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-20 13:41:02,630 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-20 13:41:02,630 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", - "2024-11-20 13:41:03,169 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", - "2024-11-20 13:41:03,169 - INFO - All variables are kept in the dataframe for calculation of utilities.\n", - "2024-11-20 13:41:03,169 - INFO - All variables are kept in the dataframe for calculation of utilities.\n" + "Screening 0.108522 \n", + "2024-11-21 16:22:45,091 - INFO - Reading the network file...\n", + "2024-11-21 16:22:45,107 - INFO - Located at: notebook/notebook_sens_analysis_comf_param/_run/decision_models/DM_screening_rel_point_cond_mut_info_linear.xdsl\n", + "2024-11-21 16:22:45,108 - INFO - Comfort values: 1 - 4.011942483017116, 2 - 4.168480067521723, 3 - 6.801984517973132, 4 - 7.0\n", + "2024-11-21 16:22:45,738 - INFO - All variables are kept in the dataframe for calculation of utilities.\n" ] }, { @@ -2735,12 +2203,12 @@ "output_type": "stream", "text": [ "Counts: best_option\n", - "No_scr_no_col 288682\n", + "No_scr_no_col 287920\n", "No_scr_col 0\n", "gFOBT 0\n", - "FIT 3201\n", + "FIT 4131\n", "Blood_based 0\n", - "Stool_DNA 47824\n", + "Stool_DNA 47656\n", "CTC 0\n", "Colon_capsule 0\n", "Name: count, dtype: int64\n" @@ -2759,187 +2227,131 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 13:42:02,647 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:42:02,647 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:42:02,647 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:42:02,649 - INFO - Single run: True\n", - "2024-11-20 13:42:02,649 - INFO - Single run: True\n", - "2024-11-20 13:42:02,649 - INFO - Single run: True\n", - "2024-11-20 13:42:02,650 - INFO - Use all variables: True\n", - "2024-11-20 13:42:02,650 - INFO - Use all variables: True\n", - "2024-11-20 13:42:02,650 - INFO - Use all variables: True\n", - "2024-11-20 13:42:02,651 - INFO - Use case with new test: False\n", - "2024-11-20 13:42:02,651 - INFO - Use case with new test: False\n", - "2024-11-20 13:42:02,651 - INFO - Use case with new test: False\n", - "2024-11-20 13:42:02,652 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:42:02,652 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:42:02,652 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:42:02,653 - INFO - Change lambdas? True\n", - "2024-11-20 13:42:02,653 - INFO - Change lambdas? True\n", - "2024-11-20 13:42:02,653 - INFO - Change lambdas? True\n", - "2024-11-20 13:42:02,655 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:42:02,655 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:42:02,655 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:42:02,656 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.3, 7.0]\n", - "2024-11-20 13:42:02,656 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.3, 7.0]\n", - "2024-11-20 13:42:02,656 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.3, 7.0]\n", - "2024-11-20 13:42:02,657 - INFO - Model type: linear\n", - "2024-11-20 13:42:02,657 - INFO - Model type: linear\n", - "2024-11-20 13:42:02,657 - INFO - Model type: linear\n", - "2024-11-20 13:42:02,658 - INFO - Reading network...\n", - "2024-11-20 13:42:02,658 - INFO - Reading network...\n", - "2024-11-20 13:42:02,658 - INFO - Reading network...\n", - "2024-11-20 13:42:02,674 - INFO - Calculating information values...\n", - "2024-11-20 13:42:02,674 - INFO - Calculating information values...\n", - "2024-11-20 13:42:02,674 - INFO - Calculating information values...\n", - "2024-11-20 13:42:54,328 - INFO - Saving network...\n", - "2024-11-20 13:42:54,328 - INFO - Saving network...\n", - "2024-11-20 13:42:54,328 - INFO - Saving network...\n", - "2024-11-20 13:42:54,361 - INFO - Plotting info functions...\n", - "2024-11-20 13:42:54,361 - INFO - Plotting info functions...\n", - "2024-11-20 13:42:54,361 - INFO - Plotting info functions...\n", - "2024-11-20 13:43:26,993 - INFO - Calculating final utilities...\n", - "2024-11-20 13:43:26,993 - INFO - Calculating final utilities...\n", - "2024-11-20 13:43:26,993 - INFO - Calculating final utilities...\n", - "2024-11-20 13:43:27,000 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:43:27,000 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:43:27,000 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:43:27,001 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:43:27,001 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:43:27,001 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:43:27,003 - INFO - PE info: 4\n", - "2024-11-20 13:43:27,003 - INFO - PE info: 4\n", - "2024-11-20 13:43:27,003 - INFO - PE info: 4\n", - "2024-11-20 13:43:27,004 - INFO - v_best: 96.38770036250352\n", - "2024-11-20 13:43:27,004 - INFO - v_best: 96.38770036250352\n", - "2024-11-20 13:43:27,004 - INFO - v_best: 96.38770036250352\n", - "2024-11-20 13:43:27,005 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:43:27,005 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:43:27,005 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:43:27,007 - INFO - v_PE: 24.158607314841774\n", - "2024-11-20 13:43:27,007 - INFO - v_PE: 24.158607314841774\n", - "2024-11-20 13:43:27,007 - INFO - v_PE: 24.158607314841774\n", - "2024-11-20 13:43:27,008 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:43:27,008 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:43:27,008 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:43:27,097 - INFO - Parameters found: [1.015593775293377, 0.8629946044441914, 0.04163951011287006]\n", - "2024-11-20 13:43:27,097 - INFO - Parameters found: [1.015593775293377, 0.8629946044441914, 0.04163951011287006]\n", - "2024-11-20 13:43:27,097 - INFO - Parameters found: [1.015593775293377, 0.8629946044441914, 0.04163951011287006]\n", - "2024-11-20 13:43:27,131 - INFO - Done!\n", - "2024-11-20 13:43:27,131 - INFO - Done!\n", - "2024-11-20 13:43:27,131 - INFO - Done!\n", - "2024-11-20 13:43:27,133 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:43:27,133 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:43:27,133 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:43:27,149 - INFO - \n", + "2024-11-21 16:23:52,384 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:23:52,384 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:23:52,385 - INFO - Single run: True\n", + "2024-11-21 16:23:52,385 - INFO - Single run: True\n", + "2024-11-21 16:23:52,387 - INFO - Use all variables: True\n", + "2024-11-21 16:23:52,387 - INFO - Use all variables: True\n", + "2024-11-21 16:23:52,388 - INFO - Use case with new test: False\n", + "2024-11-21 16:23:52,388 - INFO - Use case with new test: False\n", + "2024-11-21 16:23:52,389 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:23:52,389 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:23:52,390 - INFO - Change lambdas? True\n", + "2024-11-21 16:23:52,390 - INFO - Change lambdas? True\n", + "2024-11-21 16:23:52,391 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:23:52,391 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:23:52,392 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.3, 7.0]\n", + "2024-11-21 16:23:52,392 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.3, 7.0]\n", + "2024-11-21 16:23:52,393 - INFO - Model type: linear\n", + "2024-11-21 16:23:52,393 - INFO - Model type: linear\n", + "2024-11-21 16:23:52,394 - INFO - Reading network...\n", + "2024-11-21 16:23:52,394 - INFO - Reading network...\n", + "2024-11-21 16:23:52,413 - INFO - Calculating information values...\n", + "2024-11-21 16:23:52,413 - INFO - Calculating information values...\n", + "2024-11-21 16:24:45,836 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.3, 7.0]\n", + "2024-11-21 16:24:45,836 - INFO - Lambdas: [4.011942483017116, 4.168480067521723, 6.3, 7.0]\n", + "2024-11-21 16:24:45,838 - INFO - Saving network...\n", + "2024-11-21 16:24:45,838 - INFO - Saving network...\n", + "2024-11-21 16:24:45,885 - INFO - Plotting info functions...\n", + "2024-11-21 16:24:45,885 - INFO - Plotting info functions...\n", + "2024-11-21 16:25:20,710 - INFO - Calculating final utilities...\n", + "2024-11-21 16:25:20,710 - INFO - Calculating final utilities...\n", + "2024-11-21 16:25:20,717 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:25:20,717 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:25:20,719 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:25:20,719 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:25:20,719 - INFO - PE info: 4\n", + "2024-11-21 16:25:20,719 - INFO - PE info: 4\n", + "2024-11-21 16:25:20,721 - INFO - v_best: 96.38770036250352\n", + "2024-11-21 16:25:20,721 - INFO - v_best: 96.38770036250352\n", + "2024-11-21 16:25:20,722 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:25:20,722 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:25:20,723 - INFO - v_PE: 24.421848749616355\n", + "2024-11-21 16:25:20,723 - INFO - v_PE: 24.421848749616355\n", + "2024-11-21 16:25:20,724 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:25:20,724 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:25:20,749 - INFO - Parameters found: [1.0163124965222063, 0.8650999063666169, 0.04119730538370732]\n", + "2024-11-21 16:25:20,749 - INFO - Parameters found: [1.0163124965222063, 0.8650999063666169, 0.04119730538370732]\n", + "2024-11-21 16:25:20,795 - INFO - Done!\n", + "2024-11-21 16:25:20,795 - INFO - Done!\n", + "2024-11-21 16:25:20,797 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:25:20,797 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:25:20,814 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.152599 0.120522 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.151213 0.119404 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.114781 0.087334 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.113713 0.086508 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.086871 0.064142 0.227416 0.565319 \n", + "U ... 0.086049 0.063528 0.22545 0.56181 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.061531 0.054334 0.328518 \n", + "U 4.450148e-308 4.450148e-308 0.060941 0.053811 0.325891 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.723719 \n", + "U 0.720337 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:43:27,149 - INFO - \n", + "2024-11-21 16:25:20,814 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.152599 0.120522 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.151213 0.119404 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.114781 0.087334 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.113713 0.086508 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.086871 0.064142 0.227416 0.565319 \n", + "U ... 0.086049 0.063528 0.22545 0.56181 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.061531 0.054334 0.328518 \n", + "U 4.450148e-308 4.450148e-308 0.060941 0.053811 0.325891 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.723719 \n", + "U 0.720337 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:43:27,149 - INFO - \n", - " No_screening \\\n", - " No_pred_screening Predicted_False Predicted_True \n", - " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.152599 0.120522 4.450148e-308 4.450148e-308 4.450148e-308 \n", - "\n", - " gFOBT \\\n", - " No_pred_screening Predicted_False \n", - " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.114781 0.087334 \n", - "\n", - " ... CTC \\\n", - " ... Predicted_False Predicted_True \n", - " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.086871 0.064142 0.227416 0.565319 \n", - "\n", - " Colon_capsule \\\n", - " No_pred_screening Predicted_False Predicted_True \n", - " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.061531 0.054334 0.328518 \n", - "\n", - " \n", - " \n", - " Colonoscopy \n", - "U 0.723719 \n", - "\n", - "[1 rows x 42 columns]\n", - "2024-11-20 13:43:27,150 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:43:27,150 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:43:27,150 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:43:27,160 - INFO - \n", + "2024-11-21 16:25:20,815 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:25:20,815 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:25:20,825 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.152599 0.132995 0.148887 0.125609 0.145901 0.139781 \n", + "Screening 0.151213 0.131915 0.147763 0.124587 0.144744 0.138663 \n", "\n", " Colon_capsule \n", - "Screening 0.114952 \n", - "2024-11-20 13:43:27,160 - INFO - \n", + "Screening 0.114137 \n", + "2024-11-21 16:25:20,825 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.152599 0.132995 0.148887 0.125609 0.145901 0.139781 \n", + "Screening 0.151213 0.131915 0.147763 0.124587 0.144744 0.138663 \n", "\n", " Colon_capsule \n", - "Screening 0.114952 \n", - "2024-11-20 13:43:27,160 - INFO - \n", - " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.152599 0.132995 0.148887 0.125609 0.145901 0.139781 \n", - "\n", - " Colon_capsule \n", - "Screening 0.114952 \n" + "Screening 0.114137 \n" ] }, { @@ -2947,12 +2359,12 @@ "output_type": "stream", "text": [ "Counts: best_option\n", - "No_scr_no_col 313960\n", + "No_scr_no_col 313631\n", "No_scr_col 0\n", "gFOBT 0\n", "FIT 0\n", "Blood_based 0\n", - "Stool_DNA 25747\n", + "Stool_DNA 26076\n", "CTC 0\n", "Colon_capsule 0\n", "Name: count, dtype: int64\n" @@ -2975,129 +2387,131 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 20, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "2024-11-20 13:44:27,562 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:44:27,562 - INFO - Configuration variables of interest:\n", - "2024-11-20 13:44:27,564 - INFO - Single run: True\n", - "2024-11-20 13:44:27,564 - INFO - Single run: True\n", - "2024-11-20 13:44:27,565 - INFO - Use all variables: True\n", - "2024-11-20 13:44:27,565 - INFO - Use all variables: True\n", - "2024-11-20 13:44:27,566 - INFO - Use case with new test: False\n", - "2024-11-20 13:44:27,566 - INFO - Use case with new test: False\n", - "2024-11-20 13:44:27,567 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:44:27,567 - INFO - PE method: {'PE_cost': 10, 'PE_info': 4, 'PE_prob': 0.7}\n", - "2024-11-20 13:44:27,568 - INFO - Change lambdas? True\n", - "2024-11-20 13:44:27,568 - INFO - Change lambdas? True\n", - "2024-11-20 13:44:27,569 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:44:27,569 - INFO - Read lambda list from config? True\n", - "2024-11-20 13:44:27,570 - INFO - Lambdas: [4.8, 5, 6.3, 7.0]\n", - "2024-11-20 13:44:27,570 - INFO - Lambdas: [4.8, 5, 6.3, 7.0]\n", - "2024-11-20 13:44:27,572 - INFO - Model type: linear\n", - "2024-11-20 13:44:27,572 - INFO - Model type: linear\n", - "2024-11-20 13:44:27,573 - INFO - Reading network...\n", - "2024-11-20 13:44:27,573 - INFO - Reading network...\n", - "2024-11-20 13:44:27,587 - INFO - Calculating information values...\n", - "2024-11-20 13:44:27,587 - INFO - Calculating information values...\n", - "2024-11-20 13:45:19,994 - INFO - Saving network...\n", - "2024-11-20 13:45:19,994 - INFO - Saving network...\n", - "2024-11-20 13:45:20,032 - INFO - Plotting info functions...\n", - "2024-11-20 13:45:20,032 - INFO - Plotting info functions...\n", - "2024-11-20 13:45:54,684 - INFO - Calculating final utilities...\n", - "2024-11-20 13:45:54,684 - INFO - Calculating final utilities...\n", - "2024-11-20 13:45:54,691 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:45:54,691 - INFO - Best info: 15.299634978175163\n", - "2024-11-20 13:45:54,693 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:45:54,693 - INFO - Worst info: 4.450147717014403e-308\n", - "2024-11-20 13:45:54,693 - INFO - PE info: 4\n", - "2024-11-20 13:45:54,693 - INFO - PE info: 4\n", - "2024-11-20 13:45:54,694 - INFO - v_best: 96.38770036250352\n", - "2024-11-20 13:45:54,694 - INFO - v_best: 96.38770036250352\n", - "2024-11-20 13:45:54,695 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:45:54,695 - INFO - v_worst: -3.910235286299258\n", - "2024-11-20 13:45:54,696 - INFO - v_PE: 24.158607314841774\n", - "2024-11-20 13:45:54,696 - INFO - v_PE: 24.158607314841774\n", - "2024-11-20 13:45:54,697 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:45:54,697 - INFO - Searching for a solution of the system of equations...\n", - "2024-11-20 13:45:54,719 - INFO - Parameters found: [1.015593775293377, 0.8629946044441914, 0.04163951011287006]\n", - "2024-11-20 13:45:54,719 - INFO - Parameters found: [1.015593775293377, 0.8629946044441914, 0.04163951011287006]\n", - "2024-11-20 13:45:54,752 - INFO - Done!\n", - "2024-11-20 13:45:54,752 - INFO - Done!\n", - "2024-11-20 13:45:54,753 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:45:54,753 - INFO - Calculating utilities for patient X...\n", - "2024-11-20 13:45:54,768 - INFO - \n", + "2024-11-21 16:26:25,592 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:26:25,592 - INFO - Configuration variables of interest:\n", + "2024-11-21 16:26:25,593 - INFO - Single run: True\n", + "2024-11-21 16:26:25,593 - INFO - Single run: True\n", + "2024-11-21 16:26:25,594 - INFO - Use all variables: True\n", + "2024-11-21 16:26:25,594 - INFO - Use all variables: True\n", + "2024-11-21 16:26:25,595 - INFO - Use case with new test: False\n", + "2024-11-21 16:26:25,595 - INFO - Use case with new test: False\n", + "2024-11-21 16:26:25,596 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:26:25,596 - INFO - PE method: {'PE_cost': 5, 'PE_info': 4, 'PE_prob': 0.7}\n", + "2024-11-21 16:26:25,597 - INFO - Change lambdas? True\n", + "2024-11-21 16:26:25,597 - INFO - Change lambdas? True\n", + "2024-11-21 16:26:25,598 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:26:25,598 - INFO - Read lambda list from config? True\n", + "2024-11-21 16:26:25,599 - INFO - Lambdas: [4.8, 5, 6.801984517973132, 7.0]\n", + "2024-11-21 16:26:25,599 - INFO - Lambdas: [4.8, 5, 6.801984517973132, 7.0]\n", + "2024-11-21 16:26:25,600 - INFO - Model type: linear\n", + "2024-11-21 16:26:25,600 - INFO - Model type: linear\n", + "2024-11-21 16:26:25,601 - INFO - Reading network...\n", + "2024-11-21 16:26:25,601 - INFO - Reading network...\n", + "2024-11-21 16:26:25,620 - INFO - Calculating information values...\n", + "2024-11-21 16:26:25,620 - INFO - Calculating information values...\n", + "2024-11-21 16:27:18,278 - INFO - Lambdas: [4.8, 5, 6.801984517973132, 7.0]\n", + "2024-11-21 16:27:18,278 - INFO - Lambdas: [4.8, 5, 6.801984517973132, 7.0]\n", + "2024-11-21 16:27:18,280 - INFO - Saving network...\n", + "2024-11-21 16:27:18,280 - INFO - Saving network...\n", + "2024-11-21 16:27:18,327 - INFO - Plotting info functions...\n", + "2024-11-21 16:27:18,327 - INFO - Plotting info functions...\n", + "2024-11-21 16:27:53,186 - INFO - Calculating final utilities...\n", + "2024-11-21 16:27:53,186 - INFO - Calculating final utilities...\n", + "2024-11-21 16:27:53,193 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:27:53,193 - INFO - Best info: 15.299634978175163\n", + "2024-11-21 16:27:53,194 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:27:53,194 - INFO - Worst info: 4.450147717014403e-308\n", + "2024-11-21 16:27:53,195 - INFO - PE info: 4\n", + "2024-11-21 16:27:53,195 - INFO - PE info: 4\n", + "2024-11-21 16:27:53,197 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:27:53,197 - INFO - v_best: 104.06788025218766\n", + "2024-11-21 16:27:53,197 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:27:53,197 - INFO - v_worst: -3.910235286299258\n", + "2024-11-21 16:27:53,199 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:27:53,199 - INFO - v_PE: 26.429786821508884\n", + "2024-11-21 16:27:53,200 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:27:53,200 - INFO - Searching for a solution of the system of equations...\n", + "2024-11-21 16:27:53,236 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:27:53,236 - INFO - Parameters found: [1.015900094187489, 0.8739162095221031, 0.03850044277147057]\n", + "2024-11-21 16:27:53,282 - INFO - Done!\n", + "2024-11-21 16:27:53,282 - INFO - Done!\n", + "2024-11-21 16:27:53,284 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:27:53,284 - INFO - Calculating utilities for patient X...\n", + "2024-11-21 16:27:53,300 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.152599 0.135956 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.141984 0.126412 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.114781 0.096832 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.106879 0.089893 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.088615 0.069569 0.254229 0.629074 \n", + "U ... 0.082238 0.064514 0.237583 0.600055 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.063903 0.058974 0.373669 \n", + "U 4.450148e-308 4.450148e-308 0.059247 0.054666 0.351186 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.785759 \n", + "U 0.758745 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:45:54,768 - INFO - \n", + "2024-11-21 16:27:53,300 - INFO - \n", " No_screening \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 0.152599 0.135956 4.450148e-308 4.450148e-308 4.450148e-308 \n", + "U 0.141984 0.126412 4.450148e-308 4.450148e-308 4.450148e-308 \n", "\n", " gFOBT \\\n", " No_pred_screening Predicted_False \n", " Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 4.450148e-308 0.114781 0.096832 \n", + "U 4.450148e-308 4.450148e-308 4.450148e-308 0.106879 0.089893 \n", "\n", " ... CTC \\\n", " ... Predicted_False Predicted_True \n", " ... No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy \n", - "U ... 0.088615 0.069569 0.254229 0.629074 \n", + "U ... 0.082238 0.064514 0.237583 0.600055 \n", "\n", " Colon_capsule \\\n", " No_pred_screening Predicted_False Predicted_True \n", " No_Colonoscopy Colonoscopy No_Colonoscopy Colonoscopy No_Colonoscopy \n", - "U 4.450148e-308 4.450148e-308 0.063903 0.058974 0.373669 \n", + "U 4.450148e-308 4.450148e-308 0.059247 0.054666 0.351186 \n", "\n", " \n", " \n", " Colonoscopy \n", - "U 0.785759 \n", + "U 0.758745 \n", "\n", "[1 rows x 42 columns]\n", - "2024-11-20 13:45:54,769 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:45:54,769 - INFO - Calculating best screening strategy for patient X...\n", - "2024-11-20 13:45:54,780 - INFO - \n", + "2024-11-21 16:27:53,301 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:27:53,301 - INFO - Calculating best screening strategy for patient X...\n", + "2024-11-21 16:27:53,311 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.152599 0.133728 0.149871 0.131388 0.154415 0.148383 \n", + "Screening 0.141984 0.125711 0.142077 0.123931 0.146629 0.139502 \n", "\n", " Colon_capsule \n", - "Screening 0.122138 \n", - "2024-11-20 13:45:54,780 - INFO - \n", + "Screening 0.115678 \n", + "2024-11-21 16:27:53,311 - INFO - \n", " No_screening gFOBT FIT Blood_based Stool_DNA CTC \\\n", - "Screening 0.152599 0.133728 0.149871 0.131388 0.154415 0.148383 \n", + "Screening 0.141984 0.125711 0.142077 0.123931 0.146629 0.139502 \n", "\n", " Colon_capsule \n", - "Screening 0.122138 \n" + "Screening 0.115678 \n" ] }, { @@ -3105,12 +2519,12 @@ "output_type": "stream", "text": [ "Counts: best_option\n", - "No_scr_no_col 209634\n", + "No_scr_no_col 179713\n", "No_scr_col 0\n", "gFOBT 0\n", "FIT 0\n", "Blood_based 0\n", - "Stool_DNA 130073\n", + "Stool_DNA 159994\n", "CTC 0\n", "Colon_capsule 0\n", "Name: count, dtype: int64\n" @@ -3135,7 +2549,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "screening", "language": "python", "name": "python3" }, @@ -3149,7 +2563,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.13.0" } }, "nbformat": 4,