diff --git a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-01-Utility-Foundations.ipynb b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-01-Utility-Foundations.ipynb index 447af8bcde..3356cdbf3a 100644 --- a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-01-Utility-Foundations.ipynb +++ b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-01-Utility-Foundations.ipynb @@ -5,10 +5,10 @@ "id": "cc50bb51", "metadata": { "papermill": { - "duration": 0.004001, - "end_time": "2026-06-22T19:19:09.405605", + "duration": 0.023169, + "end_time": "2026-09-23T07:15:18.043181", "exception": false, - "start_time": "2026-06-22T19:19:09.401604", + "start_time": "2026-09-23T07:15:18.020012", "status": "completed" }, "tags": [] @@ -44,10 +44,10 @@ "id": "e6af883c", "metadata": { "papermill": { - "duration": 0.003, - "end_time": "2026-06-22T19:19:09.412605", + "duration": 0.017051, + "end_time": "2026-09-23T07:15:18.077362", "exception": false, - "start_time": "2026-06-22T19:19:09.409605", + "start_time": "2026-09-23T07:15:18.060311", "status": "completed" }, "tags": [] @@ -87,10 +87,10 @@ "id": "1e9aeed6", "metadata": { "papermill": { - "duration": 0.003, - "end_time": "2026-06-22T19:19:09.419605", + "duration": 0.004712, + "end_time": "2026-09-23T07:15:18.110019", "exception": false, - "start_time": "2026-06-22T19:19:09.416605", + "start_time": "2026-09-23T07:15:18.105307", "status": "completed" }, "tags": [] @@ -130,10 +130,10 @@ "id": "758221d8", "metadata": { "papermill": { - "duration": 0.003003, - "end_time": "2026-06-22T19:19:09.426606", + "duration": 0.009218, + "end_time": "2026-09-23T07:15:18.132385", "exception": false, - "start_time": "2026-06-22T19:19:09.423603", + "start_time": "2026-09-23T07:15:18.123167", "status": "completed" }, "tags": [] @@ -153,16 +153,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:09.440603Z", - "iopub.status.busy": "2026-06-22T19:19:09.437604Z", - "iopub.status.idle": "2026-06-22T19:19:12.008422Z", - "shell.execute_reply": "2026-06-22T19:19:12.006431Z" + "iopub.execute_input": "2026-09-23T07:15:18.154550Z", + "iopub.status.busy": "2026-09-23T07:15:18.151126Z", + "iopub.status.idle": "2026-09-23T07:15:22.161722Z", + "shell.execute_reply": "2026-09-23T07:15:22.157752Z" }, "papermill": { - "duration": 2.578817, - "end_time": "2026-06-22T19:19:12.009422", + "duration": 4.020453, + "end_time": "2026-09-23T07:15:22.161722", "exception": false, - "start_time": "2026-06-22T19:19:09.430605", + "start_time": "2026-09-23T07:15:18.141269", "status": "completed" }, "tags": [], @@ -171,6 +171,121 @@ } }, "outputs": [ + { + "data": { + "text/html": [ + "\r\n", + "
\r\n", + " \r\n", + " \r\n", + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, { "data": { "text/html": [ @@ -206,10 +321,10 @@ "id": "cda519cf", "metadata": { "papermill": { - "duration": 0.006, - "end_time": "2026-06-22T19:19:12.022422", + "duration": 0.005317, + "end_time": "2026-09-23T07:15:22.173966", "exception": false, - "start_time": "2026-06-22T19:19:12.016422", + "start_time": "2026-09-23T07:15:22.168649", "status": "completed" }, "tags": [] @@ -224,19 +339,19 @@ "id": "878ff30c", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:12.038569Z", - "iopub.status.busy": "2026-06-22T19:19:12.038569Z", - "iopub.status.idle": "2026-06-22T19:19:12.649443Z", - "shell.execute_reply": "2026-06-22T19:19:12.648932Z" + "iopub.execute_input": "2026-09-23T07:15:22.188460Z", + "iopub.status.busy": "2026-09-23T07:15:22.188460Z", + "iopub.status.idle": "2026-09-23T07:15:22.924286Z", + "shell.execute_reply": "2026-09-23T07:15:22.924286Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.619239, - "end_time": "2026-06-22T19:19:12.649443", + "duration": 0.744829, + "end_time": "2026-09-23T07:15:22.924286", "exception": false, - "start_time": "2026-06-22T19:19:12.030204", + "start_time": "2026-09-23T07:15:22.179457", "status": "completed" }, "polyglot_notebook": { @@ -276,10 +391,10 @@ "id": "14ebe53a", "metadata": { "papermill": { - "duration": 0.00631, - "end_time": "2026-06-22T19:19:12.662451", + "duration": 0.007521, + "end_time": "2026-09-23T07:15:22.938882", "exception": false, - "start_time": "2026-06-22T19:19:12.656141", + "start_time": "2026-09-23T07:15:22.931361", "status": "completed" }, "tags": [] @@ -303,16 +418,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:12.678027Z", - "iopub.status.busy": "2026-06-22T19:19:12.678027Z", - "iopub.status.idle": "2026-06-22T19:19:12.888369Z", - "shell.execute_reply": "2026-06-22T19:19:12.888369Z" + "iopub.execute_input": "2026-09-23T07:15:22.954840Z", + "iopub.status.busy": "2026-09-23T07:15:22.954264Z", + "iopub.status.idle": "2026-09-23T07:15:23.154410Z", + "shell.execute_reply": "2026-09-23T07:15:23.154410Z" }, "papermill": { - "duration": 0.218347, - "end_time": "2026-06-22T19:19:12.888369", + "duration": 0.208148, + "end_time": "2026-09-23T07:15:23.154410", "exception": false, - "start_time": "2026-06-22T19:19:12.670022", + "start_time": "2026-09-23T07:15:22.946262", "status": "completed" }, "tags": [], @@ -370,10 +485,10 @@ "id": "ee0e1ac2", "metadata": { "papermill": { - "duration": 0.006715, - "end_time": "2026-06-22T19:19:12.902665", + "duration": 0.00607, + "end_time": "2026-09-23T07:15:23.166495", "exception": false, - "start_time": "2026-06-22T19:19:12.895950", + "start_time": "2026-09-23T07:15:23.160425", "status": "completed" }, "tags": [] @@ -433,10 +548,10 @@ "id": "7b2b1e5d", "metadata": { "papermill": { - "duration": 0.007008, - "end_time": "2026-06-22T19:19:12.917673", + "duration": 0.00554, + "end_time": "2026-09-23T07:15:23.177851", "exception": false, - "start_time": "2026-06-22T19:19:12.910665", + "start_time": "2026-09-23T07:15:23.172311", "status": "completed" }, "tags": [] @@ -456,16 +571,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:12.940948Z", - "iopub.status.busy": "2026-06-22T19:19:12.940948Z", - "iopub.status.idle": "2026-06-22T19:19:13.075657Z", - "shell.execute_reply": "2026-06-22T19:19:13.075657Z" + "iopub.execute_input": "2026-09-23T07:15:23.191785Z", + "iopub.status.busy": "2026-09-23T07:15:23.191785Z", + "iopub.status.idle": "2026-09-23T07:15:23.274992Z", + "shell.execute_reply": "2026-09-23T07:15:23.274430Z" }, "papermill": { - "duration": 0.147984, - "end_time": "2026-06-22T19:19:13.075657", + "duration": 0.09158, + "end_time": "2026-09-23T07:15:23.274992", "exception": false, - "start_time": "2026-06-22T19:19:12.927673", + "start_time": "2026-09-23T07:15:23.183412", "status": "completed" }, "tags": [], @@ -559,10 +674,10 @@ "id": "0c8b57e6", "metadata": { "papermill": { - "duration": 0.008008, - "end_time": "2026-06-22T19:19:13.092668", + "duration": 0.009968, + "end_time": "2026-09-23T07:15:23.293165", "exception": false, - "start_time": "2026-06-22T19:19:13.084660", + "start_time": "2026-09-23T07:15:23.283197", "status": "completed" }, "tags": [] @@ -594,16 +709,16 @@ "id": "5a1fd559", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:13.110925Z", - "iopub.status.busy": "2026-06-22T19:19:13.110925Z", - "iopub.status.idle": "2026-06-22T19:19:13.153024Z", - "shell.execute_reply": "2026-06-22T19:19:13.153024Z" + "iopub.execute_input": "2026-09-23T07:15:23.313183Z", + "iopub.status.busy": "2026-09-23T07:15:23.312675Z", + "iopub.status.idle": "2026-09-23T07:15:23.361185Z", + "shell.execute_reply": "2026-09-23T07:15:23.361185Z" }, "papermill": { - "duration": 0.051828, - "end_time": "2026-06-22T19:19:13.153024", + "duration": 0.060442, + "end_time": "2026-09-23T07:15:23.361815", "exception": false, - "start_time": "2026-06-22T19:19:13.101196", + "start_time": "2026-09-23T07:15:23.301373", "status": "completed" }, "tags": [] @@ -645,10 +760,10 @@ "id": "79e8dc58", "metadata": { "papermill": { - "duration": 0.007993, - "end_time": "2026-06-22T19:19:13.168017", + "duration": 0.008802, + "end_time": "2026-09-23T07:15:23.376802", "exception": false, - "start_time": "2026-06-22T19:19:13.160024", + "start_time": "2026-09-23T07:15:23.368000", "status": "completed" }, "tags": [] @@ -678,10 +793,10 @@ "id": "05b1962d", "metadata": { "papermill": { - "duration": 0.008004, - "end_time": "2026-06-22T19:19:13.183028", + "duration": 0.007561, + "end_time": "2026-09-23T07:15:23.393371", "exception": false, - "start_time": "2026-06-22T19:19:13.175024", + "start_time": "2026-09-23T07:15:23.385810", "status": "completed" }, "tags": [] @@ -732,7 +847,16 @@ { "cell_type": "markdown", "id": "infer1-mermaid-pipeline", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006336, + "end_time": "2026-09-23T07:15:23.405749", + "exception": false, + "start_time": "2026-09-23T07:15:23.399413", + "status": "completed" + }, + "tags": [] + }, "source": [ "Le même **pipeline décisionnel**, rendu sous forme de graphe : les cinq étapes\n", "s'enchaînent de la perception du monde jusqu'à l'action, l'inférence bayésienne (Infer.NET)\n", @@ -775,16 +899,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:13.199555Z", - "iopub.status.busy": "2026-06-22T19:19:13.199555Z", - "iopub.status.idle": "2026-06-22T19:19:14.756223Z", - "shell.execute_reply": "2026-06-22T19:19:14.756223Z" + "iopub.execute_input": "2026-09-23T07:15:23.420749Z", + "iopub.status.busy": "2026-09-23T07:15:23.420749Z", + "iopub.status.idle": "2026-09-23T07:15:25.125430Z", + "shell.execute_reply": "2026-09-23T07:15:25.124918Z" }, "papermill": { - "duration": 1.565193, - "end_time": "2026-06-22T19:19:14.756223", + "duration": 1.712345, + "end_time": "2026-09-23T07:15:25.125430", "exception": false, - "start_time": "2026-06-22T19:19:13.191030", + "start_time": "2026-09-23T07:15:23.413085", "status": "completed" }, "tags": [], @@ -794,22 +918,22 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ - "Compiling model...\r\n" + "Compiling model..." ] }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "done.\r\n" ] }, { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ "Posterior P(malade|test+) = 65,9 %\r\n" ] @@ -851,10 +975,10 @@ "id": "e77312ab", "metadata": { "papermill": { - "duration": 0.008675, - "end_time": "2026-06-22T19:19:14.773200", + "duration": 0.008941, + "end_time": "2026-09-23T07:15:25.145452", "exception": false, - "start_time": "2026-06-22T19:19:14.764525", + "start_time": "2026-09-23T07:15:25.136511", "status": "completed" }, "tags": [] @@ -888,19 +1012,19 @@ "id": "a9c8ee77", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:14.791175Z", - "iopub.status.busy": "2026-06-22T19:19:14.790177Z", - "iopub.status.idle": "2026-06-22T19:19:15.300009Z", - "shell.execute_reply": "2026-06-22T19:19:15.300009Z" + "iopub.execute_input": "2026-09-23T07:15:25.168923Z", + "iopub.status.busy": "2026-09-23T07:15:25.167916Z", + "iopub.status.idle": "2026-09-23T07:15:26.988234Z", + "shell.execute_reply": "2026-09-23T07:15:26.988234Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.518586, - "end_time": "2026-06-22T19:19:15.300009", + "duration": 1.831044, + "end_time": "2026-09-23T07:15:26.988234", "exception": false, - "start_time": "2026-06-22T19:19:14.781423", + "start_time": "2026-09-23T07:15:25.157190", "status": "completed" }, "polyglot_notebook": { @@ -972,10 +1096,10 @@ "id": "a786485c", "metadata": { "papermill": { - "duration": 0.007736, - "end_time": "2026-06-22T19:19:15.315867", + "duration": 0.006495, + "end_time": "2026-09-23T07:15:27.001027", "exception": false, - "start_time": "2026-06-22T19:19:15.308131", + "start_time": "2026-09-23T07:15:26.994532", "status": "completed" }, "tags": [] @@ -990,19 +1114,19 @@ "id": "d3340dfd", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:15.331871Z", - "iopub.status.busy": "2026-06-22T19:19:15.331871Z", - "iopub.status.idle": "2026-06-22T19:19:15.452949Z", - "shell.execute_reply": "2026-06-22T19:19:15.452949Z" + "iopub.execute_input": "2026-09-23T07:15:27.018166Z", + "iopub.status.busy": "2026-09-23T07:15:27.017627Z", + "iopub.status.idle": "2026-09-23T07:15:27.427561Z", + "shell.execute_reply": "2026-09-23T07:15:27.427561Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.12959, - "end_time": "2026-06-22T19:19:15.453456", + "duration": 0.418191, + "end_time": "2026-09-23T07:15:27.427561", "exception": false, - "start_time": "2026-06-22T19:19:15.323866", + "start_time": "2026-09-23T07:15:27.009370", "status": "completed" }, "polyglot_notebook": { @@ -1017,14 +1141,14 @@ { "data": { "text/html": [ - "\r\n", - "
\r\n", - "
Model_06_22_26_21_19_14_85.svg
\r\n", - "
\r\n", + "\n", + "
\n", + "
Model_09_23_26_09_15_25_24.svg
\n", + "
\n", " \r\n", "\r\n", - "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", - "\r\n", - "
\r\n", + "\n", + "
\n", "
" ] }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\r\n", - "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", - "\r\n" - ] } ], "source": [ "// Affichage du factor graph du modele de diagnostic medical\n", "// Le graphe montre la structure : Prior(malade) -> Facteur conditionnel -> Observation(test)\n", - "display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml()));" + "FactorGraphHelper.GetLatestFactorGraphHtml().DisplayAs(\"text/html\");" ] }, { @@ -1157,10 +1272,10 @@ "id": "ca5464e6", "metadata": { "papermill": { - "duration": 0.009597, - "end_time": "2026-06-22T19:19:15.470946", + "duration": 0.009092, + "end_time": "2026-09-23T07:15:27.443539", "exception": false, - "start_time": "2026-06-22T19:19:15.461349", + "start_time": "2026-09-23T07:15:27.434447", "status": "completed" }, "tags": [] @@ -1180,16 +1295,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:15.486088Z", - "iopub.status.busy": "2026-06-22T19:19:15.486088Z", - "iopub.status.idle": "2026-06-22T19:19:15.560233Z", - "shell.execute_reply": "2026-06-22T19:19:15.560233Z" + "iopub.execute_input": "2026-09-23T07:15:27.468188Z", + "iopub.status.busy": "2026-09-23T07:15:27.468188Z", + "iopub.status.idle": "2026-09-23T07:15:27.537830Z", + "shell.execute_reply": "2026-09-23T07:15:27.537830Z" }, "papermill": { - "duration": 0.082224, - "end_time": "2026-06-22T19:19:15.560233", + "duration": 0.082159, + "end_time": "2026-09-23T07:15:27.537830", "exception": false, - "start_time": "2026-06-22T19:19:15.478009", + "start_time": "2026-09-23T07:15:27.455671", "status": "completed" }, "tags": [], @@ -1259,10 +1374,10 @@ "id": "7b6284df", "metadata": { "papermill": { - "duration": 0.00739, - "end_time": "2026-06-22T19:19:15.576435", + "duration": 0.006258, + "end_time": "2026-09-23T07:15:27.551133", "exception": false, - "start_time": "2026-06-22T19:19:15.569045", + "start_time": "2026-09-23T07:15:27.544875", "status": "completed" }, "tags": [] @@ -1293,16 +1408,16 @@ "id": "e9f1808c", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:15.595677Z", - "iopub.status.busy": "2026-06-22T19:19:15.595164Z", - "iopub.status.idle": "2026-06-22T19:19:15.642700Z", - "shell.execute_reply": "2026-06-22T19:19:15.642700Z" + "iopub.execute_input": "2026-09-23T07:15:27.566792Z", + "iopub.status.busy": "2026-09-23T07:15:27.566792Z", + "iopub.status.idle": "2026-09-23T07:15:27.611542Z", + "shell.execute_reply": "2026-09-23T07:15:27.610038Z" }, "papermill": { - "duration": 0.057559, - "end_time": "2026-06-22T19:19:15.642700", + "duration": 0.053025, + "end_time": "2026-09-23T07:15:27.611542", "exception": false, - "start_time": "2026-06-22T19:19:15.585141", + "start_time": "2026-09-23T07:15:27.558517", "status": "completed" }, "tags": [] @@ -1352,10 +1467,10 @@ "id": "b943e16e", "metadata": { "papermill": { - "duration": 0.009787, - "end_time": "2026-06-22T19:19:15.660527", + "duration": 0.006539, + "end_time": "2026-09-23T07:15:27.624382", "exception": false, - "start_time": "2026-06-22T19:19:15.650740", + "start_time": "2026-09-23T07:15:27.617843", "status": "completed" }, "tags": [] @@ -1384,10 +1499,10 @@ "id": "06cfc37b", "metadata": { "papermill": { - "duration": 0.007574, - "end_time": "2026-06-22T19:19:15.675774", + "duration": 0.005884, + "end_time": "2026-09-23T07:15:27.636351", "exception": false, - "start_time": "2026-06-22T19:19:15.668200", + "start_time": "2026-09-23T07:15:27.630467", "status": "completed" }, "tags": [] @@ -1445,16 +1560,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:15.696483Z", - "iopub.status.busy": "2026-06-22T19:19:15.695475Z", - "iopub.status.idle": "2026-06-22T19:19:15.781579Z", - "shell.execute_reply": "2026-06-22T19:19:15.780580Z" + "iopub.execute_input": "2026-09-23T07:15:27.649804Z", + "iopub.status.busy": "2026-09-23T07:15:27.649804Z", + "iopub.status.idle": "2026-09-23T07:15:27.670985Z", + "shell.execute_reply": "2026-09-23T07:15:27.670985Z" }, "papermill": { - "duration": 0.096107, - "end_time": "2026-06-22T19:19:15.781579", + "duration": 0.028647, + "end_time": "2026-09-23T07:15:27.670985", "exception": false, - "start_time": "2026-06-22T19:19:15.685472", + "start_time": "2026-09-23T07:15:27.642338", "status": "completed" }, "tags": [], @@ -1464,10 +1579,10 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", + "output_type": "stream", "text": [ - "Exercice 3 a completer : calibration de l'utilite pour decision d'assurance\r\n" + "Exercice 2 a completer : calibration de l'utilite pour decision d'assurance\r\n" ] } ], @@ -1498,10 +1613,10 @@ "id": "1c6c5c9c", "metadata": { "papermill": { - "duration": 0.0105, - "end_time": "2026-06-22T19:19:15.802248", + "duration": 0.007188, + "end_time": "2026-09-23T07:15:27.684603", "exception": false, - "start_time": "2026-06-22T19:19:15.791748", + "start_time": "2026-09-23T07:15:27.677415", "status": "completed" }, "tags": [] @@ -1536,10 +1651,10 @@ "id": "1af5f807", "metadata": { "papermill": { - "duration": 0.013005, - "end_time": "2026-06-22T19:19:15.824529", + "duration": 0.007095, + "end_time": "2026-09-23T07:15:27.699014", "exception": false, - "start_time": "2026-06-22T19:19:15.811524", + "start_time": "2026-09-23T07:15:27.691919", "status": "completed" }, "tags": [] @@ -1574,10 +1689,10 @@ "id": "9ec14b73", "metadata": { "papermill": { - "duration": 0.010264, - "end_time": "2026-06-22T19:19:15.844891", + "duration": 0.006814, + "end_time": "2026-09-23T07:15:27.712047", "exception": false, - "start_time": "2026-06-22T19:19:15.834627", + "start_time": "2026-09-23T07:15:27.705233", "status": "completed" }, "tags": [] @@ -1605,16 +1720,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:15.863575Z", - "iopub.status.busy": "2026-06-22T19:19:15.863575Z", - "iopub.status.idle": "2026-06-22T19:19:16.295615Z", - "shell.execute_reply": "2026-06-22T19:19:16.295615Z" + "iopub.execute_input": "2026-09-23T07:15:27.725321Z", + "iopub.status.busy": "2026-09-23T07:15:27.725321Z", + "iopub.status.idle": "2026-09-23T07:15:28.012212Z", + "shell.execute_reply": "2026-09-23T07:15:28.012212Z" }, "papermill": { - "duration": 0.442724, - "end_time": "2026-06-22T19:19:16.295615", + "duration": 0.29385, + "end_time": "2026-09-23T07:15:28.012212", "exception": false, - "start_time": "2026-06-22T19:19:15.852891", + "start_time": "2026-09-23T07:15:27.718362", "status": "completed" }, "tags": [], @@ -1755,10 +1870,10 @@ "id": "e0923e05", "metadata": { "papermill": { - "duration": 0.007993, - "end_time": "2026-06-22T19:19:16.312114", + "duration": 0.006, + "end_time": "2026-09-23T07:15:28.026331", "exception": false, - "start_time": "2026-06-22T19:19:16.304121", + "start_time": "2026-09-23T07:15:28.020331", "status": "completed" }, "tags": [] @@ -1797,19 +1912,19 @@ "id": "71e38e30", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:16.331277Z", - "iopub.status.busy": "2026-06-22T19:19:16.331277Z", - "iopub.status.idle": "2026-06-22T19:19:16.733635Z", - "shell.execute_reply": "2026-06-22T19:19:16.733123Z" + "iopub.execute_input": "2026-09-23T07:15:28.042597Z", + "iopub.status.busy": "2026-09-23T07:15:28.042597Z", + "iopub.status.idle": "2026-09-23T07:15:28.800129Z", + "shell.execute_reply": "2026-09-23T07:15:28.800129Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.412878, - "end_time": "2026-06-22T19:19:16.733635", + "duration": 0.766618, + "end_time": "2026-09-23T07:15:28.800129", "exception": false, - "start_time": "2026-06-22T19:19:16.320757", + "start_time": "2026-09-23T07:15:28.033511", "status": "completed" }, "polyglot_notebook": { @@ -1880,10 +1995,10 @@ "id": "822d7ac1", "metadata": { "papermill": { - "duration": 0.009793, - "end_time": "2026-06-22T19:19:16.752774", + "duration": 0.008346, + "end_time": "2026-09-23T07:15:28.816720", "exception": false, - "start_time": "2026-06-22T19:19:16.742981", + "start_time": "2026-09-23T07:15:28.808374", "status": "completed" }, "tags": [] @@ -1898,19 +2013,19 @@ "id": "a723979f", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:16.772785Z", - "iopub.status.busy": "2026-06-22T19:19:16.772785Z", - "iopub.status.idle": "2026-06-22T19:19:16.864998Z", - "shell.execute_reply": "2026-06-22T19:19:16.864998Z" + "iopub.execute_input": "2026-09-23T07:15:28.833295Z", + "iopub.status.busy": "2026-09-23T07:15:28.832292Z", + "iopub.status.idle": "2026-09-23T07:15:29.144990Z", + "shell.execute_reply": "2026-09-23T07:15:29.144990Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.10374, - "end_time": "2026-06-22T19:19:16.865527", + "duration": 0.321485, + "end_time": "2026-09-23T07:15:29.145989", "exception": false, - "start_time": "2026-06-22T19:19:16.761787", + "start_time": "2026-09-23T07:15:28.824504", "status": "completed" }, "polyglot_notebook": { @@ -1925,14 +2040,14 @@ { "data": { "text/html": [ - "\r\n", - "
\r\n", - "
Model_06_22_26_21_19_16_37.svg
\r\n", - "
\r\n", + "\n", + "
\n", + "
Model_09_23_26_09_15_28_09.svg
\n", + "
\n", " \r\n", "\r\n", - "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", - "\r\n", - "
\r\n", + "\n", + "
\n", "
" ] }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\r\n", - "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", - "\r\n" - ] } ], "source": [ "// Affichage du factor graph du modele de loterie\n", "// Le graphe montre la structure conditionnelle : gagne (Bernoulli) -> gain (deterministe selon l'etat)\n", - "display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml()));" + "FactorGraphHelper.GetLatestFactorGraphHtml().DisplayAs(\"text/html\");" ] }, { @@ -2065,10 +2171,10 @@ "id": "32f3e9bd", "metadata": { "papermill": { - "duration": 0.010368, - "end_time": "2026-06-22T19:19:16.888365", + "duration": 0.013382, + "end_time": "2026-09-23T07:15:29.176473", "exception": false, - "start_time": "2026-06-22T19:19:16.877997", + "start_time": "2026-09-23T07:15:29.163091", "status": "completed" }, "tags": [] @@ -2103,16 +2209,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:16.910214Z", - "iopub.status.busy": "2026-06-22T19:19:16.909697Z", - "iopub.status.idle": "2026-06-22T19:19:17.021292Z", - "shell.execute_reply": "2026-06-22T19:19:17.021292Z" + "iopub.execute_input": "2026-09-23T07:15:29.241115Z", + "iopub.status.busy": "2026-09-23T07:15:29.240225Z", + "iopub.status.idle": "2026-09-23T07:15:29.368046Z", + "shell.execute_reply": "2026-09-23T07:15:29.367044Z" }, "papermill": { - "duration": 0.122555, - "end_time": "2026-06-22T19:19:17.021292", + "duration": 0.15023, + "end_time": "2026-09-23T07:15:29.368046", "exception": false, - "start_time": "2026-06-22T19:19:16.898737", + "start_time": "2026-09-23T07:15:29.217816", "status": "completed" }, "tags": [], @@ -2337,10 +2443,10 @@ "id": "c8e03d8f", "metadata": { "papermill": { - "duration": 0.009, - "end_time": "2026-06-22T19:19:17.040304", + "duration": 0.014338, + "end_time": "2026-09-23T07:15:29.391068", "exception": false, - "start_time": "2026-06-22T19:19:17.031304", + "start_time": "2026-09-23T07:15:29.376730", "status": "completed" }, "tags": [] @@ -2383,10 +2489,10 @@ "id": "38977f13", "metadata": { "papermill": { - "duration": 0.009402, - "end_time": "2026-06-22T19:19:17.059536", + "duration": 0.009672, + "end_time": "2026-09-23T07:15:29.413707", "exception": false, - "start_time": "2026-06-22T19:19:17.050134", + "start_time": "2026-09-23T07:15:29.404035", "status": "completed" }, "tags": [] @@ -2432,19 +2538,19 @@ "id": "2a15f646", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:17.079855Z", - "iopub.status.busy": "2026-06-22T19:19:17.079855Z", - "iopub.status.idle": "2026-06-22T19:19:17.144158Z", - "shell.execute_reply": "2026-06-22T19:19:17.144158Z" + "iopub.execute_input": "2026-09-23T07:15:29.432359Z", + "iopub.status.busy": "2026-09-23T07:15:29.432359Z", + "iopub.status.idle": "2026-09-23T07:15:29.474800Z", + "shell.execute_reply": "2026-09-23T07:15:29.474800Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.075201, - "end_time": "2026-06-22T19:19:17.144158", + "duration": 0.052789, + "end_time": "2026-09-23T07:15:29.474800", "exception": false, - "start_time": "2026-06-22T19:19:17.068957", + "start_time": "2026-09-23T07:15:29.422011", "status": "completed" }, "polyglot_notebook": { @@ -2528,7 +2634,16 @@ { "cell_type": "markdown", "id": "a1b2c3d4", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.006504, + "end_time": "2026-09-23T07:15:29.488810", + "exception": false, + "start_time": "2026-09-23T07:15:29.482306", + "status": "completed" + }, + "tags": [] + }, "source": [ "## Exercice 4 : Equivalent certain et deduction de l'aversion au risque\n", "\n", @@ -2562,44 +2677,73 @@ }, { "cell_type": "code", - "id": "e5f6g7h8", - "metadata": {}, "execution_count": 17, + "id": "e5f6g7h8", + "metadata": { + "execution": { + "iopub.execute_input": "2026-09-23T07:15:29.505464Z", + "iopub.status.busy": "2026-09-23T07:15:29.505464Z", + "iopub.status.idle": "2026-09-23T07:15:29.549015Z", + "shell.execute_reply": "2026-09-23T07:15:29.549015Z" + }, + "papermill": { + "duration": 0.051521, + "end_time": "2026-09-23T07:15:29.549015", + "exception": false, + "start_time": "2026-09-23T07:15:29.497494", + "status": "completed" + }, + "tags": [] + }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "=== Exercice 4 : Deduction de l'aversion au risque ===\r\n" + "output_type": "stream", + "text": [ + "=== Exercice 4 : Deduction de l'aversion au risque ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "(A) rho deduit : 0,000 | prime de risque : 0 EUR\r\n" + "output_type": "stream", + "text": [ + "(A) rho deduit : 0,000 | prime de risque : 0 EUR\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "(B) rho deduit : 0,000 | prime de risque : 0 EUR\r\n" + "output_type": "stream", + "text": [ + "(B) rho deduit : 0,000 | prime de risque : 0 EUR\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "(C) rho deduit : 0,000 | prime de risque : 0 EUR\r\n" + "output_type": "stream", + "text": [ + "(C) rho deduit : 0,000 | prime de risque : 0 EUR\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Question : les trois rho sont-ils coherents ?\r\n" + "output_type": "stream", + "text": [ + "Question : les trois rho sont-ils coherents ?\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Indice : une incoherence revele une violation des axiomes VNM (effet de certitude).\r\n" + "output_type": "stream", + "text": [ + "Indice : une incoherence revele une violation des axiomes VNM (effet de certitude).\r\n" + ] } ], "source": [ @@ -2644,10 +2788,10 @@ "id": "d0552d66", "metadata": { "papermill": { - "duration": 0.011408, - "end_time": "2026-06-22T19:19:17.168626", + "duration": 0.010926, + "end_time": "2026-09-23T07:15:29.568947", "exception": false, - "start_time": "2026-06-22T19:19:17.157218", + "start_time": "2026-09-23T07:15:29.558021", "status": "completed" }, "tags": [] @@ -2695,6 +2839,19 @@ } ], "metadata": { + "cost": { + "api_provider": "none", + "api_usd_est": 0.0, + "cpu_min": 3, + "external_account": "none", + "free_alternative": null, + "gpu_required": false, + "metadata_written": "2026-07-23T01:30Z", + "network": false, + "reduced_pedagogical": null, + "reproducibility": "HIGH", + "validator": "papermill" + }, "kernelspec": { "display_name": ".NET (C#)", "language": "C#", @@ -2709,14 +2866,14 @@ }, "papermill": { "default_parameters": {}, - "duration": 9.602258, - "end_time": "2026-06-22T19:19:17.401451", + "duration": 15.243528, + "end_time": "2026-09-23T07:15:29.809842", "environment_variables": {}, "exception": null, "input_path": "DecInfer-01-Utility-Foundations.ipynb", "output_path": "DecInfer-01-Utility-Foundations.ipynb", "parameters": {}, - "start_time": "2026-06-22T19:19:07.799193", + "start_time": "2026-09-23T07:15:14.566314", "version": "2.6.0" }, "polyglot_notebook": { @@ -2730,21 +2887,8 @@ } ] } - }, - "cost": { - "api_usd_est": 0.0, - "api_provider": "none", - "cpu_min": 3, - "gpu_required": false, - "network": false, - "external_account": "none", - "free_alternative": null, - "reduced_pedagogical": null, - "reproducibility": "HIGH", - "metadata_written": "2026-07-23T01:30Z", - "validator": "papermill" } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-03-Utility-Money.ipynb b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-03-Utility-Money.ipynb index c4b734b0bd..c0ad25cb69 100644 --- a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-03-Utility-Money.ipynb +++ b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-03-Utility-Money.ipynb @@ -5,10 +5,10 @@ "id": "8d0cf773", "metadata": { "papermill": { - "duration": 0.004681, - "end_time": "2026-06-22T19:19:21.203046", + "duration": 0.014403, + "end_time": "2026-09-23T07:15:33.304562", "exception": false, - "start_time": "2026-06-22T19:19:21.198365", + "start_time": "2026-09-23T07:15:33.290159", "status": "completed" }, "tags": [] @@ -45,10 +45,10 @@ "id": "b5d88fad", "metadata": { "papermill": { - "duration": 0.005044, - "end_time": "2026-06-22T19:19:21.212089", + "duration": 0.00817, + "end_time": "2026-09-23T07:15:33.319942", "exception": false, - "start_time": "2026-06-22T19:19:21.207045", + "start_time": "2026-09-23T07:15:33.311772", "status": "completed" }, "tags": [] @@ -106,16 +106,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:21.226570Z", - "iopub.status.busy": "2026-06-22T19:19:21.222949Z", - "iopub.status.idle": "2026-06-22T19:19:23.692335Z", - "shell.execute_reply": "2026-06-22T19:19:23.688335Z" + "iopub.execute_input": "2026-09-23T07:15:33.344288Z", + "iopub.status.busy": "2026-09-23T07:15:33.339489Z", + "iopub.status.idle": "2026-09-23T07:15:36.603108Z", + "shell.execute_reply": "2026-09-23T07:15:36.599410Z" }, "papermill": { - "duration": 2.476542, - "end_time": "2026-06-22T19:19:23.692335", + "duration": 3.274571, + "end_time": "2026-09-23T07:15:36.603108", "exception": false, - "start_time": "2026-06-22T19:19:21.215793", + "start_time": "2026-09-23T07:15:33.328537", "status": "completed" }, "tags": [], @@ -124,6 +124,121 @@ } }, "outputs": [ + { + "data": { + "text/html": [ + "\r\n", + "
\r\n", + " \r\n", + " \r\n", + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, { "data": { "text/html": [ @@ -159,10 +274,10 @@ "id": "430a1ea4", "metadata": { "papermill": { - "duration": 0.00901, - "end_time": "2026-06-22T19:19:23.711338", + "duration": 0.007752, + "end_time": "2026-09-23T07:15:36.616540", "exception": false, - "start_time": "2026-06-22T19:19:23.702328", + "start_time": "2026-09-23T07:15:36.608788", "status": "completed" }, "tags": [] @@ -177,19 +292,19 @@ "id": "d7b26cdd", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:23.736204Z", - "iopub.status.busy": "2026-06-22T19:19:23.736204Z", - "iopub.status.idle": "2026-06-22T19:19:24.307160Z", - "shell.execute_reply": "2026-06-22T19:19:24.307160Z" + "iopub.execute_input": "2026-09-23T07:15:36.632654Z", + "iopub.status.busy": "2026-09-23T07:15:36.632654Z", + "iopub.status.idle": "2026-09-23T07:15:37.202237Z", + "shell.execute_reply": "2026-09-23T07:15:37.202237Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.58674, - "end_time": "2026-06-22T19:19:24.307160", + "duration": 0.579159, + "end_time": "2026-09-23T07:15:37.202237", "exception": false, - "start_time": "2026-06-22T19:19:23.720420", + "start_time": "2026-09-23T07:15:36.623078", "status": "completed" }, "polyglot_notebook": { @@ -233,10 +348,10 @@ "id": "1340bb63", "metadata": { "papermill": { - "duration": 0.008313, - "end_time": "2026-06-22T19:19:24.324469", + "duration": 0.009101, + "end_time": "2026-09-23T07:15:37.222675", "exception": false, - "start_time": "2026-06-22T19:19:24.316156", + "start_time": "2026-09-23T07:15:37.213574", "status": "completed" }, "tags": [] @@ -261,16 +376,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:24.344464Z", - "iopub.status.busy": "2026-06-22T19:19:24.344464Z", - "iopub.status.idle": "2026-06-22T19:19:24.442519Z", - "shell.execute_reply": "2026-06-22T19:19:24.441519Z" + "iopub.execute_input": "2026-09-23T07:15:37.239561Z", + "iopub.status.busy": "2026-09-23T07:15:37.238296Z", + "iopub.status.idle": "2026-09-23T07:15:37.335122Z", + "shell.execute_reply": "2026-09-23T07:15:37.335122Z" }, "papermill": { - "duration": 0.11005, - "end_time": "2026-06-22T19:19:24.442519", + "duration": 0.106431, + "end_time": "2026-09-23T07:15:37.335122", "exception": false, - "start_time": "2026-06-22T19:19:24.332469", + "start_time": "2026-09-23T07:15:37.228691", "status": "completed" }, "tags": [], @@ -363,10 +478,10 @@ "id": "f2c392c0", "metadata": { "papermill": { - "duration": 0.008, - "end_time": "2026-06-22T19:19:24.459020", + "duration": 0.007109, + "end_time": "2026-09-23T07:15:37.355406", "exception": false, - "start_time": "2026-06-22T19:19:24.451020", + "start_time": "2026-09-23T07:15:37.348297", "status": "completed" }, "tags": [] @@ -395,19 +510,19 @@ "id": "6df0af2a", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:24.477795Z", - "iopub.status.busy": "2026-06-22T19:19:24.477795Z", - "iopub.status.idle": "2026-06-22T19:19:24.590319Z", - "shell.execute_reply": "2026-06-22T19:19:24.589318Z" + "iopub.execute_input": "2026-09-23T07:15:37.370718Z", + "iopub.status.busy": "2026-09-23T07:15:37.370718Z", + "iopub.status.idle": "2026-09-23T07:15:37.446499Z", + "shell.execute_reply": "2026-09-23T07:15:37.446499Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.123533, - "end_time": "2026-06-22T19:19:24.590319", + "duration": 0.084101, + "end_time": "2026-09-23T07:15:37.446499", "exception": false, - "start_time": "2026-06-22T19:19:24.466786", + "start_time": "2026-09-23T07:15:37.362398", "status": "completed" }, "polyglot_notebook": { @@ -580,7 +695,16 @@ { "cell_type": "markdown", "id": "dc83179f", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.010308, + "end_time": "2026-09-23T07:15:37.464812", + "exception": false, + "start_time": "2026-09-23T07:15:37.454504", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture du tableau : deux suites, deux destins — c'est le paradoxe qui se dissout\n", "\n", @@ -592,10 +716,10 @@ "id": "0ce0e65a", "metadata": { "papermill": { - "duration": 0.010085, - "end_time": "2026-06-22T19:19:24.610399", + "duration": 0.010806, + "end_time": "2026-09-23T07:15:37.485136", "exception": false, - "start_time": "2026-06-22T19:19:24.600314", + "start_time": "2026-09-23T07:15:37.474330", "status": "completed" }, "tags": [] @@ -632,16 +756,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:24.632488Z", - "iopub.status.busy": "2026-06-22T19:19:24.631976Z", - "iopub.status.idle": "2026-06-22T19:19:24.721656Z", - "shell.execute_reply": "2026-06-22T19:19:24.721144Z" + "iopub.execute_input": "2026-09-23T07:15:37.506721Z", + "iopub.status.busy": "2026-09-23T07:15:37.505717Z", + "iopub.status.idle": "2026-09-23T07:15:37.581353Z", + "shell.execute_reply": "2026-09-23T07:15:37.581353Z" }, "papermill": { - "duration": 0.100786, - "end_time": "2026-06-22T19:19:24.721656", + "duration": 0.085362, + "end_time": "2026-09-23T07:15:37.581353", "exception": false, - "start_time": "2026-06-22T19:19:24.620870", + "start_time": "2026-09-23T07:15:37.495991", "status": "completed" }, "tags": [], @@ -752,10 +876,10 @@ "id": "ea3cf860", "metadata": { "papermill": { - "duration": 0.010429, - "end_time": "2026-06-22T19:19:24.742171", + "duration": 0.014655, + "end_time": "2026-09-23T07:15:37.608338", "exception": false, - "start_time": "2026-06-22T19:19:24.731742", + "start_time": "2026-09-23T07:15:37.593683", "status": "completed" }, "tags": [] @@ -784,10 +908,10 @@ "id": "a891e70b", "metadata": { "papermill": { - "duration": 0.010121, - "end_time": "2026-06-22T19:19:24.761893", + "duration": 0.026962, + "end_time": "2026-09-23T07:15:37.646313", "exception": false, - "start_time": "2026-06-22T19:19:24.751772", + "start_time": "2026-09-23T07:15:37.619351", "status": "completed" }, "tags": [] @@ -847,19 +971,19 @@ "id": "a63eba83", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:24.784845Z", - "iopub.status.busy": "2026-06-22T19:19:24.784327Z", - "iopub.status.idle": "2026-06-22T19:19:24.913330Z", - "shell.execute_reply": "2026-06-22T19:19:24.911273Z" + "iopub.execute_input": "2026-09-23T07:15:37.681037Z", + "iopub.status.busy": "2026-09-23T07:15:37.680461Z", + "iopub.status.idle": "2026-09-23T07:15:37.793465Z", + "shell.execute_reply": "2026-09-23T07:15:37.792440Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.140973, - "end_time": "2026-06-22T19:19:24.913330", + "duration": 0.12856, + "end_time": "2026-09-23T07:15:37.793465", "exception": false, - "start_time": "2026-06-22T19:19:24.772357", + "start_time": "2026-09-23T07:15:37.664905", "status": "completed" }, "polyglot_notebook": { @@ -1220,10 +1344,10 @@ "id": "4ff62e01", "metadata": { "papermill": { - "duration": 0.011964, - "end_time": "2026-06-22T19:19:24.940493", + "duration": 0.008095, + "end_time": "2026-09-23T07:15:37.810549", "exception": false, - "start_time": "2026-06-22T19:19:24.928529", + "start_time": "2026-09-23T07:15:37.802454", "status": "completed" }, "tags": [] @@ -1241,16 +1365,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:24.968599Z", - "iopub.status.busy": "2026-06-22T19:19:24.968599Z", - "iopub.status.idle": "2026-06-22T19:19:25.052012Z", - "shell.execute_reply": "2026-06-22T19:19:25.051476Z" + "iopub.execute_input": "2026-09-23T07:15:37.829915Z", + "iopub.status.busy": "2026-09-23T07:15:37.829915Z", + "iopub.status.idle": "2026-09-23T07:15:37.877023Z", + "shell.execute_reply": "2026-09-23T07:15:37.877023Z" }, "papermill": { - "duration": 0.10018, - "end_time": "2026-06-22T19:19:25.052012", + "duration": 0.057003, + "end_time": "2026-09-23T07:15:37.877023", "exception": false, - "start_time": "2026-06-22T19:19:24.951832", + "start_time": "2026-09-23T07:15:37.820020", "status": "completed" }, "tags": [], @@ -1345,10 +1469,10 @@ "id": "8cbc2044", "metadata": { "papermill": { - "duration": 0.011171, - "end_time": "2026-06-22T19:19:25.075579", + "duration": 0.008588, + "end_time": "2026-09-23T07:15:37.896792", "exception": false, - "start_time": "2026-06-22T19:19:25.064408", + "start_time": "2026-09-23T07:15:37.888204", "status": "completed" }, "tags": [] @@ -1375,10 +1499,10 @@ "id": "46489ca7", "metadata": { "papermill": { - "duration": 0.012452, - "end_time": "2026-06-22T19:19:25.099371", + "duration": 0.008822, + "end_time": "2026-09-23T07:15:37.914911", "exception": false, - "start_time": "2026-06-22T19:19:25.086919", + "start_time": "2026-09-23T07:15:37.906089", "status": "completed" }, "tags": [] @@ -1428,16 +1552,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:25.124441Z", - "iopub.status.busy": "2026-06-22T19:19:25.123828Z", - "iopub.status.idle": "2026-06-22T19:19:25.201907Z", - "shell.execute_reply": "2026-06-22T19:19:25.201907Z" + "iopub.execute_input": "2026-09-23T07:15:37.934077Z", + "iopub.status.busy": "2026-09-23T07:15:37.934077Z", + "iopub.status.idle": "2026-09-23T07:15:37.978516Z", + "shell.execute_reply": "2026-09-23T07:15:37.977903Z" }, "papermill": { - "duration": 0.090453, - "end_time": "2026-06-22T19:19:25.201907", + "duration": 0.056086, + "end_time": "2026-09-23T07:15:37.978516", "exception": false, - "start_time": "2026-06-22T19:19:25.111454", + "start_time": "2026-09-23T07:15:37.922430", "status": "completed" }, "tags": [], @@ -1559,10 +1683,10 @@ "id": "3f6f89ac", "metadata": { "papermill": { - "duration": 0.012498, - "end_time": "2026-06-22T19:19:25.226636", + "duration": 0.012476, + "end_time": "2026-09-23T07:15:38.003245", "exception": false, - "start_time": "2026-06-22T19:19:25.214138", + "start_time": "2026-09-23T07:15:37.990769", "status": "completed" }, "tags": [] @@ -1592,10 +1716,10 @@ "id": "affb077d", "metadata": { "papermill": { - "duration": 0.012184, - "end_time": "2026-06-22T19:19:25.250648", + "duration": 0.013794, + "end_time": "2026-09-23T07:15:38.029424", "exception": false, - "start_time": "2026-06-22T19:19:25.238464", + "start_time": "2026-09-23T07:15:38.015630", "status": "completed" }, "tags": [] @@ -1626,16 +1750,16 @@ "id": "30c028bf", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:25.277929Z", - "iopub.status.busy": "2026-06-22T19:19:25.277929Z", - "iopub.status.idle": "2026-06-22T19:19:25.328183Z", - "shell.execute_reply": "2026-06-22T19:19:25.328183Z" + "iopub.execute_input": "2026-09-23T07:15:38.051259Z", + "iopub.status.busy": "2026-09-23T07:15:38.051259Z", + "iopub.status.idle": "2026-09-23T07:15:38.093829Z", + "shell.execute_reply": "2026-09-23T07:15:38.092832Z" }, "papermill": { - "duration": 0.064893, - "end_time": "2026-06-22T19:19:25.328183", + "duration": 0.053939, + "end_time": "2026-09-23T07:15:38.093829", "exception": false, - "start_time": "2026-06-22T19:19:25.263290", + "start_time": "2026-09-23T07:15:38.039890", "status": "completed" }, "tags": [] @@ -1680,10 +1804,10 @@ "id": "d4c4addc", "metadata": { "papermill": { - "duration": 0.011693, - "end_time": "2026-06-22T19:19:25.353448", + "duration": 0.009474, + "end_time": "2026-09-23T07:15:38.112643", "exception": false, - "start_time": "2026-06-22T19:19:25.341755", + "start_time": "2026-09-23T07:15:38.103169", "status": "completed" }, "tags": [] @@ -1714,16 +1838,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:25.379451Z", - "iopub.status.busy": "2026-06-22T19:19:25.379451Z", - "iopub.status.idle": "2026-06-22T19:19:25.447545Z", - "shell.execute_reply": "2026-06-22T19:19:25.447545Z" + "iopub.execute_input": "2026-09-23T07:15:38.133930Z", + "iopub.status.busy": "2026-09-23T07:15:38.133418Z", + "iopub.status.idle": "2026-09-23T07:15:38.195017Z", + "shell.execute_reply": "2026-09-23T07:15:38.195017Z" }, "papermill": { - "duration": 0.082618, - "end_time": "2026-06-22T19:19:25.448066", + "duration": 0.071339, + "end_time": "2026-09-23T07:15:38.195017", "exception": false, - "start_time": "2026-06-22T19:19:25.365448", + "start_time": "2026-09-23T07:15:38.123678", "status": "completed" }, "tags": [], @@ -1828,7 +1952,16 @@ { "cell_type": "markdown", "id": "7ecaa6b0", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.009356, + "end_time": "2026-09-23T07:15:38.214685", + "exception": false, + "start_time": "2026-09-23T07:15:38.205329", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : la prime de risque croît avec l'aversion — et avec quoi au juste ?\n", "\n", @@ -1841,19 +1974,19 @@ "id": "e73e4fa0", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:25.504172Z", - "iopub.status.busy": "2026-06-22T19:19:25.503660Z", - "iopub.status.idle": "2026-06-22T19:19:25.592697Z", - "shell.execute_reply": "2026-06-22T19:19:25.591696Z" + "iopub.execute_input": "2026-09-23T07:15:38.242368Z", + "iopub.status.busy": "2026-09-23T07:15:38.241823Z", + "iopub.status.idle": "2026-09-23T07:15:38.309199Z", + "shell.execute_reply": "2026-09-23T07:15:38.308670Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.104998, - "end_time": "2026-06-22T19:19:25.592697", + "duration": 0.080958, + "end_time": "2026-09-23T07:15:38.309199", "exception": false, - "start_time": "2026-06-22T19:19:25.487699", + "start_time": "2026-09-23T07:15:38.228241", "status": "completed" }, "polyglot_notebook": { @@ -2026,7 +2159,16 @@ { "cell_type": "markdown", "id": "2785cae3", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.018602, + "end_time": "2026-09-23T07:15:38.342755", + "exception": false, + "start_time": "2026-09-23T07:15:38.324153", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture du balayage : une relation quasi linéaire, lue en prime relative\n", "\n", @@ -2038,10 +2180,10 @@ "id": "8c206be2", "metadata": { "papermill": { - "duration": 0.013214, - "end_time": "2026-06-22T19:19:25.620203", + "duration": 0.020193, + "end_time": "2026-09-23T07:15:38.383668", "exception": false, - "start_time": "2026-06-22T19:19:25.606989", + "start_time": "2026-09-23T07:15:38.363475", "status": "completed" }, "tags": [] @@ -2056,19 +2198,19 @@ "id": "7427199d", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:25.648243Z", - "iopub.status.busy": "2026-06-22T19:19:25.648243Z", - "iopub.status.idle": "2026-06-22T19:19:25.787830Z", - "shell.execute_reply": "2026-06-22T19:19:25.786823Z" + "iopub.execute_input": "2026-09-23T07:15:38.409445Z", + "iopub.status.busy": "2026-09-23T07:15:38.408895Z", + "iopub.status.idle": "2026-09-23T07:15:38.524956Z", + "shell.execute_reply": "2026-09-23T07:15:38.524956Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.155587, - "end_time": "2026-06-22T19:19:25.787830", + "duration": 0.129205, + "end_time": "2026-09-23T07:15:38.524956", "exception": false, - "start_time": "2026-06-22T19:19:25.632243", + "start_time": "2026-09-23T07:15:38.395751", "status": "completed" }, "polyglot_notebook": { @@ -2251,10 +2393,10 @@ "id": "eeb96484", "metadata": { "papermill": { - "duration": 0.015026, - "end_time": "2026-06-22T19:19:25.818553", + "duration": 0.009966, + "end_time": "2026-09-23T07:15:38.545020", "exception": false, - "start_time": "2026-06-22T19:19:25.803527", + "start_time": "2026-09-23T07:15:38.535054", "status": "completed" }, "tags": [] @@ -2306,16 +2448,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:25.852000Z", - "iopub.status.busy": "2026-06-22T19:19:25.850991Z", - "iopub.status.idle": "2026-06-22T19:19:25.903616Z", - "shell.execute_reply": "2026-06-22T19:19:25.903616Z" + "iopub.execute_input": "2026-09-23T07:15:38.566384Z", + "iopub.status.busy": "2026-09-23T07:15:38.566384Z", + "iopub.status.idle": "2026-09-23T07:15:38.596509Z", + "shell.execute_reply": "2026-09-23T07:15:38.596509Z" }, "papermill": { - "duration": 0.070626, - "end_time": "2026-06-22T19:19:25.903616", + "duration": 0.04155, + "end_time": "2026-09-23T07:15:38.596509", "exception": false, - "start_time": "2026-06-22T19:19:25.832990", + "start_time": "2026-09-23T07:15:38.554959", "status": "completed" }, "tags": [], @@ -2376,10 +2518,10 @@ "id": "9f72c2df", "metadata": { "papermill": { - "duration": 0.014507, - "end_time": "2026-06-22T19:19:25.932146", + "duration": 0.011775, + "end_time": "2026-09-23T07:15:38.619877", "exception": false, - "start_time": "2026-06-22T19:19:25.917639", + "start_time": "2026-09-23T07:15:38.608102", "status": "completed" }, "tags": [] @@ -2409,19 +2551,19 @@ "id": "cc766630", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:25.960146Z", - "iopub.status.busy": "2026-06-22T19:19:25.960146Z", - "iopub.status.idle": "2026-06-22T19:19:26.046919Z", - "shell.execute_reply": "2026-06-22T19:19:26.046919Z" + "iopub.execute_input": "2026-09-23T07:15:38.648079Z", + "iopub.status.busy": "2026-09-23T07:15:38.648079Z", + "iopub.status.idle": "2026-09-23T07:15:38.704398Z", + "shell.execute_reply": "2026-09-23T07:15:38.704398Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.101773, - "end_time": "2026-06-22T19:19:26.046919", + "duration": 0.073276, + "end_time": "2026-09-23T07:15:38.704398", "exception": false, - "start_time": "2026-06-22T19:19:25.945146", + "start_time": "2026-09-23T07:15:38.631122", "status": "completed" }, "polyglot_notebook": { @@ -2633,7 +2775,16 @@ { "cell_type": "markdown", "id": "88c34674", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.013012, + "end_time": "2026-09-23T07:15:38.732552", + "exception": false, + "start_time": "2026-09-23T07:15:38.719540", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : le basculement C → B, et une précaution de lecture du tableau\n", "\n", @@ -2647,10 +2798,10 @@ "id": "1ec36415", "metadata": { "papermill": { - "duration": 0.015286, - "end_time": "2026-06-22T19:19:26.079750", + "duration": 0.013619, + "end_time": "2026-09-23T07:15:38.757429", "exception": false, - "start_time": "2026-06-22T19:19:26.064464", + "start_time": "2026-09-23T07:15:38.743810", "status": "completed" }, "tags": [] @@ -2678,16 +2829,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:26.113834Z", - "iopub.status.busy": "2026-06-22T19:19:26.113326Z", - "iopub.status.idle": "2026-06-22T19:19:26.232687Z", - "shell.execute_reply": "2026-06-22T19:19:26.232687Z" + "iopub.execute_input": "2026-09-23T07:15:38.789308Z", + "iopub.status.busy": "2026-09-23T07:15:38.788783Z", + "iopub.status.idle": "2026-09-23T07:15:38.883432Z", + "shell.execute_reply": "2026-09-23T07:15:38.883432Z" }, "papermill": { - "duration": 0.13759, - "end_time": "2026-06-22T19:19:26.232687", + "duration": 0.112788, + "end_time": "2026-09-23T07:15:38.883432", "exception": false, - "start_time": "2026-06-22T19:19:26.095097", + "start_time": "2026-09-23T07:15:38.770644", "status": "completed" }, "tags": [], @@ -2790,10 +2941,10 @@ "id": "7cbe726d", "metadata": { "papermill": { - "duration": 0.015346, - "end_time": "2026-06-22T19:19:26.265054", + "duration": 0.011035, + "end_time": "2026-09-23T07:15:38.906060", "exception": false, - "start_time": "2026-06-22T19:19:26.249708", + "start_time": "2026-09-23T07:15:38.895025", "status": "completed" }, "tags": [] @@ -2811,16 +2962,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:26.297172Z", - "iopub.status.busy": "2026-06-22T19:19:26.296663Z", - "iopub.status.idle": "2026-06-22T19:19:26.369948Z", - "shell.execute_reply": "2026-06-22T19:19:26.369439Z" + "iopub.execute_input": "2026-09-23T07:15:38.935040Z", + "iopub.status.busy": "2026-09-23T07:15:38.934481Z", + "iopub.status.idle": "2026-09-23T07:15:39.005411Z", + "shell.execute_reply": "2026-09-23T07:15:39.005411Z" }, "papermill": { - "duration": 0.089461, - "end_time": "2026-06-22T19:19:26.369948", + "duration": 0.086456, + "end_time": "2026-09-23T07:15:39.005411", "exception": false, - "start_time": "2026-06-22T19:19:26.280487", + "start_time": "2026-09-23T07:15:38.918955", "status": "completed" }, "tags": [], @@ -2937,10 +3088,10 @@ "id": "787f7a76", "metadata": { "papermill": { - "duration": 0.017311, - "end_time": "2026-06-22T19:19:26.407375", + "duration": 0.010715, + "end_time": "2026-09-23T07:15:39.029967", "exception": false, - "start_time": "2026-06-22T19:19:26.390064", + "start_time": "2026-09-23T07:15:39.019252", "status": "completed" }, "tags": [] @@ -2971,10 +3122,10 @@ "id": "03385944", "metadata": { "papermill": { - "duration": 0.015288, - "end_time": "2026-06-22T19:19:26.437691", + "duration": 0.012765, + "end_time": "2026-09-23T07:15:39.053655", "exception": false, - "start_time": "2026-06-22T19:19:26.422403", + "start_time": "2026-09-23T07:15:39.040890", "status": "completed" }, "tags": [] @@ -3004,16 +3155,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:19:26.470951Z", - "iopub.status.busy": "2026-06-22T19:19:26.469948Z", - "iopub.status.idle": "2026-06-22T19:19:26.524381Z", - "shell.execute_reply": "2026-06-22T19:19:26.523875Z" + "iopub.execute_input": "2026-09-23T07:15:39.083975Z", + "iopub.status.busy": "2026-09-23T07:15:39.083975Z", + "iopub.status.idle": "2026-09-23T07:15:39.130762Z", + "shell.execute_reply": "2026-09-23T07:15:39.130445Z" }, "papermill": { - "duration": 0.070796, - "end_time": "2026-06-22T19:19:26.524381", + "duration": 0.063931, + "end_time": "2026-09-23T07:15:39.130762", "exception": false, - "start_time": "2026-06-22T19:19:26.453585", + "start_time": "2026-09-23T07:15:39.066831", "status": "completed" }, "tags": [], @@ -3105,7 +3256,16 @@ { "cell_type": "markdown", "id": "4f3dfc15", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.023624, + "end_time": "2026-09-23T07:15:39.174322", + "exception": false, + "start_time": "2026-09-23T07:15:39.150698", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : votre ρ révélé par un seul prix d'indifférence\n", "\n", @@ -3117,10 +3277,10 @@ "id": "84438637", "metadata": { "papermill": { - "duration": 0.016999, - "end_time": "2026-06-22T19:19:26.556983", + "duration": 0.020617, + "end_time": "2026-09-23T07:15:39.219343", "exception": false, - "start_time": "2026-06-22T19:19:26.539984", + "start_time": "2026-09-23T07:15:39.198726", "status": "completed" }, "tags": [] @@ -3147,19 +3307,19 @@ "id": "6e12c4ef", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:26.590992Z", - "iopub.status.busy": "2026-06-22T19:19:26.589985Z", - "iopub.status.idle": "2026-06-22T19:19:28.212422Z", - "shell.execute_reply": "2026-06-22T19:19:28.211430Z" + "iopub.execute_input": "2026-09-23T07:15:39.255791Z", + "iopub.status.busy": "2026-09-23T07:15:39.255791Z", + "iopub.status.idle": "2026-09-23T07:15:40.987355Z", + "shell.execute_reply": "2026-09-23T07:15:40.987355Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 1.639197, - "end_time": "2026-06-22T19:19:28.212422", + "duration": 1.749349, + "end_time": "2026-09-23T07:15:40.987355", "exception": false, - "start_time": "2026-06-22T19:19:26.573225", + "start_time": "2026-09-23T07:15:39.238006", "status": "completed" }, "polyglot_notebook": { @@ -3337,10 +3497,10 @@ "id": "da38e359", "metadata": { "papermill": { - "duration": 0.021415, - "end_time": "2026-06-22T19:19:28.257344", + "duration": 0.02006, + "end_time": "2026-09-23T07:15:41.036891", "exception": false, - "start_time": "2026-06-22T19:19:28.235929", + "start_time": "2026-09-23T07:15:41.016831", "status": "completed" }, "tags": [] @@ -3381,19 +3541,19 @@ "id": "536fb4f3", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:28.294362Z", - "iopub.status.busy": "2026-06-22T19:19:28.294362Z", - "iopub.status.idle": "2026-06-22T19:19:28.905638Z", - "shell.execute_reply": "2026-06-22T19:19:28.905638Z" + "iopub.execute_input": "2026-09-23T07:15:41.072171Z", + "iopub.status.busy": "2026-09-23T07:15:41.072171Z", + "iopub.status.idle": "2026-09-23T07:15:42.255166Z", + "shell.execute_reply": "2026-09-23T07:15:42.254607Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.629253, - "end_time": "2026-06-22T19:19:28.905638", + "duration": 1.200939, + "end_time": "2026-09-23T07:15:42.255166", "exception": false, - "start_time": "2026-06-22T19:19:28.276385", + "start_time": "2026-09-23T07:15:41.054227", "status": "completed" }, "polyglot_notebook": { @@ -3422,14 +3582,14 @@ { "data": { "text/html": [ - "\r\n", - "
\r\n", - "
Model_06_22_26_21_19_28_38.svg
\r\n", - "
\r\n", + "\n", + "
\n", + "
Model_09_23_26_09_15_41_16.svg
\n", + "
\n", " \r\n", "\r\n", - "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", - "\r\n", - "
\r\n", + "\n", + "
\n", "
" ] }, @@ -3530,15 +3690,6 @@ "text": [ " - Le facteur Bernoulli connecte probRisque a chaque observation\r\n" ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\r\n", - "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", - "\r\n" - ] } ], "source": [ @@ -3560,7 +3711,7 @@ "try\n", "{\n", " var _ = engineFG.Infer(probRisqueFG);\n", - " display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml(700)));\n", + " FactorGraphHelper.GetLatestFactorGraphHtml(700).DisplayAs(\"text/html\");\n", " \n", " Console.WriteLine(\"Le factor graph montre :\");\n", " Console.WriteLine(\" - probRisque : variable latente Beta (cercle)\");\n", @@ -3579,10 +3730,10 @@ "id": "c5cfce09", "metadata": { "papermill": { - "duration": 0.024405, - "end_time": "2026-06-22T19:19:28.942054", + "duration": 0.015025, + "end_time": "2026-09-23T07:15:42.305230", "exception": false, - "start_time": "2026-06-22T19:19:28.917649", + "start_time": "2026-09-23T07:15:42.290205", "status": "completed" }, "tags": [] @@ -3597,19 +3748,19 @@ "id": "2825015b", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:28.979053Z", - "iopub.status.busy": "2026-06-22T19:19:28.979053Z", - "iopub.status.idle": "2026-06-22T19:19:29.047340Z", - "shell.execute_reply": "2026-06-22T19:19:29.047340Z" + "iopub.execute_input": "2026-09-23T07:15:42.335054Z", + "iopub.status.busy": "2026-09-23T07:15:42.335054Z", + "iopub.status.idle": "2026-09-23T07:15:42.384819Z", + "shell.execute_reply": "2026-09-23T07:15:42.384819Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.087295, - "end_time": "2026-06-22T19:19:29.047340", + "duration": 0.06367, + "end_time": "2026-09-23T07:15:42.384819", "exception": false, - "start_time": "2026-06-22T19:19:28.960045", + "start_time": "2026-09-23T07:15:42.321149", "status": "completed" }, "polyglot_notebook": { @@ -3809,7 +3960,16 @@ { "cell_type": "markdown", "id": "a3d1ec02", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.013001, + "end_time": "2026-09-23T07:15:42.412001", + "exception": false, + "start_time": "2026-09-23T07:15:42.399000", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : la conjugaison Beta-Bernoulli rend le posterior lisible sans calcul\n", "\n", @@ -3821,10 +3981,10 @@ "id": "ab197347", "metadata": { "papermill": { - "duration": 0.018001, - "end_time": "2026-06-22T19:19:29.084357", + "duration": 0.066455, + "end_time": "2026-09-23T07:15:42.492078", "exception": false, - "start_time": "2026-06-22T19:19:29.066356", + "start_time": "2026-09-23T07:15:42.425623", "status": "completed" }, "tags": [] @@ -3852,19 +4012,19 @@ "id": "12e89991", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:29.121371Z", - "iopub.status.busy": "2026-06-22T19:19:29.121371Z", - "iopub.status.idle": "2026-06-22T19:19:29.162859Z", - "shell.execute_reply": "2026-06-22T19:19:29.162859Z" + "iopub.execute_input": "2026-09-23T07:15:42.566087Z", + "iopub.status.busy": "2026-09-23T07:15:42.565524Z", + "iopub.status.idle": "2026-09-23T07:15:42.627794Z", + "shell.execute_reply": "2026-09-23T07:15:42.627262Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.061501, - "end_time": "2026-06-22T19:19:29.162859", + "duration": 0.090718, + "end_time": "2026-09-23T07:15:42.627794", "exception": false, - "start_time": "2026-06-22T19:19:29.101358", + "start_time": "2026-09-23T07:15:42.537076", "status": "completed" }, "polyglot_notebook": { @@ -3924,10 +4084,10 @@ "id": "906e8477", "metadata": { "papermill": { - "duration": 0.017994, - "end_time": "2026-06-22T19:19:29.198858", + "duration": 0.022866, + "end_time": "2026-09-23T07:15:42.672795", "exception": false, - "start_time": "2026-06-22T19:19:29.180864", + "start_time": "2026-09-23T07:15:42.649929", "status": "completed" }, "tags": [] @@ -3951,16 +4111,16 @@ "id": "eb9d4e7e", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:19:29.237045Z", - "iopub.status.busy": "2026-06-22T19:19:29.237045Z", - "iopub.status.idle": "2026-06-22T19:19:29.281745Z", - "shell.execute_reply": "2026-06-22T19:19:29.281745Z" + "iopub.execute_input": "2026-09-23T07:15:42.731215Z", + "iopub.status.busy": "2026-09-23T07:15:42.730663Z", + "iopub.status.idle": "2026-09-23T07:15:42.793828Z", + "shell.execute_reply": "2026-09-23T07:15:42.792086Z" }, "papermill": { - "duration": 0.064961, - "end_time": "2026-06-22T19:19:29.282280", + "duration": 0.095112, + "end_time": "2026-09-23T07:15:42.793828", "exception": false, - "start_time": "2026-06-22T19:19:29.217319", + "start_time": "2026-09-23T07:15:42.698716", "status": "completed" }, "tags": [] @@ -4011,10 +4171,10 @@ "id": "466e4868", "metadata": { "papermill": { - "duration": 0.018004, - "end_time": "2026-06-22T19:19:29.318891", + "duration": 0.021718, + "end_time": "2026-09-23T07:15:42.838474", "exception": false, - "start_time": "2026-06-22T19:19:29.300887", + "start_time": "2026-09-23T07:15:42.816756", "status": "completed" }, "tags": [] @@ -4051,6 +4211,20 @@ } ], "metadata": { + "cost": { + "api_provider": "none", + "api_usd_est": 0.0, + "cpu_min": 7, + "external_account": null, + "free_alternative": null, + "gpu_required": false, + "metadata_written": null, + "network": false, + "notes": "Local execution via Infer.NET (Microsoft.Research.MachineLearning) probabilistic programming. Deterministic inference engines (Expectation Propagation / Variational Message Passing) converge to fixed points given the same model, data and seed. Requires .NET Interactive kernel + Infer.NET package installed. Execution is deterministic.", + "reduced_pedagogical": null, + "reproducibility": "HIGH", + "validator": "manual" + }, "kernelspec": { "display_name": ".NET (C#)", "language": "C#", @@ -4065,14 +4239,14 @@ }, "papermill": { "default_parameters": {}, - "duration": 9.956431, - "end_time": "2026-06-22T19:19:29.560251", + "duration": 12.103564, + "end_time": "2026-09-23T07:15:43.139840", "environment_variables": {}, "exception": null, "input_path": "DecInfer-03-Utility-Money.ipynb", "output_path": "DecInfer-03-Utility-Money.ipynb", "parameters": {}, - "start_time": "2026-06-22T19:19:19.603820", + "start_time": "2026-09-23T07:15:31.036276", "version": "2.6.0" }, "polyglot_notebook": { @@ -4086,22 +4260,8 @@ } ] } - }, - "cost": { - "api_usd_est": 0.0, - "api_provider": "none", - "cpu_min": 7, - "gpu_required": false, - "network": false, - "external_account": null, - "free_alternative": null, - "reduced_pedagogical": null, - "reproducibility": "HIGH", - "metadata_written": null, - "validator": "manual", - "notes": "Local execution via Infer.NET (Microsoft.Research.MachineLearning) probabilistic programming. Deterministic inference engines (Expectation Propagation / Variational Message Passing) converge to fixed points given the same model, data and seed. Requires .NET Interactive kernel + Infer.NET package installed. Execution is deterministic." } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-04-Multi-Attribute.ipynb b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-04-Multi-Attribute.ipynb index 40b4a66890..4829365205 100644 --- a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-04-Multi-Attribute.ipynb +++ b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-04-Multi-Attribute.ipynb @@ -5,10 +5,10 @@ "id": "81b16659", "metadata": { "papermill": { - "duration": 0.005249, - "end_time": "2026-07-31T19:54:58.134134", + "duration": 0.012748, + "end_time": "2026-09-23T07:19:56.267993", "exception": false, - "start_time": "2026-07-31T19:54:58.128885", + "start_time": "2026-09-23T07:19:56.255245", "status": "completed" }, "tags": [] @@ -44,10 +44,10 @@ "id": "160a89c0", "metadata": { "papermill": { - "duration": 0.003721, - "end_time": "2026-07-31T19:54:58.142007", + "duration": 0.01404, + "end_time": "2026-09-23T07:19:56.293628", "exception": false, - "start_time": "2026-07-31T19:54:58.138286", + "start_time": "2026-09-23T07:19:56.279588", "status": "completed" }, "tags": [] @@ -83,16 +83,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-31T19:54:58.159849Z", - "iopub.status.busy": "2026-07-31T19:54:58.154185Z", - "iopub.status.idle": "2026-07-31T19:55:01.685060Z", - "shell.execute_reply": "2026-07-31T19:55:01.678486Z" + "iopub.execute_input": "2026-09-23T07:19:56.330159Z", + "iopub.status.busy": "2026-09-23T07:19:56.325664Z", + "iopub.status.idle": "2026-09-23T07:20:00.281587Z", + "shell.execute_reply": "2026-09-23T07:20:00.273796Z" }, "papermill": { - "duration": 3.539218, - "end_time": "2026-07-31T19:55:01.685231", + "duration": 3.973106, + "end_time": "2026-09-23T07:20:00.281587", "exception": false, - "start_time": "2026-07-31T19:54:58.146013", + "start_time": "2026-09-23T07:19:56.308481", "status": "completed" }, "tags": [], @@ -102,23 +102,135 @@ }, "outputs": [ { - "output_type": "display_data", "data": { - "text/html": "" + "text/html": [ + "\r\n", + "
\r\n", + " \r\n", + " \r\n", + "
" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "display_data", "data": { - "text/html": "
Installing Packages
  • Microsoft.ML.Probabilistic
  • Microsoft.ML.Probabilistic.Compiler
" + "text/html": [ + "
Installed Packages
  • Microsoft.ML.Probabilistic, 0.4.2504.701
  • Microsoft.ML.Probabilistic.Compiler, 0.4.2504.701
" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", - "text": "Infer.NET charge !\r\n" + "output_type": "stream", + "text": [ + "Infer.NET charge !\r\n" + ] } ], "source": [ @@ -139,10 +251,10 @@ "id": "f6fea224", "metadata": { "papermill": { - "duration": 0.007844, - "end_time": "2026-07-31T19:55:01.701281", + "duration": 0.016668, + "end_time": "2026-09-23T07:20:00.312481", "exception": false, - "start_time": "2026-07-31T19:55:01.693437", + "start_time": "2026-09-23T07:20:00.295813", "status": "completed" }, "tags": [] @@ -157,19 +269,19 @@ "id": "6c990e0f", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:01.713937Z", - "iopub.status.busy": "2026-07-31T19:55:01.713719Z", - "iopub.status.idle": "2026-07-31T19:55:02.532141Z", - "shell.execute_reply": "2026-07-31T19:55:02.531850Z" + "iopub.execute_input": "2026-09-23T07:20:00.366131Z", + "iopub.status.busy": "2026-09-23T07:20:00.366131Z", + "iopub.status.idle": "2026-09-23T07:20:01.597784Z", + "shell.execute_reply": "2026-09-23T07:20:01.597231Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.825714, - "end_time": "2026-07-31T19:55:02.532298", + "duration": 1.268934, + "end_time": "2026-09-23T07:20:01.597784", "exception": false, - "start_time": "2026-07-31T19:55:01.706584", + "start_time": "2026-09-23T07:20:00.328850", "status": "completed" }, "polyglot_notebook": { @@ -182,14 +294,18 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "FactorGraphHelper charge !\r\n" + "output_type": "stream", + "text": [ + "FactorGraphHelper charge !\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Graphviz disponible : True\r\n" + "output_type": "stream", + "text": [ + "Graphviz disponible : True\r\n" + ] } ], "source": [ @@ -206,10 +322,10 @@ "id": "0888c796", "metadata": { "papermill": { - "duration": 0.005166, - "end_time": "2026-07-31T19:55:02.544792", + "duration": 0.019634, + "end_time": "2026-09-23T07:20:01.633736", "exception": false, - "start_time": "2026-07-31T19:55:02.539626", + "start_time": "2026-09-23T07:20:01.614102", "status": "completed" }, "tags": [] @@ -236,16 +352,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-31T19:55:02.557347Z", - "iopub.status.busy": "2026-07-31T19:55:02.557129Z", - "iopub.status.idle": "2026-07-31T19:55:02.690262Z", - "shell.execute_reply": "2026-07-31T19:55:02.690041Z" + "iopub.execute_input": "2026-09-23T07:20:01.668624Z", + "iopub.status.busy": "2026-09-23T07:20:01.668624Z", + "iopub.status.idle": "2026-09-23T07:20:01.847176Z", + "shell.execute_reply": "2026-09-23T07:20:01.847176Z" }, "papermill": { - "duration": 0.139051, - "end_time": "2026-07-31T19:55:02.690355", + "duration": 0.197885, + "end_time": "2026-09-23T07:20:01.847176", "exception": false, - "start_time": "2026-07-31T19:55:02.551304", + "start_time": "2026-09-23T07:20:01.649291", "status": "completed" }, "tags": [], @@ -255,39 +371,54 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Options disponibles :\n\r\n" + "output_type": "stream", + "text": [ + "Options disponibles :\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Nom | Prix | Securite | Conso | Confort\r\n" + "output_type": "stream", + "text": [ + "Nom | Prix | Securite | Conso | Confort\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------------|---------|----------|---------|--------\r\n" + "output_type": "stream", + "text": [ + "---------------|---------|----------|---------|--------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Economique A | 15 000 | 3 | 5,0 | 6\r\n" + "output_type": "stream", + "text": [ + "Economique A | 15 000 | 3 | 5,0 | 6\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Familiale B | 28 000 | 5 | 6,5 | 8\r\n" + "output_type": "stream", + "text": [ + "Familiale B | 28 000 | 5 | 6,5 | 8\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Sport C | 45 000 | 4 | 9,0 | 7\r\n" + "output_type": "stream", + "text": [ + "Sport C | 45 000 | 4 | 9,0 | 7\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Hybride D | 32 000 | 5 | 4,0 | 8\r\n" + "output_type": "stream", + "text": [ + "Hybride D | 32 000 | 5 | 4,0 | 8\r\n" + ] } ], "source": [ @@ -324,10 +455,10 @@ "id": "50bffe81", "metadata": { "papermill": { - "duration": 0.005587, - "end_time": "2026-07-31T19:55:02.702518", + "duration": 0.01606, + "end_time": "2026-09-23T07:20:01.875574", "exception": false, - "start_time": "2026-07-31T19:55:02.696931", + "start_time": "2026-09-23T07:20:01.859514", "status": "completed" }, "tags": [] @@ -352,10 +483,10 @@ "id": "c9482cde", "metadata": { "papermill": { - "duration": 0.006266, - "end_time": "2026-07-31T19:55:02.715178", + "duration": 0.016794, + "end_time": "2026-09-23T07:20:01.906584", "exception": false, - "start_time": "2026-07-31T19:55:02.708912", + "start_time": "2026-09-23T07:20:01.889790", "status": "completed" }, "tags": [] @@ -383,10 +514,10 @@ "id": "c1dac1e5", "metadata": { "papermill": { - "duration": 0.007565, - "end_time": "2026-07-31T19:55:02.726875", + "duration": 0.01403, + "end_time": "2026-09-23T07:20:01.933712", "exception": false, - "start_time": "2026-07-31T19:55:02.719310", + "start_time": "2026-09-23T07:20:01.919682", "status": "completed" }, "tags": [] @@ -439,16 +570,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-31T19:55:02.745562Z", - "iopub.status.busy": "2026-07-31T19:55:02.745143Z", - "iopub.status.idle": "2026-07-31T19:55:02.799571Z", - "shell.execute_reply": "2026-07-31T19:55:02.799395Z" + "iopub.execute_input": "2026-09-23T07:20:01.961430Z", + "iopub.status.busy": "2026-09-23T07:20:01.961430Z", + "iopub.status.idle": "2026-09-23T07:20:02.056533Z", + "shell.execute_reply": "2026-09-23T07:20:02.055527Z" }, "papermill": { - "duration": 0.06418, - "end_time": "2026-07-31T19:55:02.799642", + "duration": 0.109836, + "end_time": "2026-09-23T07:20:02.056533", "exception": false, - "start_time": "2026-07-31T19:55:02.735462", + "start_time": "2026-09-23T07:20:01.946697", "status": "completed" }, "tags": [], @@ -458,69 +589,98 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Test d'independance : Prix vs Securite\n\r\n" + "output_type": "stream", + "text": [ + "Test d'independance : Prix vs Securite\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Question : Preferez-vous A ou B ?\r\n" + "output_type": "stream", + "text": [ + "Question : Preferez-vous A ou B ?\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Contexte 1 (Securite = 3 etoiles) :\r\n" + "output_type": "stream", + "text": [ + "Contexte 1 (Securite = 3 etoiles) :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " A : Prix = 15000 EUR\r\n" + "output_type": "stream", + "text": [ + " A : Prix = 15000 EUR\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " B : Prix = 20000 EUR\r\n" + "output_type": "stream", + "text": [ + " B : Prix = 20000 EUR\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " => Vous preferez probablement A (moins cher)\n\r\n" + "output_type": "stream", + "text": [ + " => Vous preferez probablement A (moins cher)\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Contexte 2 (Securite = 5 etoiles) :\r\n" + "output_type": "stream", + "text": [ + "Contexte 2 (Securite = 5 etoiles) :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " A : Prix = 15000 EUR\r\n" + "output_type": "stream", + "text": [ + " A : Prix = 15000 EUR\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " B : Prix = 20000 EUR\r\n" + "output_type": "stream", + "text": [ + " B : Prix = 20000 EUR\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " => Preferez-vous toujours A ?\n\r\n" + "output_type": "stream", + "text": [ + " => Preferez-vous toujours A ?\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Si votre reponse est la meme dans les deux contextes,\r\n" + "output_type": "stream", + "text": [ + "Si votre reponse est la meme dans les deux contextes,\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "alors Prix et Securite sont preferentiellement independants.\r\n" + "output_type": "stream", + "text": [ + "alors Prix et Securite sont preferentiellement independants.\r\n" + ] } ], "source": [ @@ -551,10 +711,10 @@ "id": "c5722037", "metadata": { "papermill": { - "duration": 0.005673, - "end_time": "2026-07-31T19:55:02.810958", + "duration": 0.03895, + "end_time": "2026-09-23T07:20:02.117047", "exception": false, - "start_time": "2026-07-31T19:55:02.805285", + "start_time": "2026-09-23T07:20:02.078097", "status": "completed" }, "tags": [] @@ -585,10 +745,10 @@ "id": "e43bdd61", "metadata": { "papermill": { - "duration": 0.007789, - "end_time": "2026-07-31T19:55:02.827155", + "duration": 0.020324, + "end_time": "2026-09-23T07:20:02.181702", "exception": false, - "start_time": "2026-07-31T19:55:02.819366", + "start_time": "2026-09-23T07:20:02.161378", "status": "completed" }, "tags": [] @@ -606,16 +766,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-31T19:55:02.844431Z", - "iopub.status.busy": "2026-07-31T19:55:02.844248Z", - "iopub.status.idle": "2026-07-31T19:55:02.966455Z", - "shell.execute_reply": "2026-07-31T19:55:02.966256Z" + "iopub.execute_input": "2026-09-23T07:20:02.218093Z", + "iopub.status.busy": "2026-09-23T07:20:02.217553Z", + "iopub.status.idle": "2026-09-23T07:20:02.410306Z", + "shell.execute_reply": "2026-09-23T07:20:02.409306Z" }, "papermill": { - "duration": 0.132886, - "end_time": "2026-07-31T19:55:02.966539", + "duration": 0.210515, + "end_time": "2026-09-23T07:20:02.410306", "exception": false, - "start_time": "2026-07-31T19:55:02.833653", + "start_time": "2026-09-23T07:20:02.199791", "status": "completed" }, "tags": [], @@ -625,44 +785,62 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Poids : Prix=35 %, Securite=30 %, Conso=20 %, Confort=15 %\n\r\n" + "output_type": "stream", + "text": [ + "Poids : Prix=35 %, Securite=30 %, Conso=20 %, Confort=15 %\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Voiture | v_prix | v_sec | v_conso | v_conf | V_total\r\n" + "output_type": "stream", + "text": [ + "Voiture | v_prix | v_sec | v_conso | v_conf | V_total\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------------|--------|--------|---------|--------|--------\r\n" + "output_type": "stream", + "text": [ + "---------------|--------|--------|---------|--------|--------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Economique A | 1,000 | 0,500 | 0,833 | 0,556 | 0,750\r\n" + "output_type": "stream", + "text": [ + "Economique A | 1,000 | 0,500 | 0,833 | 0,556 | 0,750\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Familiale B | 0,567 | 1,000 | 0,583 | 0,778 | 0,732\r\n" + "output_type": "stream", + "text": [ + "Familiale B | 0,567 | 1,000 | 0,583 | 0,778 | 0,732\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Sport C | 0,000 | 0,750 | 0,167 | 0,667 | 0,358\r\n" + "output_type": "stream", + "text": [ + "Sport C | 0,000 | 0,750 | 0,167 | 0,667 | 0,358\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Hybride D | 0,433 | 1,000 | 1,000 | 0,778 | 0,768\r\n" + "output_type": "stream", + "text": [ + "Hybride D | 0,433 | 1,000 | 1,000 | 0,778 | 0,768\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\n=> Meilleur choix : Hybride D\r\n" + "output_type": "stream", + "text": [ + "\n", + "=> Meilleur choix : Hybride D\r\n" + ] } ], "source": [ @@ -732,7 +910,16 @@ { "cell_type": "markdown", "id": "5d8603aa", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.014072, + "end_time": "2026-09-23T07:20:02.441845", + "exception": false, + "start_time": "2026-09-23T07:20:02.427773", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : pourquoi l'Hybride D gagne — et pourquoi la Sport C s'effondre\n", "\n", @@ -745,19 +932,19 @@ "id": "dd5cf5c4", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:02.991935Z", - "iopub.status.busy": "2026-07-31T19:55:02.991672Z", - "iopub.status.idle": "2026-07-31T19:55:03.059831Z", - "shell.execute_reply": "2026-07-31T19:55:03.059568Z" + "iopub.execute_input": "2026-09-23T07:20:02.476644Z", + "iopub.status.busy": "2026-09-23T07:20:02.476644Z", + "iopub.status.idle": "2026-09-23T07:20:02.607021Z", + "shell.execute_reply": "2026-09-23T07:20:02.607021Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.075886, - "end_time": "2026-07-31T19:55:03.059963", + "duration": 0.148767, + "end_time": "2026-09-23T07:20:02.607021", "exception": false, - "start_time": "2026-07-31T19:55:02.984077", + "start_time": "2026-09-23T07:20:02.458254", "status": "completed" }, "polyglot_notebook": { @@ -770,69 +957,95 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Decomposition de la valeur multi-attributs :\r\n" + "output_type": "stream", + "text": [ + "Decomposition de la valeur multi-attributs :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Voiture | Prix | Securite | Conso | Confort | Contributions\r\n" + "output_type": "stream", + "text": [ + "Voiture | Prix | Securite | Conso | Confort | Contributions\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " | (w=35%) | (w=30%) | (w=20%) | (w=15%) | ponderees\r\n" + "output_type": "stream", + "text": [ + " | (w=35%) | (w=30%) | (w=20%) | (w=15%) | ponderees\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------------|---------|----------|---------|---------|---------------\r\n" + "output_type": "stream", + "text": [ + "---------------|---------|----------|---------|---------|---------------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Economique A | 0,350 | 0,150 | 0,167 | 0,083 | V=0,750\r\n" + "output_type": "stream", + "text": [ + "Economique A | 0,350 | 0,150 | 0,167 | 0,083 | V=0,750\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Familiale B | 0,198 | 0,300 | 0,117 | 0,117 | V=0,732\r\n" + "output_type": "stream", + "text": [ + "Familiale B | 0,198 | 0,300 | 0,117 | 0,117 | V=0,732\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Sport C | 0,000 | 0,225 | 0,033 | 0,100 | V=0,358\r\n" + "output_type": "stream", + "text": [ + "Sport C | 0,000 | 0,225 | 0,033 | 0,100 | V=0,358\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Hybride D | 0,152 | 0,300 | 0,200 | 0,117 | V=0,768\r\n" + "output_type": "stream", + "text": [ + "Hybride D | 0,152 | 0,300 | 0,200 | 0,117 | V=0,768\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Interpretation :\r\n" + "output_type": "stream", + "text": [ + "Interpretation :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - Chaque colonne = contribution ponderee de l'attribut (wi * vi)\r\n" + "output_type": "stream", + "text": [ + " - Chaque colonne = contribution ponderee de l'attribut (wi * vi)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - V total = somme des contributions\r\n" + "output_type": "stream", + "text": [ + " - V total = somme des contributions\r\n" + ] } ], "source": [ @@ -869,7 +1082,16 @@ { "cell_type": "markdown", "id": "e9ee4a85", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.01762, + "end_time": "2026-09-23T07:20:02.642981", + "exception": false, + "start_time": "2026-09-23T07:20:02.625361", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture du budget de valeur : chaque ligne est un bilan de contributions\n", "\n", @@ -881,10 +1103,10 @@ "id": "8c954d69", "metadata": { "papermill": { - "duration": 0.006392, - "end_time": "2026-07-31T19:55:03.072156", + "duration": 0.015913, + "end_time": "2026-09-23T07:20:02.677472", "exception": false, - "start_time": "2026-07-31T19:55:03.065764", + "start_time": "2026-09-23T07:20:02.661559", "status": "completed" }, "tags": [] @@ -930,19 +1152,19 @@ "id": "fcc5d83c", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:03.086262Z", - "iopub.status.busy": "2026-07-31T19:55:03.086064Z", - "iopub.status.idle": "2026-07-31T19:55:03.181141Z", - "shell.execute_reply": "2026-07-31T19:55:03.180848Z" + "iopub.execute_input": "2026-09-23T07:20:02.714663Z", + "iopub.status.busy": "2026-09-23T07:20:02.713652Z", + "iopub.status.idle": "2026-09-23T07:20:02.873091Z", + "shell.execute_reply": "2026-09-23T07:20:02.872063Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.102333, - "end_time": "2026-07-31T19:55:03.181273", + "duration": 0.180898, + "end_time": "2026-09-23T07:20:02.873091", "exception": false, - "start_time": "2026-07-31T19:55:03.078940", + "start_time": "2026-09-23T07:20:02.692193", "status": "completed" }, "polyglot_notebook": { @@ -955,84 +1177,120 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Situation de depart (pire option) :\n\r\n" + "output_type": "stream", + "text": [ + "Situation de depart (pire option) :\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Prix : 45000 EUR (maximum)\r\n" + "output_type": "stream", + "text": [ + " Prix : 45000 EUR (maximum)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Securite : 1 etoile (minimum)\r\n" + "output_type": "stream", + "text": [ + " Securite : 1 etoile (minimum)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Consommation : 10 L/100km (maximum)\r\n" + "output_type": "stream", + "text": [ + " Consommation : 10 L/100km (maximum)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Confort : 1/10 (minimum)\r\n" + "output_type": "stream", + "text": [ + " Confort : 1/10 (minimum)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Classez les swings suivants par ordre de preference :\n\r\n" + "output_type": "stream", + "text": [ + "Classez les swings suivants par ordre de preference :\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " A) Prix : 45000 -> 15000 (economie de 30000 EUR)\r\n" + "output_type": "stream", + "text": [ + " A) Prix : 45000 -> 15000 (economie de 30000 EUR)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " B) Securite : 1 -> 5 etoiles\r\n" + "output_type": "stream", + "text": [ + " B) Securite : 1 -> 5 etoiles\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " C) Consommation : 10 -> 4 L/100km\r\n" + "output_type": "stream", + "text": [ + " C) Consommation : 10 -> 4 L/100km\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " D) Confort : 1 -> 10\n\r\n" + "output_type": "stream", + "text": [ + " D) Confort : 1 -> 10\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Points swing et poids normalises :\n\r\n" + "output_type": "stream", + "text": [ + "Points swing et poids normalises :\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Securite : 100 points => poids = 35,7 %\r\n" + "output_type": "stream", + "text": [ + " Securite : 100 points => poids = 35,7 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Prix : 90 points => poids = 32,1 %\r\n" + "output_type": "stream", + "text": [ + " Prix : 90 points => poids = 32,1 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Consommation : 50 points => poids = 17,9 %\r\n" + "output_type": "stream", + "text": [ + " Consommation : 50 points => poids = 17,9 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Confort : 40 points => poids = 14,3 %\r\n" + "output_type": "stream", + "text": [ + " Confort : 40 points => poids = 14,3 %\r\n" + ] } ], "source": [ @@ -1074,10 +1332,10 @@ "id": "6495d3f3", "metadata": { "papermill": { - "duration": 0.005889, - "end_time": "2026-07-31T19:55:03.193781", + "duration": 0.01714, + "end_time": "2026-09-23T07:20:02.909224", "exception": false, - "start_time": "2026-07-31T19:55:03.187892", + "start_time": "2026-09-23T07:20:02.892084", "status": "completed" }, "tags": [] @@ -1111,25 +1369,27 @@ "id": "778a8589", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:03.205777Z", - "iopub.status.busy": "2026-07-31T19:55:03.205604Z", - "iopub.status.idle": "2026-07-31T19:55:03.296362Z", - "shell.execute_reply": "2026-07-31T19:55:03.296156Z" + "iopub.execute_input": "2026-09-23T07:20:02.944351Z", + "iopub.status.busy": "2026-09-23T07:20:02.944351Z", + "iopub.status.idle": "2026-09-23T07:20:03.062175Z", + "shell.execute_reply": "2026-09-23T07:20:03.061651Z" }, "papermill": { - "duration": 0.097034, - "end_time": "2026-07-31T19:55:03.296430", + "duration": 0.134961, + "end_time": "2026-09-23T07:20:03.062175", "exception": false, - "start_time": "2026-07-31T19:55:03.199396", + "start_time": "2026-09-23T07:20:02.927214", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice a completer : swing weights et classement des appartements\r\n" + "output_type": "stream", + "text": [ + "Exercice a completer : swing weights et classement des appartements\r\n" + ] } ], "source": [ @@ -1170,10 +1430,10 @@ "id": "5d65859b", "metadata": { "papermill": { - "duration": 0.007803, - "end_time": "2026-07-31T19:55:03.310544", + "duration": 0.017045, + "end_time": "2026-09-23T07:20:03.097559", "exception": false, - "start_time": "2026-07-31T19:55:03.302741", + "start_time": "2026-09-23T07:20:03.080514", "status": "completed" }, "tags": [] @@ -1216,19 +1476,19 @@ "id": "bfe56305", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:03.332078Z", - "iopub.status.busy": "2026-07-31T19:55:03.331431Z", - "iopub.status.idle": "2026-07-31T19:55:03.480117Z", - "shell.execute_reply": "2026-07-31T19:55:03.479694Z" + "iopub.execute_input": "2026-09-23T07:20:03.149362Z", + "iopub.status.busy": "2026-09-23T07:20:03.148361Z", + "iopub.status.idle": "2026-09-23T07:20:03.365557Z", + "shell.execute_reply": "2026-09-23T07:20:03.364538Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.158633, - "end_time": "2026-07-31T19:55:03.480198", + "duration": 0.247187, + "end_time": "2026-09-23T07:20:03.365879", "exception": false, - "start_time": "2026-07-31T19:55:03.321565", + "start_time": "2026-09-23T07:20:03.118692", "status": "completed" }, "polyglot_notebook": { @@ -1241,39 +1501,53 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Poids : k1=0.4, k2=0.35, k3=0.35 (sum = 1.1)\r\n" + "output_type": "stream", + "text": [ + "Poids : k1=0.4, k2=0.35, k3=0.35 (sum = 1.1)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Facteur K calcule : -0,2565\r\n" + "output_type": "stream", + "text": [ + "Facteur K calcule : -0,2565\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Comparaison des formes :\r\n" + "output_type": "stream", + "text": [ + "Comparaison des formes :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " u = (1,1,1) : U_mult = 1,000\r\n" + "output_type": "stream", + "text": [ + " u = (1,1,1) : U_mult = 1,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " u = (1,0.5,0.5) : U_mult = 0,707\r\n" + "output_type": "stream", + "text": [ + " u = (1,0.5,0.5) : U_mult = 0,707\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " u = (0.5,0.5,0.5) : U_mult = 0,525\r\n" + "output_type": "stream", + "text": [ + " u = (0.5,0.5,0.5) : U_mult = 0,525\r\n" + ] } ], "source": [ @@ -1367,7 +1641,16 @@ { "cell_type": "markdown", "id": "47c1b8ab", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.01886, + "end_time": "2026-09-23T07:20:03.403293", + "exception": false, + "start_time": "2026-09-23T07:20:03.384433", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : K = −0,26 — des attributs substituts, pas complémentaires\n", "\n", @@ -1380,19 +1663,19 @@ "id": "783ea88e", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:03.511600Z", - "iopub.status.busy": "2026-07-31T19:55:03.511416Z", - "iopub.status.idle": "2026-07-31T19:55:03.630786Z", - "shell.execute_reply": "2026-07-31T19:55:03.630557Z" + "iopub.execute_input": "2026-09-23T07:20:03.437973Z", + "iopub.status.busy": "2026-09-23T07:20:03.437973Z", + "iopub.status.idle": "2026-09-23T07:20:03.606717Z", + "shell.execute_reply": "2026-09-23T07:20:03.606717Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.126662, - "end_time": "2026-07-31T19:55:03.630864", + "duration": 0.185529, + "end_time": "2026-09-23T07:20:03.607226", "exception": false, - "start_time": "2026-07-31T19:55:03.504202", + "start_time": "2026-09-23T07:20:03.421697", "status": "completed" }, "polyglot_notebook": { @@ -1405,59 +1688,81 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Comparaison forme additive vs multiplicative :\r\n" + "output_type": "stream", + "text": [ + "Comparaison forme additive vs multiplicative :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Poids : w1=0.5, w2=0.5, K=0,0000\r\n" + "output_type": "stream", + "text": [ + "Poids : w1=0.5, w2=0.5, K=0,0000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Scenario | U Additif | U Multiplicatif | Diff\r\n" + "output_type": "stream", + "text": [ + "Scenario | U Additif | U Multiplicatif | Diff\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "-------------------------|-----------|-----------------|------\r\n" + "output_type": "stream", + "text": [ + "-------------------------|-----------|-----------------|------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Bon X, mauvais Y | 0,550 | 0,550 | 0,000\r\n" + "output_type": "stream", + "text": [ + "Bon X, mauvais Y | 0,550 | 0,550 | 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Mauvais X, bon Y | 0,550 | 0,550 | 0,000\r\n" + "output_type": "stream", + "text": [ + "Mauvais X, bon Y | 0,550 | 0,550 | 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Mediocre partout | 0,500 | 0,500 | 0,000\r\n" + "output_type": "stream", + "text": [ + "Mediocre partout | 0,500 | 0,500 | 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Excellent partout | 0,900 | 0,900 | 0,000\r\n" + "output_type": "stream", + "text": [ + "Excellent partout | 0,900 | 0,900 | 0,000\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "K = 0 : Forme additive (pas d'interaction)\r\n" + "output_type": "stream", + "text": [ + "K = 0 : Forme additive (pas d'interaction)\r\n" + ] } ], "source": [ @@ -1503,7 +1808,16 @@ { "cell_type": "markdown", "id": "8848277b", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.021645, + "end_time": "2026-09-23T07:20:03.646658", + "exception": false, + "start_time": "2026-09-23T07:20:03.625013", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : un tableau volontairement dégénéré — K = 0 fait coïncider les deux formes\n", "\n", @@ -1515,10 +1829,10 @@ "id": "91d1ef13", "metadata": { "papermill": { - "duration": 0.00623, - "end_time": "2026-07-31T19:55:03.643789", + "duration": 0.019982, + "end_time": "2026-09-23T07:20:03.687306", "exception": false, - "start_time": "2026-07-31T19:55:03.637559", + "start_time": "2026-09-23T07:20:03.667324", "status": "completed" }, "tags": [] @@ -1544,10 +1858,10 @@ "id": "ef7a7098", "metadata": { "papermill": { - "duration": 0.006522, - "end_time": "2026-07-31T19:55:03.660269", + "duration": 0.019592, + "end_time": "2026-09-23T07:20:03.726057", "exception": false, - "start_time": "2026-07-31T19:55:03.653747", + "start_time": "2026-09-23T07:20:03.706465", "status": "completed" }, "tags": [] @@ -1586,25 +1900,27 @@ "id": "dcdd4fe6", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:03.675338Z", - "iopub.status.busy": "2026-07-31T19:55:03.675152Z", - "iopub.status.idle": "2026-07-31T19:55:03.726221Z", - "shell.execute_reply": "2026-07-31T19:55:03.725914Z" + "iopub.execute_input": "2026-09-23T07:20:03.769287Z", + "iopub.status.busy": "2026-09-23T07:20:03.768983Z", + "iopub.status.idle": "2026-09-23T07:20:03.844014Z", + "shell.execute_reply": "2026-09-23T07:20:03.843013Z" }, "papermill": { - "duration": 0.058586, - "end_time": "2026-07-31T19:55:03.726378", + "duration": 0.09863, + "end_time": "2026-09-23T07:20:03.844014", "exception": false, - "start_time": "2026-07-31T19:55:03.667792", + "start_time": "2026-09-23T07:20:03.745384", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice a completer : forme multiplicative pour choix d'investissement\r\n" + "output_type": "stream", + "text": [ + "Exercice a completer : forme multiplicative pour choix d'investissement\r\n" + ] } ], "source": [ @@ -1640,19 +1956,19 @@ "id": "f94b3ca0", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:03.746044Z", - "iopub.status.busy": "2026-07-31T19:55:03.745638Z", - "iopub.status.idle": "2026-07-31T19:55:03.935172Z", - "shell.execute_reply": "2026-07-31T19:55:03.934856Z" + "iopub.execute_input": "2026-09-23T07:20:03.896007Z", + "iopub.status.busy": "2026-09-23T07:20:03.894983Z", + "iopub.status.idle": "2026-09-23T07:20:04.096854Z", + "shell.execute_reply": "2026-09-23T07:20:04.096854Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.201501, - "end_time": "2026-07-31T19:55:03.935327", + "duration": 0.226162, + "end_time": "2026-09-23T07:20:04.096854", "exception": false, - "start_time": "2026-07-31T19:55:03.733826", + "start_time": "2026-09-23T07:20:03.870692", "status": "completed" }, "polyglot_notebook": { @@ -1665,59 +1981,83 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "=== SMART : Choix de Carriere ===\r\n" + "output_type": "stream", + "text": [ + "=== SMART : Choix de Carriere ===\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Poids : Salaire=30 %, Equilibre=25 %, \r\n" + "output_type": "stream", + "text": [ + "Poids : Salaire=30 %, Equilibre=25 %, \r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Passion=25 %, Securite=20 %\n\r\n" + "output_type": "stream", + "text": [ + " Passion=25 %, Securite=20 %\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Carriere | v_sal | v_wlb | v_pas | v_sec | V_total\r\n" + "output_type": "stream", + "text": [ + "Carriere | v_sal | v_wlb | v_pas | v_sec | V_total\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "-------------------|-------|-------|-------|-------|--------\r\n" + "output_type": "stream", + "text": [ + "-------------------|-------|-------|-------|-------|--------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Startup | 0,400 | 0,222 | 0,889 | 0,333 | 0,464\r\n" + "output_type": "stream", + "text": [ + "Startup | 0,400 | 0,222 | 0,889 | 0,333 | 0,464\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Grande Entreprise | 0,800 | 0,556 | 0,444 | 0,778 | 0,646\r\n" + "output_type": "stream", + "text": [ + "Grande Entreprise | 0,800 | 0,556 | 0,444 | 0,778 | 0,646\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Fonction Publique | 0,120 | 0,778 | 0,333 | 1,000 | 0,514\r\n" + "output_type": "stream", + "text": [ + "Fonction Publique | 0,120 | 0,778 | 0,333 | 1,000 | 0,514\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Freelance | 1,000 | 0,444 | 0,778 | 0,222 | 0,650\r\n" + "output_type": "stream", + "text": [ + "Freelance | 1,000 | 0,444 | 0,778 | 0,222 | 0,650\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Recherche | 0,000 | 0,667 | 1,000 | 0,556 | 0,528\r\n" + "output_type": "stream", + "text": [ + "Recherche | 0,000 | 0,667 | 1,000 | 0,556 | 0,528\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\n=> Meilleur choix avec ces poids : Freelance (V = 0,650)\r\n" + "output_type": "stream", + "text": [ + "\n", + "=> Meilleur choix avec ces poids : Freelance (V = 0,650)\r\n" + ] } ], "source": [ @@ -1791,10 +2131,10 @@ "id": "31f61f2b", "metadata": { "papermill": { - "duration": 0.010532, - "end_time": "2026-07-31T19:55:03.958604", + "duration": 0.020386, + "end_time": "2026-09-23T07:20:04.138273", "exception": false, - "start_time": "2026-07-31T19:55:03.948072", + "start_time": "2026-09-23T07:20:04.117887", "status": "completed" }, "tags": [] @@ -1809,19 +2149,19 @@ "id": "916a69f8", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:03.987772Z", - "iopub.status.busy": "2026-07-31T19:55:03.987406Z", - "iopub.status.idle": "2026-07-31T19:55:04.095239Z", - "shell.execute_reply": "2026-07-31T19:55:04.095094Z" + "iopub.execute_input": "2026-09-23T07:20:04.183622Z", + "iopub.status.busy": "2026-09-23T07:20:04.183622Z", + "iopub.status.idle": "2026-09-23T07:20:04.308926Z", + "shell.execute_reply": "2026-09-23T07:20:04.308926Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.122933, - "end_time": "2026-07-31T19:55:04.095307", + "duration": 0.149501, + "end_time": "2026-09-23T07:20:04.309451", "exception": false, - "start_time": "2026-07-31T19:55:03.972374", + "start_time": "2026-09-23T07:20:04.159950", "status": "completed" }, "polyglot_notebook": { @@ -1834,59 +2174,81 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Profils de carriere - Comparaison multi-attributs :\r\n" + "output_type": "stream", + "text": [ + "Profils de carriere - Comparaison multi-attributs :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Carriere | Salaire | Equilibre | Passion | Securite | Score\r\n" + "output_type": "stream", + "text": [ + "Carriere | Salaire | Equilibre | Passion | Securite | Score\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "-------------------|---------|-----------|---------|----------|------\r\n" + "output_type": "stream", + "text": [ + "-------------------|---------|-----------|---------|----------|------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Startup | 0,40 | 0,22 | 0,89 | 0,33 | 0,464\r\n" + "output_type": "stream", + "text": [ + "Startup | 0,40 | 0,22 | 0,89 | 0,33 | 0,464\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Grande Entreprise | 0,80 | 0,56 | 0,44 | 0,78 | 0,646\r\n" + "output_type": "stream", + "text": [ + "Grande Entreprise | 0,80 | 0,56 | 0,44 | 0,78 | 0,646\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Fonction Publique | 0,12 | 0,78 | 0,33 | 1,00 | 0,514\r\n" + "output_type": "stream", + "text": [ + "Fonction Publique | 0,12 | 0,78 | 0,33 | 1,00 | 0,514\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Freelance | 1,00 | 0,44 | 0,78 | 0,22 | 0,650\r\n" + "output_type": "stream", + "text": [ + "Freelance | 1,00 | 0,44 | 0,78 | 0,22 | 0,650\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Recherche | 0,00 | 0,67 | 1,00 | 0,56 | 0,528\r\n" + "output_type": "stream", + "text": [ + "Recherche | 0,00 | 0,67 | 1,00 | 0,56 | 0,528\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Poids : Salaire=30 %, Equilibre=25 %, Passion=25 %, Securite=20 %\r\n" + "output_type": "stream", + "text": [ + "Poids : Salaire=30 %, Equilibre=25 %, Passion=25 %, Securite=20 %\r\n" + ] } ], "source": [ @@ -1921,10 +2283,10 @@ "id": "bd6ba353", "metadata": { "papermill": { - "duration": 0.00762, - "end_time": "2026-07-31T19:55:04.111171", + "duration": 0.022732, + "end_time": "2026-09-23T07:20:04.355189", "exception": false, - "start_time": "2026-07-31T19:55:04.103551", + "start_time": "2026-09-23T07:20:04.332457", "status": "completed" }, "tags": [] @@ -1943,19 +2305,19 @@ "id": "b8c085ef", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:04.126613Z", - "iopub.status.busy": "2026-07-31T19:55:04.126278Z", - "iopub.status.idle": "2026-07-31T19:55:04.228754Z", - "shell.execute_reply": "2026-07-31T19:55:04.228402Z" + "iopub.execute_input": "2026-09-23T07:20:04.401879Z", + "iopub.status.busy": "2026-09-23T07:20:04.401369Z", + "iopub.status.idle": "2026-09-23T07:20:04.531088Z", + "shell.execute_reply": "2026-09-23T07:20:04.530082Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.110838, - "end_time": "2026-07-31T19:55:04.228901", + "duration": 0.153451, + "end_time": "2026-09-23T07:20:04.531088", "exception": false, - "start_time": "2026-07-31T19:55:04.118063", + "start_time": "2026-09-23T07:20:04.377637", "status": "completed" }, "polyglot_notebook": { @@ -1968,54 +2330,75 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Analyse de sensibilite : poids du Salaire\n\r\n" + "output_type": "stream", + "text": [ + "Analyse de sensibilite : poids du Salaire\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "w_salaire | Meilleur choix | V_meilleur\r\n" + "output_type": "stream", + "text": [ + "w_salaire | Meilleur choix | V_meilleur\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "----------|----------------------|-----------\r\n" + "output_type": "stream", + "text": [ + "----------|----------------------|-----------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 10 % | Recherche | 0,679\r\n" + "output_type": "stream", + "text": [ + " 10 % | Recherche | 0,679\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 20 % | Grande Entreprise | 0,623\r\n" + "output_type": "stream", + "text": [ + " 20 % | Grande Entreprise | 0,623\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 30 % | Freelance | 0,650\r\n" + "output_type": "stream", + "text": [ + " 30 % | Freelance | 0,650\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 40 % | Freelance | 0,700\r\n" + "output_type": "stream", + "text": [ + " 40 % | Freelance | 0,700\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 50 % | Freelance | 0,750\r\n" + "output_type": "stream", + "text": [ + " 50 % | Freelance | 0,750\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=> Le choix optimal change selon l'importance accordee au salaire.\r\n" + "output_type": "stream", + "text": [ + "=> Le choix optimal change selon l'importance accordee au salaire.\r\n" + ] } ], "source": [ @@ -2055,11 +2438,20 @@ { "cell_type": "markdown", "id": "7d0c9e76", - "metadata": {}, - "source": [ - "### Lecture : trois gagnants pour un même jeu de données — la décision tient à un poids\n", - "\n", - "Le choix optimal change **deux fois** de gagnant sur la plage : **Recherche** tant que le poids du salaire reste bas (10 % : sa passion 1,000 et son équilibre 0,667 portent, malgré le salaire 0,000), **Grande Entreprise** sur la bande intermédiaire (~20-25 % — le profil le plus plat de la table : 0,80 / 0,56 / 0,44 / 0,78, jamais extrême), puis **Freelance** au-delà (~25-30 % : son salaire 1,000 prend le dessus). Aucune de ces réponses n'est « la » bonne : chacune est optimale **pour des préférences différentes** — c'est la réponse honnête à « quelle carrière choisir ? » quand le poids du salaire est mal connu. La question opérationnelle devient : *mon choix est-il robuste ?* Si votre poids de salaire estimé est 30 % mais que votre vraie préférence pourrait être 20 %, la décision change de gagnant — d'où l'intérêt de la fin du notebook, où l'inférence bayésienne **estime** les poids depuis des choix observés au lieu de les demander. Dix ou vingt choix observés resserreraient le posterior autour des poids révélés, et diraient si l'écart entre déclaré et révélé se referme avec la pratique." + "metadata": { + "papermill": { + "duration": 0.022843, + "end_time": "2026-09-23T07:20:04.583815", + "exception": false, + "start_time": "2026-09-23T07:20:04.560972", + "status": "completed" + }, + "tags": [] + }, + "source": [ + "### Lecture : trois gagnants pour un même jeu de données — la décision tient à un poids\n", + "\n", + "Le choix optimal change **deux fois** de gagnant sur la plage : **Recherche** tant que le poids du salaire reste bas (10 % : sa passion 1,000 et son équilibre 0,667 portent, malgré le salaire 0,000), **Grande Entreprise** sur la bande intermédiaire (~20-25 % — le profil le plus plat de la table : 0,80 / 0,56 / 0,44 / 0,78, jamais extrême), puis **Freelance** au-delà (~25-30 % : son salaire 1,000 prend le dessus). Aucune de ces réponses n'est « la » bonne : chacune est optimale **pour des préférences différentes** — c'est la réponse honnête à « quelle carrière choisir ? » quand le poids du salaire est mal connu. La question opérationnelle devient : *mon choix est-il robuste ?* Si votre poids de salaire estimé est 30 % mais que votre vraie préférence pourrait être 20 %, la décision change de gagnant — d'où l'intérêt de la fin du notebook, où l'inférence bayésienne **estime** les poids depuis des choix observés au lieu de les demander. Dix ou vingt choix observés resserreraient le posterior autour des poids révélés, et diraient si l'écart entre déclaré et révélé se referme avec la pratique." ] }, { @@ -2068,19 +2460,19 @@ "id": "d64b578e", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:04.268340Z", - "iopub.status.busy": "2026-07-31T19:55:04.267830Z", - "iopub.status.idle": "2026-07-31T19:55:04.402932Z", - "shell.execute_reply": "2026-07-31T19:55:04.398142Z" + "iopub.execute_input": "2026-09-23T07:20:04.627969Z", + "iopub.status.busy": "2026-09-23T07:20:04.627969Z", + "iopub.status.idle": "2026-09-23T07:20:04.840338Z", + "shell.execute_reply": "2026-09-23T07:20:04.814382Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.143406, - "end_time": "2026-07-31T19:55:04.403059", + "duration": 0.235054, + "end_time": "2026-09-23T07:20:04.840338", "exception": false, - "start_time": "2026-07-31T19:55:04.259653", + "start_time": "2026-09-23T07:20:04.605284", "status": "completed" }, "polyglot_notebook": { @@ -2093,474 +2485,662 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Tableau de sensibilite : V selon le poids du Salaire\r\n" + "output_type": "stream", + "text": [ + "Tableau de sensibilite : V selon le poids du Salaire\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "w_salaire |" + "output_type": "stream", + "text": [ + "w_salaire |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Startup |" + "output_type": "stream", + "text": [ + "Startup |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Grande E |" + "output_type": "stream", + "text": [ + "Grande E |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Fonction |" + "output_type": "stream", + "text": [ + "Fonction |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Freelanc |" + "output_type": "stream", + "text": [ + "Freelanc |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Recherch |" + "output_type": "stream", + "text": [ + "Recherch |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "-----------|" + "output_type": "stream", + "text": [ + "-----------|" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------|" + "output_type": "stream", + "text": [ + "---------|" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------|" + "output_type": "stream", + "text": [ + "---------|" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------|" + "output_type": "stream", + "text": [ + "---------|" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------|" + "output_type": "stream", + "text": [ + "---------|" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "---------|" + "output_type": "stream", + "text": [ + "---------|" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 10 % |" + "output_type": "stream", + "text": [ + " 10 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,483 |" + "output_type": "stream", + "text": [ + " 0,483 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,601 |" + "output_type": "stream", + "text": [ + " 0,601 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,626 |" + "output_type": "stream", + "text": [ + " 0,626 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,550 |" + "output_type": "stream", + "text": [ + " 0,550 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,679 |" + "output_type": "stream", + "text": [ + " 0,679 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Recherche" + "output_type": "stream", + "text": [ + " <-- Recherche" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 15 % |" + "output_type": "stream", + "text": [ + " 15 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,478 |" + "output_type": "stream", + "text": [ + " 0,478 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,612 |" + "output_type": "stream", + "text": [ + " 0,612 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,598 |" + "output_type": "stream", + "text": [ + " 0,598 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,575 |" + "output_type": "stream", + "text": [ + " 0,575 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,641 |" + "output_type": "stream", + "text": [ + " 0,641 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Recherche" + "output_type": "stream", + "text": [ + " <-- Recherche" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 20 % |" + "output_type": "stream", + "text": [ + " 20 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,474 |" + "output_type": "stream", + "text": [ + " 0,474 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,623 |" + "output_type": "stream", + "text": [ + " 0,623 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,570 |" + "output_type": "stream", + "text": [ + " 0,570 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,600 |" + "output_type": "stream", + "text": [ + " 0,600 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,603 |" + "output_type": "stream", + "text": [ + " 0,603 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Grande Entreprise" + "output_type": "stream", + "text": [ + " <-- Grande Entreprise" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 25 % |" + "output_type": "stream", + "text": [ + " 25 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,469 |" + "output_type": "stream", + "text": [ + " 0,469 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,635 |" + "output_type": "stream", + "text": [ + " 0,635 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,542 |" + "output_type": "stream", + "text": [ + " 0,542 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,625 |" + "output_type": "stream", + "text": [ + " 0,625 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,565 |" + "output_type": "stream", + "text": [ + " 0,565 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Grande Entreprise" + "output_type": "stream", + "text": [ + " <-- Grande Entreprise" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 30 % |" + "output_type": "stream", + "text": [ + " 30 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,464 |" + "output_type": "stream", + "text": [ + " 0,464 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,646 |" + "output_type": "stream", + "text": [ + " 0,646 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,514 |" + "output_type": "stream", + "text": [ + " 0,514 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,650 |" + "output_type": "stream", + "text": [ + " 0,650 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,528 |" + "output_type": "stream", + "text": [ + " 0,528 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Freelance" + "output_type": "stream", + "text": [ + " <-- Freelance" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 35 % |" + "output_type": "stream", + "text": [ + " 35 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,460 |" + "output_type": "stream", + "text": [ + " 0,460 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,657 |" + "output_type": "stream", + "text": [ + " 0,657 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,486 |" + "output_type": "stream", + "text": [ + " 0,486 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,675 |" + "output_type": "stream", + "text": [ + " 0,675 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,490 |" + "output_type": "stream", + "text": [ + " 0,490 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Freelance" + "output_type": "stream", + "text": [ + " <-- Freelance" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 40 % |" + "output_type": "stream", + "text": [ + " 40 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,455 |" + "output_type": "stream", + "text": [ + " 0,455 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,668 |" + "output_type": "stream", + "text": [ + " 0,668 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,458 |" + "output_type": "stream", + "text": [ + " 0,458 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,700 |" + "output_type": "stream", + "text": [ + " 0,700 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,452 |" + "output_type": "stream", + "text": [ + " 0,452 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Freelance" + "output_type": "stream", + "text": [ + " <-- Freelance" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 45 % |" + "output_type": "stream", + "text": [ + " 45 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,451 |" + "output_type": "stream", + "text": [ + " 0,451 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,679 |" + "output_type": "stream", + "text": [ + " 0,679 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,429 |" + "output_type": "stream", + "text": [ + " 0,429 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,725 |" + "output_type": "stream", + "text": [ + " 0,725 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,415 |" + "output_type": "stream", + "text": [ + " 0,415 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Freelance" + "output_type": "stream", + "text": [ + " <-- Freelance" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 50 % |" + "output_type": "stream", + "text": [ + " 50 % |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,446 |" + "output_type": "stream", + "text": [ + " 0,446 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,690 |" + "output_type": "stream", + "text": [ + " 0,690 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,401 |" + "output_type": "stream", + "text": [ + " 0,401 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,750 |" + "output_type": "stream", + "text": [ + " 0,750 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 0,377 |" + "output_type": "stream", + "text": [ + " 0,377 |" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " <-- Freelance" + "output_type": "stream", + "text": [ + " <-- Freelance" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Interpretation :\r\n" + "output_type": "stream", + "text": [ + "Interpretation :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "- Les valeurs en gras (max par colonne) indiquent le meilleur choix\r\n" + "output_type": "stream", + "text": [ + "- Les valeurs en gras (max par colonne) indiquent le meilleur choix\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "- Freelance domine pour w_salaire > 25%\r\n" + "output_type": "stream", + "text": [ + "- Freelance domine pour w_salaire > 25%\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "- Recherche domine pour w_salaire < 15%\r\n" + "output_type": "stream", + "text": [ + "- Recherche domine pour w_salaire < 15%\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=> Le choix optimal depend fortement des preferences sur le salaire\r\n" + "output_type": "stream", + "text": [ + "=> Le choix optimal depend fortement des preferences sur le salaire\r\n" + ] } ], "source": [ @@ -2630,10 +3210,10 @@ "id": "ed5e5674", "metadata": { "papermill": { - "duration": 0.012653, - "end_time": "2026-07-31T19:55:04.426762", + "duration": 0.034941, + "end_time": "2026-09-23T07:20:04.916324", "exception": false, - "start_time": "2026-07-31T19:55:04.414109", + "start_time": "2026-09-23T07:20:04.881383", "status": "completed" }, "tags": [] @@ -2666,25 +3246,27 @@ "id": "7f25a9fe", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:04.453807Z", - "iopub.status.busy": "2026-07-31T19:55:04.453447Z", - "iopub.status.idle": "2026-07-31T19:55:04.510356Z", - "shell.execute_reply": "2026-07-31T19:55:04.510143Z" + "iopub.execute_input": "2026-09-23T07:20:04.996551Z", + "iopub.status.busy": "2026-09-23T07:20:04.993821Z", + "iopub.status.idle": "2026-09-23T07:20:05.062140Z", + "shell.execute_reply": "2026-09-23T07:20:05.060074Z" }, "papermill": { - "duration": 0.071407, - "end_time": "2026-07-31T19:55:04.510447", + "duration": 0.102775, + "end_time": "2026-09-23T07:20:05.062140", "exception": false, - "start_time": "2026-07-31T19:55:04.439040", + "start_time": "2026-09-23T07:20:04.959365", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice a completer : analyse de sensibilite multi-attributs\r\n" + "output_type": "stream", + "text": [ + "Exercice a completer : analyse de sensibilite multi-attributs\r\n" + ] } ], "source": [ @@ -2720,10 +3302,10 @@ "id": "ba2c1349", "metadata": { "papermill": { - "duration": 0.011066, - "end_time": "2026-07-31T19:55:04.535423", + "duration": 0.02982, + "end_time": "2026-09-23T07:20:05.122821", "exception": false, - "start_time": "2026-07-31T19:55:04.524357", + "start_time": "2026-09-23T07:20:05.093001", "status": "completed" }, "tags": [] @@ -2742,19 +3324,19 @@ "id": "ef7c0150", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:04.565168Z", - "iopub.status.busy": "2026-07-31T19:55:04.564782Z", - "iopub.status.idle": "2026-07-31T19:55:07.449244Z", - "shell.execute_reply": "2026-07-31T19:55:07.449029Z" + "iopub.execute_input": "2026-09-23T07:20:05.185454Z", + "iopub.status.busy": "2026-09-23T07:20:05.185454Z", + "iopub.status.idle": "2026-09-23T07:20:08.667929Z", + "shell.execute_reply": "2026-09-23T07:20:08.667929Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 2.898706, - "end_time": "2026-07-31T19:55:07.449360", + "duration": 3.51373, + "end_time": "2026-09-23T07:20:08.668449", "exception": false, - "start_time": "2026-07-31T19:55:04.550654", + "start_time": "2026-09-23T07:20:05.154719", "status": "completed" }, "polyglot_notebook": { @@ -2767,84 +3349,117 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Compiling model..." + "output_type": "stream", + "text": [ + "Compiling model..." + ] }, { - "output_type": "stream", "name": "stdout", - "text": "done.\r\n" + "output_type": "stream", + "text": [ + "done.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Compiling model..." + "output_type": "stream", + "text": [ + "Compiling model..." + ] }, { - "output_type": "stream", "name": "stdout", - "text": "done.\r\n" + "output_type": "stream", + "text": [ + "done.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Compiling model..." + "output_type": "stream", + "text": [ + "Compiling model..." + ] }, { - "output_type": "stream", "name": "stdout", - "text": "done.\r\n" + "output_type": "stream", + "text": [ + "done.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Compiling model..." + "output_type": "stream", + "text": [ + "Compiling model..." + ] }, { - "output_type": "stream", "name": "stdout", - "text": "done.\r\n" + "output_type": "stream", + "text": [ + "done.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Distributions des attributs :\n\r\n" + "output_type": "stream", + "text": [ + "Distributions des attributs :\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Projet A : Rendement ~ Gaussian(0,08, 0,01), Risque ~ Gaussian(0,15, 0,005)\r\n" + "output_type": "stream", + "text": [ + "Projet A : Rendement ~ Gaussian(0,08, 0,01), Risque ~ Gaussian(0,15, 0,005)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Projet B : Rendement ~ Gaussian(0,12, 0,02), Risque ~ Gaussian(0,25, 0,01)\r\n" + "output_type": "stream", + "text": [ + "Projet B : Rendement ~ Gaussian(0,12, 0,02), Risque ~ Gaussian(0,25, 0,01)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "E[U(Projet A)] = 0,5084\r\n" + "output_type": "stream", + "text": [ + "E[U(Projet A)] = 0,5101\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "E[U(Projet B)] = 0,4861\r\n" + "output_type": "stream", + "text": [ + "E[U(Projet B)] = 0,4884\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=> Decision optimale : Projet A\r\n" + "output_type": "stream", + "text": [ + "=> Decision optimale : Projet A\r\n" + ] } ], "source": [ @@ -2885,7 +3500,7 @@ "Func v_risque = r => 1 - Math.Max(0, Math.Min(1, r / 0.40));\n", "\n", "// Calcul par Monte Carlo de E[U]\n", - "var rng = new Random(42);\n", + "Microsoft.ML.Probabilistic.Math.Rand.Restart(42); // Gaussian.Sample() tire dans Rand, le générateur global d'Infer.NET\n", "int N = 5000;\n", "\n", "double sumU_A = 0, sumU_B = 0;\n", @@ -2916,10 +3531,10 @@ "id": "89a2b891", "metadata": { "papermill": { - "duration": 0.019057, - "end_time": "2026-07-31T19:55:07.487358", + "duration": 0.028405, + "end_time": "2026-09-23T07:20:08.727052", "exception": false, - "start_time": "2026-07-31T19:55:07.468301", + "start_time": "2026-09-23T07:20:08.698647", "status": "completed" }, "tags": [] @@ -2940,10 +3555,12 @@ "\n", "| Projet | E[U] | Interpretation |\n", "|--------|------|----------------|\n", - "| **A** | 0.5100 | Gagnant |\n", - "| B | 0.4852 | Perdant |\n", + "| **A** | 0.5101 | Gagnant |\n", + "| B | 0.4884 | Perdant |\n", + "\n", + "**Ecart** : environ 4.3% en faveur du Projet A\n", "\n", - "**Ecart** : environ 4.9% en faveur du Projet A\n", + "> **Bruit Monte Carlo** : ces deux valeurs sont des moyennes sur 5000 tirages. La graine `Rand.Restart(42)` les rend reproductibles d'une exécution à l'autre : `Gaussian.Sample()` tire dans `Rand`, le générateur global d'Infer.NET, et non dans un `System.Random`. Une autre graine déplacerait chaque E[U] de quelques millièmes, soit bien moins que l'écart de 0.02 entre les deux projets : la décision ne dépend pas de la graine.\n", "\n", "### Decomposition de la decision\n", "\n", @@ -2967,10 +3584,10 @@ "id": "b011e78c", "metadata": { "papermill": { - "duration": 0.019449, - "end_time": "2026-07-31T19:55:07.519087", + "duration": 0.028972, + "end_time": "2026-09-23T07:20:08.784980", "exception": false, - "start_time": "2026-07-31T19:55:07.499638", + "start_time": "2026-09-23T07:20:08.756008", "status": "completed" }, "tags": [] @@ -2998,16 +3615,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-31T19:55:07.552625Z", - "iopub.status.busy": "2026-07-31T19:55:07.552332Z", - "iopub.status.idle": "2026-07-31T19:55:07.658633Z", - "shell.execute_reply": "2026-07-31T19:55:07.658339Z" + "iopub.execute_input": "2026-09-23T07:20:08.844513Z", + "iopub.status.busy": "2026-09-23T07:20:08.843825Z", + "iopub.status.idle": "2026-09-23T07:20:08.957698Z", + "shell.execute_reply": "2026-09-23T07:20:08.957698Z" }, "papermill": { - "duration": 0.123429, - "end_time": "2026-07-31T19:55:07.658750", + "duration": 0.14341, + "end_time": "2026-09-23T07:20:08.958275", "exception": false, - "start_time": "2026-07-31T19:55:07.535321", + "start_time": "2026-09-23T07:20:08.814865", "status": "completed" }, "tags": [], @@ -3017,34 +3634,47 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Vos resultats SMART :\n\r\n" + "output_type": "stream", + "text": [ + "Vos resultats SMART :\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Option 1 : V = 0,705\r\n" + "output_type": "stream", + "text": [ + "Option 1 : V = 0,705\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Option 2 : V = 0,665\r\n" + "output_type": "stream", + "text": [ + "Option 2 : V = 0,665\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Option 3 : V = 0,750\r\n" + "output_type": "stream", + "text": [ + "Option 3 : V = 0,750\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Modifiez les valeurs ci-dessus pour votre probleme personnel !\r\n" + "output_type": "stream", + "text": [ + "Modifiez les valeurs ci-dessus pour votre probleme personnel !\r\n" + ] } ], "source": [ @@ -3095,10 +3725,10 @@ "id": "e11c6b19", "metadata": { "papermill": { - "duration": 0.017638, - "end_time": "2026-07-31T19:55:07.692534", + "duration": 0.028864, + "end_time": "2026-09-23T07:20:09.017316", "exception": false, - "start_time": "2026-07-31T19:55:07.674896", + "start_time": "2026-09-23T07:20:08.988452", "status": "completed" }, "tags": [] @@ -3130,19 +3760,19 @@ "id": "42ef07f7", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:07.729541Z", - "iopub.status.busy": "2026-07-31T19:55:07.729322Z", - "iopub.status.idle": "2026-07-31T19:55:08.350409Z", - "shell.execute_reply": "2026-07-31T19:55:08.350145Z" + "iopub.execute_input": "2026-09-23T07:20:09.105843Z", + "iopub.status.busy": "2026-09-23T07:20:09.104816Z", + "iopub.status.idle": "2026-09-23T07:20:09.863145Z", + "shell.execute_reply": "2026-09-23T07:20:09.863145Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.638679, - "end_time": "2026-07-31T19:55:08.350528", + "duration": 0.816753, + "end_time": "2026-09-23T07:20:09.863704", "exception": false, - "start_time": "2026-07-31T19:55:07.711849", + "start_time": "2026-09-23T07:20:09.046951", "status": "completed" }, "polyglot_notebook": { @@ -3155,99 +3785,141 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Compiling model..." + "output_type": "stream", + "text": [ + "Compiling model..." + ] }, { - "output_type": "stream", "name": "stdout", - "text": "done.\r\n" + "output_type": "stream", + "text": [ + "done.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=== Inference Bayesienne des Poids MAUT ===\n\r\n" + "output_type": "stream", + "text": [ + "=== Inference Bayesienne des Poids MAUT ===\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Choix observes : Securite, Prix, Securite, Securite, Prix\n\r\n" + "output_type": "stream", + "text": [ + "Choix observes : Securite, Prix, Securite, Securite, Prix\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Prior (Dirichlet uniforme) :\r\n" + "output_type": "stream", + "text": [ + "Prior (Dirichlet uniforme) :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Pseudo-counts : [1, 1, 1, 1]\n\r\n" + "output_type": "stream", + "text": [ + " Pseudo-counts : [1, 1, 1, 1]\n", + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Posterior (apres 5 observations) :\r\n" + "output_type": "stream", + "text": [ + "Posterior (apres 5 observations) :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " w_Prix = 33,3 %\r\n" + "output_type": "stream", + "text": [ + " w_Prix = 33,3 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " w_Securite = 44,4 %\r\n" + "output_type": "stream", + "text": [ + " w_Securite = 44,4 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " w_Consommation = 11,1 %\r\n" + "output_type": "stream", + "text": [ + " w_Consommation = 11,1 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " w_Confort = 11,1 %\r\n" + "output_type": "stream", + "text": [ + " w_Confort = 11,1 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\nDistribution Dirichlet posterior : Dirichlet(3 4 1 1)\r\n" + "output_type": "stream", + "text": [ + "\n", + "Distribution Dirichlet posterior : Dirichlet(3 4 1 1)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Comparaison :\r\n" + "output_type": "stream", + "text": [ + "Comparaison :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Swing weights (manuel) : Prix=35%, Securite=30%, Conso=20%, Confort=15%\r\n" + "output_type": "stream", + "text": [ + " Swing weights (manuel) : Prix=35%, Securite=30%, Conso=20%, Confort=15%\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Inference bayesienne : Prix=33 %, Securite=44 %, Conso=11 %, Confort=11 %\r\n" + "output_type": "stream", + "text": [ + " Inference bayesienne : Prix=33 %, Securite=44 %, Conso=11 %, Confort=11 %\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=> L'inference bayesienne revele les poids IMPLICITES du decideur !\r\n" + "output_type": "stream", + "text": [ + "=> L'inference bayesienne revele les poids IMPLICITES du decideur !\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Ici, la Securite domine (3/5 choix), confirmant son importance.\r\n" + "output_type": "stream", + "text": [ + " Ici, la Securite domine (3/5 choix), confirmant son importance.\r\n" + ] } ], "source": [ @@ -3310,10 +3982,10 @@ "id": "8cd692b2", "metadata": { "papermill": { - "duration": 0.012422, - "end_time": "2026-07-31T19:55:08.378986", + "duration": 0.030488, + "end_time": "2026-09-23T07:20:09.926877", "exception": false, - "start_time": "2026-07-31T19:55:08.366564", + "start_time": "2026-09-23T07:20:09.896389", "status": "completed" }, "tags": [] @@ -3357,19 +4029,19 @@ "id": "9ea49d37", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:08.413693Z", - "iopub.status.busy": "2026-07-31T19:55:08.413521Z", - "iopub.status.idle": "2026-07-31T19:55:08.471089Z", - "shell.execute_reply": "2026-07-31T19:55:08.470913Z" + "iopub.execute_input": "2026-09-23T07:20:09.990341Z", + "iopub.status.busy": "2026-09-23T07:20:09.988823Z", + "iopub.status.idle": "2026-09-23T07:20:10.078301Z", + "shell.execute_reply": "2026-09-23T07:20:10.078301Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.073899, - "end_time": "2026-07-31T19:55:08.471156", + "duration": 0.121417, + "end_time": "2026-09-23T07:20:10.078810", "exception": false, - "start_time": "2026-07-31T19:55:08.397257", + "start_time": "2026-09-23T07:20:09.957393", "status": "completed" }, "polyglot_notebook": { @@ -3382,69 +4054,95 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Evolution des poids MAUT : Prior -> Posterior\r\n" + "output_type": "stream", + "text": [ + "Evolution des poids MAUT : Prior -> Posterior\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Attribut | Prior (uniforme) | Posterior (infere) | Evolution\r\n" + "output_type": "stream", + "text": [ + "Attribut | Prior (uniforme) | Posterior (infere) | Evolution\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "--------------|------------------|--------------------|-----------\r\n" + "output_type": "stream", + "text": [ + "--------------|------------------|--------------------|-----------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Prix | 25 % | 33,3 % | 0,083 ^\r\n" + "output_type": "stream", + "text": [ + "Prix | 25 % | 33,3 % | 0,083 ^\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Securite | 25 % | 44,4 % | 0,194 ^\r\n" + "output_type": "stream", + "text": [ + "Securite | 25 % | 44,4 % | 0,194 ^\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Consommation | 25 % | 11,1 % | -0,139 v\r\n" + "output_type": "stream", + "text": [ + "Consommation | 25 % | 11,1 % | -0,139 v\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Confort | 25 % | 11,1 % | -0,139 v\r\n" + "output_type": "stream", + "text": [ + "Confort | 25 % | 11,1 % | -0,139 v\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Interpretation :\r\n" + "output_type": "stream", + "text": [ + "Interpretation :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " ^ : L'attribut est plus important que prevu (choisi souvent)\r\n" + "output_type": "stream", + "text": [ + " ^ : L'attribut est plus important que prevu (choisi souvent)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " v : L'attribut est moins important que prevu\r\n" + "output_type": "stream", + "text": [ + " v : L'attribut est moins important que prevu\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " = : L'importance reste proche du prior\r\n" + "output_type": "stream", + "text": [ + " = : L'importance reste proche du prior\r\n" + ] } ], "source": [ @@ -3481,7 +4179,16 @@ { "cell_type": "markdown", "id": "8c3d3548", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.034664, + "end_time": "2026-09-23T07:20:10.144366", + "exception": false, + "start_time": "2026-09-23T07:20:10.109702", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture : élicitation contre révélation — deux sources de poids, deux vérités\n", "\n", @@ -3494,19 +4201,19 @@ "id": "14d58a7b", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:08.532549Z", - "iopub.status.busy": "2026-07-31T19:55:08.532155Z", - "iopub.status.idle": "2026-07-31T19:55:08.969329Z", - "shell.execute_reply": "2026-07-31T19:55:08.969107Z" + "iopub.execute_input": "2026-09-23T07:20:10.210372Z", + "iopub.status.busy": "2026-09-23T07:20:10.210372Z", + "iopub.status.idle": "2026-09-23T07:20:11.532459Z", + "shell.execute_reply": "2026-09-23T07:20:11.532459Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.456199, - "end_time": "2026-07-31T19:55:08.969454", + "duration": 1.357163, + "end_time": "2026-09-23T07:20:11.532459", "exception": false, - "start_time": "2026-07-31T19:55:08.513255", + "start_time": "2026-09-23T07:20:10.175296", "status": "completed" }, "polyglot_notebook": { @@ -3519,71 +4226,165 @@ }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Compiling model..." + "output_type": "stream", + "text": [ + "Compiling model..." + ] }, { - "output_type": "stream", "name": "stdout", - "text": "done.\r\n" + "output_type": "stream", + "text": [ + "done.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Structure du modele bayesien des poids (rendu SVG ci-dessous).\r\n" + "output_type": "stream", + "text": [ + "Structure du modele bayesien des poids (rendu SVG ci-dessous).\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Posterior : Dirichlet(2 3 1 1)\r\n" + "output_type": "stream", + "text": [ + "Posterior : Dirichlet(2 3 1 1)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Lecture du factor graph :\r\n" + "output_type": "stream", + "text": [ + "Lecture du factor graph :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - Le noeud Dirichlet (1,1,1,1) encode le prior uniforme sur les poids.\r\n" + "output_type": "stream", + "text": [ + " - Le noeud Dirichlet (1,1,1,1) encode le prior uniforme sur les poids.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - La variable latente `poids` (simplex de dimension 4) est tiree de ce prior.\r\n" + "output_type": "stream", + "text": [ + " - La variable latente `poids` (simplex de dimension 4) est tiree de ce prior.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - Chaque observation Discrete (choix_observes) conditionne ce prior.\r\n" + "output_type": "stream", + "text": [ + " - Chaque observation Discrete (choix_observes) conditionne ce prior.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " - Le posterior Dirichlet(2 3 1 1) traduit les 3 choix observes (index 1 dominant).\r\n" + "output_type": "stream", + "text": [ + " - Le posterior Dirichlet(2 3 1 1) traduit les 3 choix observes (index 1 dominant).\r\n" + ] }, { - "output_type": "display_data", "data": { - "text/html": "\r\n
\r\n
Model_08_19_26_03_11_09_25.svg
\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\nModel\r\n\r\n\r\n\r\nnode0\r\n\r\nvDirichlet1\r\n\r\n\r\n\r\nnode1\r\n\r\nRandom\r\n\r\n\r\n\r\nnode0->node1\r\n\r\n\r\ndist\r\n\r\n\r\n\r\nnode2\r\n\r\npoids\r\n\r\n\r\n\r\nnode1->node2\r\n\r\n\r\n\r\n\r\n\r\nnode3\r\n\r\nDiscrete\r\n\r\n\r\n\r\nnode2->node3\r\n\r\n\r\nprobs\r\n\r\n\r\n\r\nnode4\r\n\r\nchoix_observes[observations]\r\n\r\n\r\n\r\nnode3->node4\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
" + "text/html": [ + "\n", + "
\n", + "
Model_09_23_26_09_20_10_31.svg
\n", + "
\n", + " \r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "Model\r\n", + "\r\n", + "\r\n", + "\r\n", + "node0\r\n", + "\r\n", + "vDirichlet1\r\n", + "\r\n", + "\r\n", + "\r\n", + "node1\r\n", + "\r\n", + "Random\r\n", + "\r\n", + "\r\n", + "\r\n", + "node0->node1\r\n", + "\r\n", + "\r\n", + "dist\r\n", + "\r\n", + "\r\n", + "\r\n", + "node2\r\n", + "\r\n", + "poids\r\n", + "\r\n", + "\r\n", + "\r\n", + "node1->node2\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "node3\r\n", + "\r\n", + "Discrete\r\n", + "\r\n", + "\r\n", + "\r\n", + "node2->node3\r\n", + "\r\n", + "\r\n", + "probs\r\n", + "\r\n", + "\r\n", + "\r\n", + "node4\r\n", + "\r\n", + "choix_observes[observations]\r\n", + "\r\n", + "\r\n", + "\r\n", + "node3->node4\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\n", + "
\n", + "
" + ] }, - "metadata": {} - }, - { - "output_type": "stream", - "name": "stderr", - "text": "\r\nwarning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n\r\n" + "metadata": {}, + "output_type": "display_data" } ], "source": [ @@ -3617,7 +4418,7 @@ "Console.WriteLine(\" - Chaque observation Discrete (choix_observes) conditionne ce prior.\");\n", "Console.WriteLine(\" - Le posterior Dirichlet(2 3 1 1) traduit les 3 choix observes (index 1 dominant).\");\n", "\n", - "display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml()));" + "FactorGraphHelper.GetLatestFactorGraphHtml().DisplayAs(\"text/html\");" ] }, { @@ -3625,10 +4426,10 @@ "id": "43c800a8", "metadata": { "papermill": { - "duration": 0.012979, - "end_time": "2026-07-31T19:55:09.001013", + "duration": 0.031622, + "end_time": "2026-09-23T07:20:11.596035", "exception": false, - "start_time": "2026-07-31T19:55:08.988034", + "start_time": "2026-09-23T07:20:11.564413", "status": "completed" }, "tags": [] @@ -3679,19 +4480,19 @@ "id": "ec011188", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:55:09.026618Z", - "iopub.status.busy": "2026-07-31T19:55:09.026416Z", - "iopub.status.idle": "2026-07-31T19:55:09.056150Z", - "shell.execute_reply": "2026-07-31T19:55:09.055969Z" + "iopub.execute_input": "2026-09-23T07:20:11.688283Z", + "iopub.status.busy": "2026-09-23T07:20:11.688283Z", + "iopub.status.idle": "2026-09-23T07:20:11.716840Z", + "shell.execute_reply": "2026-09-23T07:20:11.715821Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.043632, - "end_time": "2026-07-31T19:55:09.056220", + "duration": 0.0908, + "end_time": "2026-09-23T07:20:11.716840", "exception": false, - "start_time": "2026-07-31T19:55:09.012588", + "start_time": "2026-09-23T07:20:11.626040", "status": "completed" }, "polyglot_notebook": { @@ -3712,10 +4513,10 @@ "id": "c98816de", "metadata": { "papermill": { - "duration": 0.013368, - "end_time": "2026-07-31T19:55:09.081923", + "duration": 0.037873, + "end_time": "2026-09-23T07:20:11.790642", "exception": false, - "start_time": "2026-07-31T19:55:09.068555", + "start_time": "2026-09-23T07:20:11.752769", "status": "completed" }, "tags": [] @@ -3775,6 +4576,18 @@ "pygments_lexer": "csharp", "version": "13.0" }, + "papermill": { + "default_parameters": {}, + "duration": 18.132161, + "end_time": "2026-09-23T07:20:12.174825", + "environment_variables": {}, + "exception": null, + "input_path": "DecInfer-04-Multi-Attribute.ipynb", + "output_path": "DecInfer-04-Multi-Attribute.ipynb", + "parameters": {}, + "start_time": "2026-09-23T07:19:54.042664", + "version": "2.6.0" + }, "polyglot_notebook": { "kernelInfo": { "defaultKernelName": "csharp", @@ -3790,4 +4603,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-05-Decision-Networks.ipynb b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-05-Decision-Networks.ipynb index f4a6f21223..c1210f9904 100644 --- a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-05-Decision-Networks.ipynb +++ b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-05-Decision-Networks.ipynb @@ -5,17 +5,16 @@ "id": "eed22678", "metadata": { "papermill": { - "duration": 0.005009, - "end_time": "2026-06-22T19:12:02.935409", + "duration": 0.012588, + "end_time": "2026-09-23T07:16:01.699396", "exception": false, - "start_time": "2026-06-22T19:12:02.930400", + "start_time": "2026-09-23T07:16:01.686808", "status": "completed" }, "tags": [] }, "source": [ - "# DecInfer-05-Decision-Networks : Reseaux de Decision", - "\n", + "# DecInfer-05-Decision-Networks : Reseaux de Decision\n", "**Serie** : Programmation Probabiliste avec Infer.NET (5/10) \n", "**Duree estimee** : 55 minutes \n", "**Prerequis** : Notebooks 3 (Factor Graphs), 14-16 (Utilite)\n", @@ -45,10 +44,10 @@ "id": "d96a453b", "metadata": { "papermill": { - "duration": 0.004999, - "end_time": "2026-06-22T19:12:02.946408", + "duration": 0.007252, + "end_time": "2026-09-23T07:16:01.713755", "exception": false, - "start_time": "2026-06-22T19:12:02.941409", + "start_time": "2026-09-23T07:16:01.706503", "status": "completed" }, "tags": [] @@ -86,10 +85,10 @@ "id": "3f4c4860", "metadata": { "papermill": { - "duration": 0.003993, - "end_time": "2026-06-22T19:12:02.954402", + "duration": 0.011529, + "end_time": "2026-09-23T07:16:01.735468", "exception": false, - "start_time": "2026-06-22T19:12:02.950409", + "start_time": "2026-09-23T07:16:01.723939", "status": "completed" }, "tags": [] @@ -109,21 +108,136 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:12:02.968680Z", - "iopub.status.busy": "2026-06-22T19:12:02.964682Z", - "iopub.status.idle": "2026-06-22T19:12:06.575421Z", - "shell.execute_reply": "2026-06-22T19:12:06.572208Z" + "iopub.execute_input": "2026-09-23T07:16:01.770592Z", + "iopub.status.busy": "2026-09-23T07:16:01.763006Z", + "iopub.status.idle": "2026-09-23T07:16:05.196834Z", + "shell.execute_reply": "2026-09-23T07:16:05.192112Z" }, "papermill": { - "duration": 3.617549, - "end_time": "2026-06-22T19:12:06.575950", + "duration": 3.44781, + "end_time": "2026-09-23T07:16:05.196834", "exception": false, - "start_time": "2026-06-22T19:12:02.958401", + "start_time": "2026-09-23T07:16:01.749024", "status": "completed" }, "tags": [] }, "outputs": [ + { + "data": { + "text/html": [ + "\r\n", + "
\r\n", + " \r\n", + " \r\n", + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + }, { "data": { "text/html": [ @@ -159,10 +273,10 @@ "id": "3cc4d2cc", "metadata": { "papermill": { - "duration": 0.007912, - "end_time": "2026-06-22T19:12:06.592773", + "duration": 0.009942, + "end_time": "2026-09-23T07:16:05.218135", "exception": false, - "start_time": "2026-06-22T19:12:06.584861", + "start_time": "2026-09-23T07:16:05.208193", "status": "completed" }, "tags": [] @@ -177,19 +291,19 @@ "id": "db6810cf", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:06.610611Z", - "iopub.status.busy": "2026-06-22T19:12:06.610098Z", - "iopub.status.idle": "2026-06-22T19:12:07.519908Z", - "shell.execute_reply": "2026-06-22T19:12:07.519908Z" + "iopub.execute_input": "2026-09-23T07:16:05.232417Z", + "iopub.status.busy": "2026-09-23T07:16:05.232417Z", + "iopub.status.idle": "2026-09-23T07:16:05.959550Z", + "shell.execute_reply": "2026-09-23T07:16:05.959550Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.918749, - "end_time": "2026-06-22T19:12:07.519908", + "duration": 0.735192, + "end_time": "2026-09-23T07:16:05.959550", "exception": false, - "start_time": "2026-06-22T19:12:06.601159", + "start_time": "2026-09-23T07:16:05.224358", "status": "completed" }, "polyglot_notebook": { @@ -222,10 +336,10 @@ "id": "f59d5400", "metadata": { "papermill": { - "duration": 0.009046, - "end_time": "2026-06-22T19:12:07.539609", + "duration": 0.015137, + "end_time": "2026-09-23T07:16:05.988967", "exception": false, - "start_time": "2026-06-22T19:12:07.530563", + "start_time": "2026-09-23T07:16:05.973830", "status": "completed" }, "tags": [] @@ -268,10 +382,10 @@ "id": "9b9e6fe4", "metadata": { "papermill": { - "duration": 0.008878, - "end_time": "2026-06-22T19:12:07.556931", + "duration": 0.014059, + "end_time": "2026-09-23T07:16:06.013453", "exception": false, - "start_time": "2026-06-22T19:12:07.548053", + "start_time": "2026-09-23T07:16:05.999394", "status": "completed" }, "tags": [] @@ -289,16 +403,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:12:07.576935Z", - "iopub.status.busy": "2026-06-22T19:12:07.575934Z", - "iopub.status.idle": "2026-06-22T19:12:07.830108Z", - "shell.execute_reply": "2026-06-22T19:12:07.830108Z" + "iopub.execute_input": "2026-09-23T07:16:06.040933Z", + "iopub.status.busy": "2026-09-23T07:16:06.039935Z", + "iopub.status.idle": "2026-09-23T07:16:06.197697Z", + "shell.execute_reply": "2026-09-23T07:16:06.196682Z" }, "papermill": { - "duration": 0.265705, - "end_time": "2026-06-22T19:12:07.830634", + "duration": 0.169939, + "end_time": "2026-09-23T07:16:06.197697", "exception": false, - "start_time": "2026-06-22T19:12:07.564929", + "start_time": "2026-09-23T07:16:06.027758", "status": "completed" }, "tags": [] @@ -394,10 +508,10 @@ "id": "4bd18cce", "metadata": { "papermill": { - "duration": 0.010659, - "end_time": "2026-06-22T19:12:07.852662", + "duration": 0.006235, + "end_time": "2026-09-23T07:16:06.209985", "exception": false, - "start_time": "2026-06-22T19:12:07.842003", + "start_time": "2026-09-23T07:16:06.203750", "status": "completed" }, "tags": [] @@ -423,10 +537,10 @@ "id": "03ae930b", "metadata": { "papermill": { - "duration": 0.011981, - "end_time": "2026-06-22T19:12:07.873566", + "duration": 0.007837, + "end_time": "2026-09-23T07:16:06.223921", "exception": false, - "start_time": "2026-06-22T19:12:07.861585", + "start_time": "2026-09-23T07:16:06.216084", "status": "completed" }, "tags": [] @@ -440,10 +554,10 @@ "id": "d49562dc", "metadata": { "papermill": { - "duration": 0.010196, - "end_time": "2026-06-22T19:12:07.895513", + "duration": 0.006868, + "end_time": "2026-09-23T07:16:06.237887", "exception": false, - "start_time": "2026-06-22T19:12:07.885317", + "start_time": "2026-09-23T07:16:06.231019", "status": "completed" }, "tags": [] @@ -497,16 +611,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:12:07.919413Z", - "iopub.status.busy": "2026-06-22T19:12:07.919413Z", - "iopub.status.idle": "2026-06-22T19:12:08.055597Z", - "shell.execute_reply": "2026-06-22T19:12:08.055597Z" + "iopub.execute_input": "2026-09-23T07:16:06.256603Z", + "iopub.status.busy": "2026-09-23T07:16:06.256603Z", + "iopub.status.idle": "2026-09-23T07:16:06.338549Z", + "shell.execute_reply": "2026-09-23T07:16:06.337536Z" }, "papermill": { - "duration": 0.151719, - "end_time": "2026-06-22T19:12:08.056596", + "duration": 0.0919, + "end_time": "2026-09-23T07:16:06.338549", "exception": false, - "start_time": "2026-06-22T19:12:07.904877", + "start_time": "2026-09-23T07:16:06.246649", "status": "completed" }, "tags": [] @@ -654,10 +768,10 @@ "id": "aa9e1016", "metadata": { "papermill": { - "duration": 0.009261, - "end_time": "2026-06-22T19:12:08.075856", + "duration": 0.007597, + "end_time": "2026-09-23T07:16:06.355530", "exception": false, - "start_time": "2026-06-22T19:12:08.066595", + "start_time": "2026-09-23T07:16:06.347933", "status": "completed" }, "tags": [] @@ -671,10 +785,10 @@ "id": "6107a78d", "metadata": { "papermill": { - "duration": 0.008897, - "end_time": "2026-06-22T19:12:08.093879", + "duration": 0.011959, + "end_time": "2026-09-23T07:16:06.374089", "exception": false, - "start_time": "2026-06-22T19:12:08.084982", + "start_time": "2026-09-23T07:16:06.362130", "status": "completed" }, "tags": [] @@ -708,10 +822,10 @@ "id": "1add79cc", "metadata": { "papermill": { - "duration": 0.009001, - "end_time": "2026-06-22T19:12:08.111411", + "duration": 0.011133, + "end_time": "2026-09-23T07:16:06.400834", "exception": false, - "start_time": "2026-06-22T19:12:08.102410", + "start_time": "2026-09-23T07:16:06.389701", "status": "completed" }, "tags": [] @@ -762,10 +876,10 @@ "id": "85632f2e", "metadata": { "papermill": { - "duration": 0.009511, - "end_time": "2026-06-22T19:12:08.131929", + "duration": 0.012895, + "end_time": "2026-09-23T07:16:06.425804", "exception": false, - "start_time": "2026-06-22T19:12:08.122418", + "start_time": "2026-09-23T07:16:06.412909", "status": "completed" }, "tags": [] @@ -783,16 +897,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:12:08.153566Z", - "iopub.status.busy": "2026-06-22T19:12:08.152566Z", - "iopub.status.idle": "2026-06-22T19:12:08.361546Z", - "shell.execute_reply": "2026-06-22T19:12:08.361546Z" + "iopub.execute_input": "2026-09-23T07:16:06.449515Z", + "iopub.status.busy": "2026-09-23T07:16:06.448932Z", + "iopub.status.idle": "2026-09-23T07:16:06.638645Z", + "shell.execute_reply": "2026-09-23T07:16:06.638645Z" }, "papermill": { - "duration": 0.220619, - "end_time": "2026-06-22T19:12:08.361546", + "duration": 0.199799, + "end_time": "2026-09-23T07:16:06.638645", "exception": false, - "start_time": "2026-06-22T19:12:08.140927", + "start_time": "2026-09-23T07:16:06.438846", "status": "completed" }, "tags": [] @@ -924,10 +1038,10 @@ "id": "814e685f", "metadata": { "papermill": { - "duration": 0.008998, - "end_time": "2026-06-22T19:12:08.383556", + "duration": 0.007249, + "end_time": "2026-09-23T07:16:06.653272", "exception": false, - "start_time": "2026-06-22T19:12:08.374558", + "start_time": "2026-09-23T07:16:06.646023", "status": "completed" }, "tags": [] @@ -956,10 +1070,10 @@ "id": "bf82c99e", "metadata": { "papermill": { - "duration": 0.015159, - "end_time": "2026-06-22T19:12:08.410232", + "duration": 0.007422, + "end_time": "2026-09-23T07:16:06.667454", "exception": false, - "start_time": "2026-06-22T19:12:08.395073", + "start_time": "2026-09-23T07:16:06.660032", "status": "completed" }, "tags": [] @@ -984,10 +1098,10 @@ "id": "d6d35913", "metadata": { "papermill": { - "duration": 0.01, - "end_time": "2026-06-22T19:12:08.431858", + "duration": 0.007376, + "end_time": "2026-09-23T07:16:06.682206", "exception": false, - "start_time": "2026-06-22T19:12:08.421858", + "start_time": "2026-09-23T07:16:06.674830", "status": "completed" }, "tags": [] @@ -1005,16 +1119,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:12:08.455857Z", - "iopub.status.busy": "2026-06-22T19:12:08.455857Z", - "iopub.status.idle": "2026-06-22T19:12:08.580791Z", - "shell.execute_reply": "2026-06-22T19:12:08.580791Z" + "iopub.execute_input": "2026-09-23T07:16:06.698013Z", + "iopub.status.busy": "2026-09-23T07:16:06.698013Z", + "iopub.status.idle": "2026-09-23T07:16:06.768438Z", + "shell.execute_reply": "2026-09-23T07:16:06.768438Z" }, "papermill": { - "duration": 0.140932, - "end_time": "2026-06-22T19:12:08.581791", + "duration": 0.077935, + "end_time": "2026-09-23T07:16:06.768438", "exception": false, - "start_time": "2026-06-22T19:12:08.440859", + "start_time": "2026-09-23T07:16:06.690503", "status": "completed" }, "tags": [] @@ -1222,10 +1336,10 @@ "id": "edfe634d", "metadata": { "papermill": { - "duration": 0.011701, - "end_time": "2026-06-22T19:12:08.604006", + "duration": 0.007844, + "end_time": "2026-09-23T07:16:06.787029", "exception": false, - "start_time": "2026-06-22T19:12:08.592305", + "start_time": "2026-09-23T07:16:06.779185", "status": "completed" }, "tags": [] @@ -1270,10 +1384,10 @@ "id": "620feca5", "metadata": { "papermill": { - "duration": 0.013997, - "end_time": "2026-06-22T19:12:08.630748", + "duration": 0.014108, + "end_time": "2026-09-23T07:16:06.809451", "exception": false, - "start_time": "2026-06-22T19:12:08.616751", + "start_time": "2026-09-23T07:16:06.795343", "status": "completed" }, "tags": [] @@ -1313,16 +1427,16 @@ "id": "0f010bc7", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:08.659748Z", - "iopub.status.busy": "2026-06-22T19:12:08.659748Z", - "iopub.status.idle": "2026-06-22T19:12:08.744647Z", - "shell.execute_reply": "2026-06-22T19:12:08.744116Z" + "iopub.execute_input": "2026-09-23T07:16:06.830052Z", + "iopub.status.busy": "2026-09-23T07:16:06.830052Z", + "iopub.status.idle": "2026-09-23T07:16:06.867149Z", + "shell.execute_reply": "2026-09-23T07:16:06.867149Z" }, "papermill": { - "duration": 0.100893, - "end_time": "2026-06-22T19:12:08.744647", + "duration": 0.046068, + "end_time": "2026-09-23T07:16:06.867149", "exception": false, - "start_time": "2026-06-22T19:12:08.643754", + "start_time": "2026-09-23T07:16:06.821081", "status": "completed" }, "tags": [] @@ -1373,10 +1487,10 @@ "id": "1bb38fcd", "metadata": { "papermill": { - "duration": 0.012812, - "end_time": "2026-06-22T19:12:08.771214", + "duration": 0.007984, + "end_time": "2026-09-23T07:16:06.884237", "exception": false, - "start_time": "2026-06-22T19:12:08.758402", + "start_time": "2026-09-23T07:16:06.876253", "status": "completed" }, "tags": [] @@ -1390,10 +1504,10 @@ "id": "da7c71a2", "metadata": { "papermill": { - "duration": 0.011051, - "end_time": "2026-06-22T19:12:08.791593", + "duration": 0.00779, + "end_time": "2026-09-23T07:16:06.901545", "exception": false, - "start_time": "2026-06-22T19:12:08.780542", + "start_time": "2026-09-23T07:16:06.893755", "status": "completed" }, "tags": [] @@ -1428,16 +1542,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:12:08.815736Z", - "iopub.status.busy": "2026-06-22T19:12:08.815736Z", - "iopub.status.idle": "2026-06-22T19:12:08.952075Z", - "shell.execute_reply": "2026-06-22T19:12:08.951074Z" + "iopub.execute_input": "2026-09-23T07:16:06.920062Z", + "iopub.status.busy": "2026-09-23T07:16:06.919482Z", + "iopub.status.idle": "2026-09-23T07:16:06.997030Z", + "shell.execute_reply": "2026-09-23T07:16:06.997030Z" }, "papermill": { - "duration": 0.148273, - "end_time": "2026-06-22T19:12:08.952075", + "duration": 0.086761, + "end_time": "2026-09-23T07:16:06.997030", "exception": false, - "start_time": "2026-06-22T19:12:08.803802", + "start_time": "2026-09-23T07:16:06.910269", "status": "completed" }, "tags": [] @@ -1581,10 +1695,10 @@ "id": "8e94a662", "metadata": { "papermill": { - "duration": 0.007667, - "end_time": "2026-06-22T19:12:08.969741", + "duration": 0.00764, + "end_time": "2026-09-23T07:16:07.012679", "exception": false, - "start_time": "2026-06-22T19:12:08.962074", + "start_time": "2026-09-23T07:16:07.005039", "status": "completed" }, "tags": [] @@ -1627,10 +1741,10 @@ "id": "d047674e", "metadata": { "papermill": { - "duration": 0.00722, - "end_time": "2026-06-22T19:12:08.984406", + "duration": 0.007179, + "end_time": "2026-09-23T07:16:07.027472", "exception": false, - "start_time": "2026-06-22T19:12:08.977186", + "start_time": "2026-09-23T07:16:07.020293", "status": "completed" }, "tags": [] @@ -1670,16 +1784,16 @@ "id": "cfb0c510", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:09.010699Z", - "iopub.status.busy": "2026-06-22T19:12:09.010699Z", - "iopub.status.idle": "2026-06-22T19:12:09.086791Z", - "shell.execute_reply": "2026-06-22T19:12:09.085789Z" + "iopub.execute_input": "2026-09-23T07:16:07.044578Z", + "iopub.status.busy": "2026-09-23T07:16:07.044578Z", + "iopub.status.idle": "2026-09-23T07:16:07.082240Z", + "shell.execute_reply": "2026-09-23T07:16:07.082240Z" }, "papermill": { - "duration": 0.091068, - "end_time": "2026-06-22T19:12:09.086791", + "duration": 0.046767, + "end_time": "2026-09-23T07:16:07.082240", "exception": false, - "start_time": "2026-06-22T19:12:08.995723", + "start_time": "2026-09-23T07:16:07.035473", "status": "completed" }, "tags": [] @@ -1738,10 +1852,10 @@ "id": "96fdf024", "metadata": { "papermill": { - "duration": 0.011001, - "end_time": "2026-06-22T19:12:09.109493", + "duration": 0.008001, + "end_time": "2026-09-23T07:16:07.097535", "exception": false, - "start_time": "2026-06-22T19:12:09.098492", + "start_time": "2026-09-23T07:16:07.089534", "status": "completed" }, "tags": [] @@ -1764,10 +1878,10 @@ "id": "fdd7f3fe", "metadata": { "papermill": { - "duration": 0.006907, - "end_time": "2026-06-22T19:12:09.131608", + "duration": 0.007031, + "end_time": "2026-09-23T07:16:07.112313", "exception": false, - "start_time": "2026-06-22T19:12:09.124701", + "start_time": "2026-09-23T07:16:07.105282", "status": "completed" }, "tags": [] @@ -1791,16 +1905,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-06-22T19:12:09.154045Z", - "iopub.status.busy": "2026-06-22T19:12:09.153512Z", - "iopub.status.idle": "2026-06-22T19:12:10.609606Z", - "shell.execute_reply": "2026-06-22T19:12:10.609606Z" + "iopub.execute_input": "2026-09-23T07:16:07.131981Z", + "iopub.status.busy": "2026-09-23T07:16:07.131460Z", + "iopub.status.idle": "2026-09-23T07:16:09.179365Z", + "shell.execute_reply": "2026-09-23T07:16:09.179365Z" }, "papermill": { - "duration": 1.46846, - "end_time": "2026-06-22T19:12:10.609606", + "duration": 2.059401, + "end_time": "2026-09-23T07:16:09.179365", "exception": false, - "start_time": "2026-06-22T19:12:09.141146", + "start_time": "2026-09-23T07:16:07.119964", "status": "completed" }, "tags": [] @@ -1976,10 +2090,10 @@ "id": "d5d5f14e", "metadata": { "papermill": { - "duration": 0.006, - "end_time": "2026-06-22T19:12:10.621605", + "duration": 0.009253, + "end_time": "2026-09-23T07:16:09.204192", "exception": false, - "start_time": "2026-06-22T19:12:10.615605", + "start_time": "2026-09-23T07:16:09.194939", "status": "completed" }, "tags": [] @@ -2024,10 +2138,10 @@ "id": "13bb61ca", "metadata": { "papermill": { - "duration": 0.00544, - "end_time": "2026-06-22T19:12:10.633046", + "duration": 0.01489, + "end_time": "2026-09-23T07:16:09.232626", "exception": false, - "start_time": "2026-06-22T19:12:10.627606", + "start_time": "2026-09-23T07:16:09.217736", "status": "completed" }, "tags": [] @@ -2049,19 +2163,19 @@ "id": "1fbe36f1", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:10.647047Z", - "iopub.status.busy": "2026-06-22T19:12:10.646047Z", - "iopub.status.idle": "2026-06-22T19:12:11.270291Z", - "shell.execute_reply": "2026-06-22T19:12:11.270291Z" + "iopub.execute_input": "2026-09-23T07:16:09.262073Z", + "iopub.status.busy": "2026-09-23T07:16:09.261076Z", + "iopub.status.idle": "2026-09-23T07:16:10.410781Z", + "shell.execute_reply": "2026-09-23T07:16:10.410781Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.631245, - "end_time": "2026-06-22T19:12:11.270291", + "duration": 1.167746, + "end_time": "2026-09-23T07:16:10.410781", "exception": false, - "start_time": "2026-06-22T19:12:10.639046", + "start_time": "2026-09-23T07:16:09.243035", "status": "completed" }, "polyglot_notebook": { @@ -2101,14 +2215,14 @@ { "data": { "text/html": [ - "\r\n", - "
\r\n", - "
Model_06_22_26_21_12_10_69.svg
\r\n", - "
\r\n", + "\n", + "
\n", + "
Model_09_23_26_09_16_09_35.svg
\n", + "
\n", " \r\n", "\r\n", - "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", - "\r\n", - "
\r\n", + "\n", + "
\n", "
" ] }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\r\n", - "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", - "\r\n" - ] } ], "source": [ @@ -2253,7 +2358,7 @@ "Console.WriteLine();\n", "\n", "// Afficher le factor graph inline si disponible\n", - "display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml(700)));" + "FactorGraphHelper.GetLatestFactorGraphHtml(700).DisplayAs(\"text/html\");" ] }, { @@ -2261,10 +2366,10 @@ "id": "6156a898", "metadata": { "papermill": { - "duration": 0.011084, - "end_time": "2026-06-22T19:12:11.296171", + "duration": 0.009278, + "end_time": "2026-09-23T07:16:10.430955", "exception": false, - "start_time": "2026-06-22T19:12:11.285087", + "start_time": "2026-09-23T07:16:10.421677", "status": "completed" }, "tags": [] @@ -2287,10 +2392,10 @@ "id": "427da34a", "metadata": { "papermill": { - "duration": 0.011071, - "end_time": "2026-06-22T19:12:11.318146", + "duration": 0.013156, + "end_time": "2026-09-23T07:16:10.453466", "exception": false, - "start_time": "2026-06-22T19:12:11.307075", + "start_time": "2026-09-23T07:16:10.440310", "status": "completed" }, "tags": [] @@ -2308,10 +2413,10 @@ "id": "1bf4706f", "metadata": { "papermill": { - "duration": 0.011001, - "end_time": "2026-06-22T19:12:11.339927", + "duration": 0.010472, + "end_time": "2026-09-23T07:16:10.476248", "exception": false, - "start_time": "2026-06-22T19:12:11.328926", + "start_time": "2026-09-23T07:16:10.465776", "status": "completed" }, "tags": [] @@ -2331,19 +2436,19 @@ "id": "53e8accb", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:11.364012Z", - "iopub.status.busy": "2026-06-22T19:12:11.363006Z", - "iopub.status.idle": "2026-06-22T19:12:11.795752Z", - "shell.execute_reply": "2026-06-22T19:12:11.795752Z" + "iopub.execute_input": "2026-09-23T07:16:10.504272Z", + "iopub.status.busy": "2026-09-23T07:16:10.504272Z", + "iopub.status.idle": "2026-09-23T07:16:11.193937Z", + "shell.execute_reply": "2026-09-23T07:16:11.193937Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.444201, - "end_time": "2026-06-22T19:12:11.795752", + "duration": 0.70404, + "end_time": "2026-09-23T07:16:11.193937", "exception": false, - "start_time": "2026-06-22T19:12:11.351551", + "start_time": "2026-09-23T07:16:10.489897", "status": "completed" }, "polyglot_notebook": { @@ -2524,10 +2629,10 @@ "id": "2344c618", "metadata": { "papermill": { - "duration": 0.011349, - "end_time": "2026-06-22T19:12:11.820326", + "duration": 0.014196, + "end_time": "2026-09-23T07:16:11.220917", "exception": false, - "start_time": "2026-06-22T19:12:11.808977", + "start_time": "2026-09-23T07:16:11.206721", "status": "completed" }, "tags": [] @@ -2550,19 +2655,19 @@ "id": "fb2907b4", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:11.846620Z", - "iopub.status.busy": "2026-06-22T19:12:11.846108Z", - "iopub.status.idle": "2026-06-22T19:12:11.944629Z", - "shell.execute_reply": "2026-06-22T19:12:11.944629Z" + "iopub.execute_input": "2026-09-23T07:16:11.249221Z", + "iopub.status.busy": "2026-09-23T07:16:11.249221Z", + "iopub.status.idle": "2026-09-23T07:16:11.688823Z", + "shell.execute_reply": "2026-09-23T07:16:11.688823Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.11253, - "end_time": "2026-06-22T19:12:11.944629", + "duration": 0.454103, + "end_time": "2026-09-23T07:16:11.688823", "exception": false, - "start_time": "2026-06-22T19:12:11.832099", + "start_time": "2026-09-23T07:16:11.234720", "status": "completed" }, "polyglot_notebook": { @@ -2574,14 +2679,14 @@ { "data": { "text/html": [ - "\r\n", - "
\r\n", - "
Model_06_22_26_21_12_11_41.svg
\r\n", - "
\r\n", + "\n", + "
\n", + "
Model_09_23_26_09_16_10_55.svg
\n", + "
\n", " \r\n", "\r\n", - "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", - "\r\n", - "
\r\n", + "\n", + "
\n", "
" ] }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\r\n", - "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", - "\r\n" - ] } ], "source": [ "// Affichage du factor graph genere par la cellule precedente\n", "// Le graphe montre la structure : Maladie (prior) -> TestResult (likelihood)\n", - "display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml(700)));" + "FactorGraphHelper.GetLatestFactorGraphHtml(700).DisplayAs(\"text/html\");" ] }, { @@ -2714,10 +2810,10 @@ "id": "fd6ba9c8", "metadata": { "papermill": { - "duration": 0.019264, - "end_time": "2026-06-22T19:12:11.976808", + "duration": 0.008258, + "end_time": "2026-09-23T07:16:11.707673", "exception": false, - "start_time": "2026-06-22T19:12:11.957544", + "start_time": "2026-09-23T07:16:11.699415", "status": "completed" }, "tags": [] @@ -2757,10 +2853,10 @@ "id": "c9a81107", "metadata": { "papermill": { - "duration": 0.012005, - "end_time": "2026-06-22T19:12:12.000813", + "duration": 0.01162, + "end_time": "2026-09-23T07:16:11.728833", "exception": false, - "start_time": "2026-06-22T19:12:11.988808", + "start_time": "2026-09-23T07:16:11.717213", "status": "completed" }, "tags": [] @@ -2783,10 +2879,10 @@ "id": "5e053f1b", "metadata": { "papermill": { - "duration": 0.012, - "end_time": "2026-06-22T19:12:12.025328", + "duration": 0.00957, + "end_time": "2026-09-23T07:16:11.748819", "exception": false, - "start_time": "2026-06-22T19:12:12.013328", + "start_time": "2026-09-23T07:16:11.739249", "status": "completed" }, "tags": [] @@ -2809,19 +2905,19 @@ "id": "5302ef45", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:12.052442Z", - "iopub.status.busy": "2026-06-22T19:12:12.051888Z", - "iopub.status.idle": "2026-06-22T19:12:12.088572Z", - "shell.execute_reply": "2026-06-22T19:12:12.088059Z" + "iopub.execute_input": "2026-09-23T07:16:11.771151Z", + "iopub.status.busy": "2026-09-23T07:16:11.771151Z", + "iopub.status.idle": "2026-09-23T07:16:11.798778Z", + "shell.execute_reply": "2026-09-23T07:16:11.798271Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.0505, - "end_time": "2026-06-22T19:12:12.088572", + "duration": 0.037968, + "end_time": "2026-09-23T07:16:11.798778", "exception": false, - "start_time": "2026-06-22T19:12:12.038072", + "start_time": "2026-09-23T07:16:11.760810", "status": "completed" }, "polyglot_notebook": { @@ -2872,10 +2968,10 @@ "id": "17e8da2e", "metadata": { "papermill": { - "duration": 0.012906, - "end_time": "2026-06-22T19:12:12.115831", + "duration": 0.009692, + "end_time": "2026-09-23T07:16:11.818582", "exception": false, - "start_time": "2026-06-22T19:12:12.102925", + "start_time": "2026-09-23T07:16:11.808890", "status": "completed" }, "tags": [] @@ -2895,10 +2991,10 @@ "id": "05b8600c", "metadata": { "papermill": { - "duration": 0.012817, - "end_time": "2026-06-22T19:12:12.140392", + "duration": 0.009891, + "end_time": "2026-09-23T07:16:11.838518", "exception": false, - "start_time": "2026-06-22T19:12:12.127575", + "start_time": "2026-09-23T07:16:11.828627", "status": "completed" }, "tags": [] @@ -2924,10 +3020,10 @@ "id": "69f45873", "metadata": { "papermill": { - "duration": 0.013152, - "end_time": "2026-06-22T19:12:12.166004", + "duration": 0.018844, + "end_time": "2026-09-23T07:16:11.872531", "exception": false, - "start_time": "2026-06-22T19:12:12.152852", + "start_time": "2026-09-23T07:16:11.853687", "status": "completed" }, "tags": [] @@ -2944,19 +3040,19 @@ "id": "85e46e59", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:12.192258Z", - "iopub.status.busy": "2026-06-22T19:12:12.192258Z", - "iopub.status.idle": "2026-06-22T19:12:14.361069Z", - "shell.execute_reply": "2026-06-22T19:12:14.360552Z" + "iopub.execute_input": "2026-09-23T07:16:11.920876Z", + "iopub.status.busy": "2026-09-23T07:16:11.919570Z", + "iopub.status.idle": "2026-09-23T07:16:13.889590Z", + "shell.execute_reply": "2026-09-23T07:16:13.889590Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 2.18258, - "end_time": "2026-06-22T19:12:14.361069", + "duration": 1.99705, + "end_time": "2026-09-23T07:16:13.890590", "exception": false, - "start_time": "2026-06-22T19:12:12.178489", + "start_time": "2026-09-23T07:16:11.893540", "status": "completed" }, "polyglot_notebook": { @@ -3312,10 +3408,10 @@ "id": "c7d76bc4", "metadata": { "papermill": { - "duration": 0.017424, - "end_time": "2026-06-22T19:12:14.397217", + "duration": 0.010465, + "end_time": "2026-09-23T07:16:13.916379", "exception": false, - "start_time": "2026-06-22T19:12:14.379793", + "start_time": "2026-09-23T07:16:13.905914", "status": "completed" }, "tags": [] @@ -3361,19 +3457,19 @@ "id": "0f297608", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:14.430390Z", - "iopub.status.busy": "2026-06-22T19:12:14.429390Z", - "iopub.status.idle": "2026-06-22T19:12:15.477139Z", - "shell.execute_reply": "2026-06-22T19:12:15.477139Z" + "iopub.execute_input": "2026-09-23T07:16:13.946278Z", + "iopub.status.busy": "2026-09-23T07:16:13.946278Z", + "iopub.status.idle": "2026-09-23T07:16:16.052687Z", + "shell.execute_reply": "2026-09-23T07:16:16.052687Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 1.064537, - "end_time": "2026-06-22T19:12:15.477139", + "duration": 2.125499, + "end_time": "2026-09-23T07:16:16.052687", "exception": false, - "start_time": "2026-06-22T19:12:14.412602", + "start_time": "2026-09-23T07:16:13.927188", "status": "completed" }, "polyglot_notebook": { @@ -3462,14 +3558,14 @@ { "data": { "text/html": [ - "\r\n", - "
\r\n", - "
Model_06_22_26_21_12_15_12.svg
\r\n", - "
\r\n", + "\n", + "
\n", + "
Model_09_23_26_09_16_15_21.svg
\n", + "
\n", " \r\n", "\r\n", - "\r\n", "\r\n", "\r\n", "\r\n", "\r\n", - "\r\n", - "
\r\n", + "\n", + "
\n", "
" ] }, "metadata": {}, "output_type": "display_data" - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\r\n", - "warning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n", - "\r\n" - ] } ], "source": [ @@ -3565,7 +3652,7 @@ "Console.WriteLine();\n", "\n", "// Afficher le factor graph\n", - "display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml(700)));" + "FactorGraphHelper.GetLatestFactorGraphHtml(700).DisplayAs(\"text/html\");" ] }, { @@ -3573,10 +3660,10 @@ "id": "8d7fff68", "metadata": { "papermill": { - "duration": 0.017992, - "end_time": "2026-06-22T19:12:15.510145", + "duration": 0.043757, + "end_time": "2026-09-23T07:16:16.120256", "exception": false, - "start_time": "2026-06-22T19:12:15.492153", + "start_time": "2026-09-23T07:16:16.076499", "status": "completed" }, "tags": [] @@ -3621,16 +3708,16 @@ "id": "bb9e072c", "metadata": { "execution": { - "iopub.execute_input": "2026-06-22T19:12:15.542254Z", - "iopub.status.busy": "2026-06-22T19:12:15.542254Z", - "iopub.status.idle": "2026-06-22T19:12:15.584956Z", - "shell.execute_reply": "2026-06-22T19:12:15.584449Z" + "iopub.execute_input": "2026-09-23T07:16:16.237778Z", + "iopub.status.busy": "2026-09-23T07:16:16.237251Z", + "iopub.status.idle": "2026-09-23T07:16:16.272634Z", + "shell.execute_reply": "2026-09-23T07:16:16.272634Z" }, "papermill": { - "duration": 0.05856, - "end_time": "2026-06-22T19:12:15.584956", + "duration": 0.059629, + "end_time": "2026-09-23T07:16:16.272634", "exception": false, - "start_time": "2026-06-22T19:12:15.526396", + "start_time": "2026-09-23T07:16:16.213005", "status": "completed" }, "tags": [] @@ -3686,10 +3773,10 @@ "id": "92925906", "metadata": { "papermill": { - "duration": 0.013784, - "end_time": "2026-06-22T19:12:15.613200", + "duration": 0.019683, + "end_time": "2026-09-23T07:16:16.312876", "exception": false, - "start_time": "2026-06-22T19:12:15.599416", + "start_time": "2026-09-23T07:16:16.293193", "status": "completed" }, "tags": [] @@ -3730,10 +3817,10 @@ "id": "38e29c32", "metadata": { "papermill": { - "duration": 0.017, - "end_time": "2026-06-22T19:12:15.642334", + "duration": 0.035953, + "end_time": "2026-09-23T07:16:16.367070", "exception": false, - "start_time": "2026-06-22T19:12:15.625334", + "start_time": "2026-09-23T07:16:16.331117", "status": "completed" }, "tags": [] @@ -3781,6 +3868,20 @@ } ], "metadata": { + "cost": { + "api_provider": "none", + "api_usd_est": 0.0, + "cpu_min": 6, + "external_account": null, + "free_alternative": null, + "gpu_required": false, + "metadata_written": null, + "network": false, + "notes": "Local execution via Infer.NET (Microsoft.Research.MachineLearning) probabilistic programming. Deterministic inference engines (Expectation Propagation / Variational Message Passing) converge to fixed points given the same model, data and seed. Requires .NET Interactive kernel + Infer.NET package installed. Execution is deterministic.", + "reduced_pedagogical": null, + "reproducibility": "HIGH", + "validator": "manual" + }, "kernelspec": { "display_name": ".NET (C#)", "language": "C#", @@ -3795,14 +3896,14 @@ }, "papermill": { "default_parameters": {}, - "duration": 15.227998, - "end_time": "2026-06-22T19:12:15.902435", + "duration": 17.200456, + "end_time": "2026-09-23T07:16:16.625952", "environment_variables": {}, "exception": null, "input_path": "DecInfer-05-Decision-Networks.ipynb", "output_path": "DecInfer-05-Decision-Networks.ipynb", "parameters": {}, - "start_time": "2026-06-22T19:12:00.674437", + "start_time": "2026-09-23T07:15:59.425496", "version": "2.6.0" }, "polyglot_notebook": { @@ -3816,22 +3917,8 @@ } ] } - }, - "cost": { - "api_usd_est": 0.0, - "api_provider": "none", - "cpu_min": 6, - "gpu_required": false, - "network": false, - "external_account": null, - "free_alternative": null, - "reduced_pedagogical": null, - "reproducibility": "HIGH", - "metadata_written": null, - "validator": "manual", - "notes": "Local execution via Infer.NET (Microsoft.Research.MachineLearning) probabilistic programming. Deterministic inference engines (Expectation Propagation / Variational Message Passing) converge to fixed points given the same model, data and seed. Requires .NET Interactive kernel + Infer.NET package installed. Execution is deterministic." } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-07-Expert-Systems.ipynb b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-07-Expert-Systems.ipynb index fcb884941f..ef41649adf 100644 --- a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-07-Expert-Systems.ipynb +++ b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-07-Expert-Systems.ipynb @@ -5,10 +5,10 @@ "id": "d33f52ea", "metadata": { "papermill": { - "duration": 0.044477, - "end_time": "2026-06-04T06:32:18.894382", + "duration": 0.026566, + "end_time": "2026-09-23T07:16:20.200182", "exception": false, - "start_time": "2026-06-04T06:32:18.849905", + "start_time": "2026-09-23T07:16:20.173616", "status": "completed" }, "tags": [] @@ -44,10 +44,10 @@ "id": "919c2ed5", "metadata": { "papermill": { - "duration": 0.037426, - "end_time": "2026-06-04T06:32:18.980359", + "duration": 0.005018, + "end_time": "2026-09-23T07:16:20.214193", "exception": false, - "start_time": "2026-06-04T06:32:18.942933", + "start_time": "2026-09-23T07:16:20.209175", "status": "completed" }, "tags": [] @@ -113,19 +113,19 @@ "id": "cc659944", "metadata": { "execution": { - "iopub.execute_input": "2026-07-15T01:33:05.275658Z", - "iopub.status.busy": "2026-07-15T01:33:05.271412Z", - "iopub.status.idle": "2026-07-15T01:33:06.716156Z", - "shell.execute_reply": "2026-07-15T01:33:06.713936Z" + "iopub.execute_input": "2026-09-23T07:16:20.231481Z", + "iopub.status.busy": "2026-09-23T07:16:20.226880Z", + "iopub.status.idle": "2026-09-23T07:16:22.025399Z", + "shell.execute_reply": "2026-09-23T07:16:22.014087Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 1.495443, - "end_time": "2026-06-04T06:32:20.511183", + "duration": 1.806192, + "end_time": "2026-09-23T07:16:22.025399", "exception": false, - "start_time": "2026-06-04T06:32:19.015740", + "start_time": "2026-09-23T07:16:20.219207", "status": "completed" }, "polyglot_notebook": { @@ -139,10 +139,11 @@ "text/html": [ "\r\n", "
\r\n", - " \r\n", " \r\n", @@ -246,10 +255,10 @@ "id": "d80d59f8", "metadata": { "papermill": { - "duration": 0.009112, - "end_time": "2026-06-22T19:19:36.134527", + "duration": 0.007135, + "end_time": "2026-09-23T07:16:35.751706", "exception": false, - "start_time": "2026-06-22T19:19:36.125415", + "start_time": "2026-09-23T07:16:35.744571", "status": "completed" }, "tags": [] @@ -270,19 +279,19 @@ "id": "2ab4cddc", "metadata": { "execution": { - "iopub.execute_input": "2026-07-24T18:47:27.944173Z", - "iopub.status.busy": "2026-07-24T18:47:27.943882Z", - "iopub.status.idle": "2026-07-24T18:47:28.971946Z", - "shell.execute_reply": "2026-07-24T18:47:28.971642Z" + "iopub.execute_input": "2026-09-23T07:16:35.766059Z", + "iopub.status.busy": "2026-09-23T07:16:35.766059Z", + "iopub.status.idle": "2026-09-23T07:16:36.614468Z", + "shell.execute_reply": "2026-09-23T07:16:36.614468Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.628594, - "end_time": "2026-06-22T19:19:36.772534", + "duration": 0.855556, + "end_time": "2026-09-23T07:16:36.614468", "exception": false, - "start_time": "2026-06-22T19:19:36.143940", + "start_time": "2026-09-23T07:16:35.758912", "status": "completed" }, "polyglot_notebook": { @@ -322,10 +331,10 @@ "id": "101c5555", "metadata": { "papermill": { - "duration": 0.008001, - "end_time": "2026-06-22T19:19:36.789534", + "duration": 0.012021, + "end_time": "2026-09-23T07:16:36.640402", "exception": false, - "start_time": "2026-06-22T19:19:36.781533", + "start_time": "2026-09-23T07:16:36.628381", "status": "completed" }, "tags": [] @@ -343,10 +352,10 @@ "id": "55762f40", "metadata": { "papermill": { - "duration": 0.008, - "end_time": "2026-06-22T19:19:36.805560", + "duration": 0.023314, + "end_time": "2026-09-23T07:16:36.663716", "exception": false, - "start_time": "2026-06-22T19:19:36.797560", + "start_time": "2026-09-23T07:16:36.640402", "status": "completed" }, "tags": [] @@ -382,16 +391,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-24T18:47:28.973924Z", - "iopub.status.busy": "2026-07-24T18:47:28.973624Z", - "iopub.status.idle": "2026-07-24T18:47:29.224623Z", - "shell.execute_reply": "2026-07-24T18:47:29.224372Z" + "iopub.execute_input": "2026-09-23T07:16:36.683177Z", + "iopub.status.busy": "2026-09-23T07:16:36.683177Z", + "iopub.status.idle": "2026-09-23T07:16:36.976594Z", + "shell.execute_reply": "2026-09-23T07:16:36.975581Z" }, "papermill": { - "duration": 0.195742, - "end_time": "2026-06-22T19:19:37.008930", + "duration": 0.304412, + "end_time": "2026-09-23T07:16:36.976594", "exception": false, - "start_time": "2026-06-22T19:19:36.813188", + "start_time": "2026-09-23T07:16:36.672182", "status": "completed" }, "tags": [] @@ -531,10 +540,10 @@ "id": "ce2979c2", "metadata": { "papermill": { - "duration": 0.007999, - "end_time": "2026-06-22T19:19:37.025455", + "duration": 0.019366, + "end_time": "2026-09-23T07:16:37.012698", "exception": false, - "start_time": "2026-06-22T19:19:37.017456", + "start_time": "2026-09-23T07:16:36.993332", "status": "completed" }, "tags": [] @@ -577,7 +586,16 @@ { "cell_type": "markdown", "id": "infer8-mermaid-bellman", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.042025, + "end_time": "2026-09-23T07:16:37.077004", + "exception": false, + "start_time": "2026-09-23T07:16:37.034979", + "status": "completed" + }, + "tags": [] + }, "source": [ "Le même **backup**, rendu sous forme de graphe : l'état `s` interroge chaque action,\n", "chaque action moyenne les valeurs des états successeurs pondérées par leur probabilité de\n", @@ -618,10 +636,10 @@ "id": "07f88d10", "metadata": { "papermill": { - "duration": 0.00878, - "end_time": "2026-06-22T19:19:37.043293", + "duration": 0.01374, + "end_time": "2026-09-23T07:16:37.116738", "exception": false, - "start_time": "2026-06-22T19:19:37.034513", + "start_time": "2026-09-23T07:16:37.102998", "status": "completed" }, "tags": [] @@ -655,10 +673,10 @@ "id": "ecf27939", "metadata": { "papermill": { - "duration": 0.007701, - "end_time": "2026-06-22T19:19:37.059770", + "duration": 0.012265, + "end_time": "2026-09-23T07:16:37.144207", "exception": false, - "start_time": "2026-06-22T19:19:37.052069", + "start_time": "2026-09-23T07:16:37.131942", "status": "completed" }, "tags": [] @@ -712,10 +730,10 @@ "id": "c7fbc315", "metadata": { "papermill": { - "duration": 0.008127, - "end_time": "2026-06-22T19:19:37.076128", + "duration": 0.007738, + "end_time": "2026-09-23T07:16:37.166697", "exception": false, - "start_time": "2026-06-22T19:19:37.068001", + "start_time": "2026-09-23T07:16:37.158959", "status": "completed" }, "tags": [] @@ -742,10 +760,10 @@ "id": "f20ff207", "metadata": { "papermill": { - "duration": 0.008294, - "end_time": "2026-06-22T19:19:37.092721", + "duration": 0.007708, + "end_time": "2026-09-23T07:16:37.184996", "exception": false, - "start_time": "2026-06-22T19:19:37.084427", + "start_time": "2026-09-23T07:16:37.177288", "status": "completed" }, "tags": [] @@ -797,16 +815,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-24T18:47:29.227032Z", - "iopub.status.busy": "2026-07-24T18:47:29.226580Z", - "iopub.status.idle": "2026-07-24T18:47:29.431825Z", - "shell.execute_reply": "2026-07-24T18:47:29.431215Z" + "iopub.execute_input": "2026-09-23T07:16:37.202047Z", + "iopub.status.busy": "2026-09-23T07:16:37.202047Z", + "iopub.status.idle": "2026-09-23T07:16:37.351318Z", + "shell.execute_reply": "2026-09-23T07:16:37.351318Z" }, "papermill": { - "duration": 0.210813, - "end_time": "2026-06-22T19:19:37.311650", + "duration": 0.159345, + "end_time": "2026-09-23T07:16:37.351836", "exception": false, - "start_time": "2026-06-22T19:19:37.100837", + "start_time": "2026-09-23T07:16:37.192491", "status": "completed" }, "tags": [] @@ -1160,10 +1178,10 @@ "id": "5b212e3c", "metadata": { "papermill": { - "duration": 0.009999, - "end_time": "2026-06-22T19:19:37.330647", + "duration": 0.010565, + "end_time": "2026-09-23T07:16:37.372771", "exception": false, - "start_time": "2026-06-22T19:19:37.320648", + "start_time": "2026-09-23T07:16:37.362206", "status": "completed" }, "tags": [] @@ -1196,10 +1214,10 @@ "id": "8dac1b7c", "metadata": { "papermill": { - "duration": 0.008328, - "end_time": "2026-06-22T19:19:37.347980", + "duration": 0.011513, + "end_time": "2026-09-23T07:16:37.393380", "exception": false, - "start_time": "2026-06-22T19:19:37.339652", + "start_time": "2026-09-23T07:16:37.381867", "status": "completed" }, "tags": [] @@ -1253,16 +1271,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-24T18:47:29.433662Z", - "iopub.status.busy": "2026-07-24T18:47:29.433400Z", - "iopub.status.idle": "2026-07-24T18:47:29.589204Z", - "shell.execute_reply": "2026-07-24T18:47:29.588954Z" + "iopub.execute_input": "2026-09-23T07:16:37.425477Z", + "iopub.status.busy": "2026-09-23T07:16:37.424946Z", + "iopub.status.idle": "2026-09-23T07:16:37.569233Z", + "shell.execute_reply": "2026-09-23T07:16:37.569233Z" }, "papermill": { - "duration": 0.116509, - "end_time": "2026-06-22T19:19:37.469160", + "duration": 0.159151, + "end_time": "2026-09-23T07:16:37.569233", "exception": false, - "start_time": "2026-06-22T19:19:37.352651", + "start_time": "2026-09-23T07:16:37.410082", "status": "completed" }, "tags": [] @@ -1409,10 +1427,10 @@ "id": "be2b43a1", "metadata": { "papermill": { - "duration": 0.01, - "end_time": "2026-06-22T19:19:37.489160", + "duration": 0.012229, + "end_time": "2026-09-23T07:16:37.595725", "exception": false, - "start_time": "2026-06-22T19:19:37.479160", + "start_time": "2026-09-23T07:16:37.583496", "status": "completed" }, "tags": [] @@ -1448,10 +1466,10 @@ "id": "8029db1f", "metadata": { "papermill": { - "duration": 0.0105, - "end_time": "2026-06-22T19:19:37.510149", + "duration": 0.01365, + "end_time": "2026-09-23T07:16:37.618159", "exception": false, - "start_time": "2026-06-22T19:19:37.499649", + "start_time": "2026-09-23T07:16:37.604509", "status": "completed" }, "tags": [] @@ -1492,16 +1510,16 @@ "id": "35361e6b", "metadata": { "execution": { - "iopub.execute_input": "2026-07-24T18:47:29.591014Z", - "iopub.status.busy": "2026-07-24T18:47:29.590725Z", - "iopub.status.idle": "2026-07-24T18:47:29.704111Z", - "shell.execute_reply": "2026-07-24T18:47:29.703849Z" + "iopub.execute_input": "2026-09-23T07:16:37.636214Z", + "iopub.status.busy": "2026-09-23T07:16:37.636214Z", + "iopub.status.idle": "2026-09-23T07:16:37.701513Z", + "shell.execute_reply": "2026-09-23T07:16:37.701513Z" }, "papermill": { - "duration": 0.073683, - "end_time": "2026-06-22T19:19:37.594013", + "duration": 0.074826, + "end_time": "2026-09-23T07:16:37.701513", "exception": false, - "start_time": "2026-06-22T19:19:37.520330", + "start_time": "2026-09-23T07:16:37.626687", "status": "completed" }, "tags": [] @@ -1618,10 +1636,10 @@ "id": "b68a9f79", "metadata": { "papermill": { - "duration": 0.025002, - "end_time": "2026-06-22T19:19:37.629019", + "duration": 0.011007, + "end_time": "2026-09-23T07:16:37.722883", "exception": false, - "start_time": "2026-06-22T19:19:37.604017", + "start_time": "2026-09-23T07:16:37.711876", "status": "completed" }, "tags": [] @@ -1665,16 +1683,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-24T18:47:29.705771Z", - "iopub.status.busy": "2026-07-24T18:47:29.705506Z", - "iopub.status.idle": "2026-07-24T18:47:29.819672Z", - "shell.execute_reply": "2026-07-24T18:47:29.819391Z" + "iopub.execute_input": "2026-09-23T07:16:37.742105Z", + "iopub.status.busy": "2026-09-23T07:16:37.741103Z", + "iopub.status.idle": "2026-09-23T07:16:37.809519Z", + "shell.execute_reply": "2026-09-23T07:16:37.809519Z" }, "papermill": { - "duration": 0.109292, - "end_time": "2026-06-22T19:19:37.748310", + "duration": 0.07721, + "end_time": "2026-09-23T07:16:37.809519", "exception": false, - "start_time": "2026-06-22T19:19:37.639018", + "start_time": "2026-09-23T07:16:37.732309", "status": "completed" }, "tags": [] @@ -1821,10 +1839,10 @@ "id": "f524c19b", "metadata": { "papermill": { - "duration": 0.011, - "end_time": "2026-06-22T19:19:37.791615", + "duration": 0.010287, + "end_time": "2026-09-23T07:16:37.829165", "exception": false, - "start_time": "2026-06-22T19:19:37.780615", + "start_time": "2026-09-23T07:16:37.818878", "status": "completed" }, "tags": [] @@ -1870,10 +1888,10 @@ "id": "bace8761", "metadata": { "papermill": { - "duration": 0.010778, - "end_time": "2026-06-22T19:19:37.770615", + "duration": 0.00898, + "end_time": "2026-09-23T07:16:37.846104", "exception": false, - "start_time": "2026-06-22T19:19:37.759837", + "start_time": "2026-09-23T07:16:37.837124", "status": "completed" }, "tags": [] @@ -1915,10 +1933,10 @@ "id": "4b46d4c2", "metadata": { "papermill": { - "duration": 0.01, - "end_time": "2026-06-22T19:19:37.812616", + "duration": 0.007994, + "end_time": "2026-09-23T07:16:37.861246", "exception": false, - "start_time": "2026-06-22T19:19:37.802616", + "start_time": "2026-09-23T07:16:37.853252", "status": "completed" }, "tags": [] @@ -1954,10 +1972,10 @@ "id": "6dff1cde", "metadata": { "papermill": { - "duration": 0.012494, - "end_time": "2026-06-22T19:19:37.835110", + "duration": 0.006501, + "end_time": "2026-09-23T07:16:37.874837", "exception": false, - "start_time": "2026-06-22T19:19:37.822616", + "start_time": "2026-09-23T07:16:37.868336", "status": "completed" }, "tags": [] @@ -2006,10 +2024,10 @@ "id": "a481adb3", "metadata": { "papermill": { - "duration": 0.010424, - "end_time": "2026-06-22T19:19:37.855960", + "duration": 0.007413, + "end_time": "2026-09-23T07:16:37.891521", "exception": false, - "start_time": "2026-06-22T19:19:37.845536", + "start_time": "2026-09-23T07:16:37.884108", "status": "completed" }, "tags": [] @@ -2055,7 +2073,16 @@ { "cell_type": "markdown", "id": "infer8-mermaid-bandit", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.008344, + "end_time": "2026-09-23T07:16:37.908528", + "exception": false, + "start_time": "2026-09-23T07:16:37.900184", + "status": "completed" + }, + "tags": [] + }, "source": [ "Le même dilemme, rendu sous forme de graphe : depuis un état de connaissance partielle,\n", "l'agent choisit entre exploiter le meilleur bras connu ou explorer un bras encore incertain.\n", @@ -2091,16 +2118,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-24T18:47:29.821717Z", - "iopub.status.busy": "2026-07-24T18:47:29.821466Z", - "iopub.status.idle": "2026-07-24T18:47:29.912851Z", - "shell.execute_reply": "2026-07-24T18:47:29.912597Z" + "iopub.execute_input": "2026-09-23T07:16:37.930383Z", + "iopub.status.busy": "2026-09-23T07:16:37.929379Z", + "iopub.status.idle": "2026-09-23T07:16:37.987214Z", + "shell.execute_reply": "2026-09-23T07:16:37.987214Z" }, "papermill": { - "duration": 0.130349, - "end_time": "2026-06-22T19:19:37.996950", + "duration": 0.067598, + "end_time": "2026-09-23T07:16:37.987214", "exception": false, - "start_time": "2026-06-22T19:19:37.866601", + "start_time": "2026-09-23T07:16:37.919616", "status": "completed" }, "tags": [] @@ -2351,10 +2378,10 @@ "id": "5eeffb31", "metadata": { "papermill": { - "duration": 0.012802, - "end_time": "2026-06-22T19:19:38.020772", + "duration": 0.008265, + "end_time": "2026-09-23T07:16:38.004720", "exception": false, - "start_time": "2026-06-22T19:19:38.007970", + "start_time": "2026-09-23T07:16:37.996455", "status": "completed" }, "tags": [] @@ -2385,10 +2412,10 @@ "id": "b7d42415", "metadata": { "papermill": { - "duration": 0.01152, - "end_time": "2026-06-22T19:19:38.043524", + "duration": 0.008377, + "end_time": "2026-09-23T07:16:38.022281", "exception": false, - "start_time": "2026-06-22T19:19:38.032004", + "start_time": "2026-09-23T07:16:38.013904", "status": "completed" }, "tags": [] @@ -2422,16 +2449,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-24T18:47:29.914824Z", - "iopub.status.busy": "2026-07-24T18:47:29.914536Z", - "iopub.status.idle": "2026-07-24T18:47:30.150395Z", - "shell.execute_reply": "2026-07-24T18:47:30.150027Z" + "iopub.execute_input": "2026-09-23T07:16:38.043835Z", + "iopub.status.busy": "2026-09-23T07:16:38.042831Z", + "iopub.status.idle": "2026-09-23T07:16:38.151014Z", + "shell.execute_reply": "2026-09-23T07:16:38.150014Z" }, "papermill": { - "duration": 0.154173, - "end_time": "2026-06-22T19:19:38.209846", + "duration": 0.119448, + "end_time": "2026-09-23T07:16:38.151014", "exception": false, - "start_time": "2026-06-22T19:19:38.055673", + "start_time": "2026-09-23T07:16:38.031566", "status": "completed" }, "tags": [] @@ -2633,10 +2660,10 @@ "id": "f73b5648", "metadata": { "papermill": { - "duration": 0.013968, - "end_time": "2026-06-22T19:19:38.236124", + "duration": 0.010813, + "end_time": "2026-09-23T07:16:38.172066", "exception": false, - "start_time": "2026-06-22T19:19:38.222156", + "start_time": "2026-09-23T07:16:38.161253", "status": "completed" }, "tags": [] @@ -2676,10 +2703,10 @@ "id": "7be44fc1", "metadata": { "papermill": { - "duration": 0.012942, - "end_time": "2026-06-22T19:19:38.262943", + "duration": 0.012316, + "end_time": "2026-09-23T07:16:38.194644", "exception": false, - "start_time": "2026-06-22T19:19:38.250001", + "start_time": "2026-09-23T07:16:38.182328", "status": "completed" }, "tags": [] @@ -2712,16 +2739,16 @@ "id": "96d1e69a", "metadata": { "execution": { - "iopub.execute_input": "2026-07-24T18:47:30.152571Z", - "iopub.status.busy": "2026-07-24T18:47:30.152146Z", - "iopub.status.idle": "2026-07-24T18:47:30.290671Z", - "shell.execute_reply": "2026-07-24T18:47:30.290370Z" + "iopub.execute_input": "2026-09-23T07:16:38.217307Z", + "iopub.status.busy": "2026-09-23T07:16:38.216803Z", + "iopub.status.idle": "2026-09-23T07:16:38.288600Z", + "shell.execute_reply": "2026-09-23T07:16:38.288600Z" }, "papermill": { - "duration": 0.074294, - "end_time": "2026-06-22T19:19:38.349990", + "duration": 0.083744, + "end_time": "2026-09-23T07:16:38.288600", "exception": false, - "start_time": "2026-06-22T19:19:38.275696", + "start_time": "2026-09-23T07:16:38.204856", "status": "completed" }, "tags": [] @@ -2813,10 +2840,10 @@ "id": "6720fc60", "metadata": { "papermill": { - "duration": 0.013324, - "end_time": "2026-06-22T19:19:38.377954", + "duration": 0.010278, + "end_time": "2026-09-23T07:16:38.309171", "exception": false, - "start_time": "2026-06-22T19:19:38.364630", + "start_time": "2026-09-23T07:16:38.298893", "status": "completed" }, "tags": [] @@ -2877,7 +2904,16 @@ { "cell_type": "markdown", "id": "infer8-mermaid-pomdp", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.010104, + "end_time": "2026-09-23T07:16:38.329202", + "exception": false, + "start_time": "2026-09-23T07:16:38.319098", + "status": "completed" + }, + "tags": [] + }, "source": [ "Les mêmes structures, rendues sous forme de graphes. **MDP vs POMDP** — dans un POMDP,\n", "l'état réel est caché et la politique ne dispose que d'observations bruitées :\n", @@ -2941,10 +2977,10 @@ "id": "4d41d1e6", "metadata": { "papermill": { - "duration": 0.013001, - "end_time": "2026-06-22T19:19:38.407212", + "duration": 0.011977, + "end_time": "2026-09-23T07:16:38.354180", "exception": false, - "start_time": "2026-06-22T19:19:38.394211", + "start_time": "2026-09-23T07:16:38.342203", "status": "completed" }, "tags": [] @@ -2974,10 +3010,10 @@ "id": "d13aacc9", "metadata": { "papermill": { - "duration": 0.011999, - "end_time": "2026-06-22T19:19:38.431211", + "duration": 0.011555, + "end_time": "2026-09-23T07:16:38.376131", "exception": false, - "start_time": "2026-06-22T19:19:38.419212", + "start_time": "2026-09-23T07:16:38.364576", "status": "completed" }, "tags": [] @@ -3016,10 +3052,10 @@ "id": "04302366", "metadata": { "papermill": { - "duration": 0.012001, - "end_time": "2026-06-22T19:19:38.456215", + "duration": 0.016094, + "end_time": "2026-09-23T07:16:38.404741", "exception": false, - "start_time": "2026-06-22T19:19:38.444214", + "start_time": "2026-09-23T07:16:38.388647", "status": "completed" }, "tags": [] @@ -3063,10 +3099,10 @@ "id": "b402e6d6", "metadata": { "papermill": { - "duration": 0.011993, - "end_time": "2026-06-22T19:19:38.479455", + "duration": 0.010363, + "end_time": "2026-09-23T07:16:38.428152", "exception": false, - "start_time": "2026-06-22T19:19:38.467462", + "start_time": "2026-09-23T07:16:38.417789", "status": "completed" }, "tags": [] @@ -3125,10 +3161,10 @@ "id": "a1354301", "metadata": { "papermill": { - "duration": 0.012001, - "end_time": "2026-06-22T19:19:38.510255", + "duration": 0.018296, + "end_time": "2026-09-23T07:16:38.461281", "exception": false, - "start_time": "2026-06-22T19:19:38.498254", + "start_time": "2026-09-23T07:16:38.442985", "status": "completed" }, "tags": [] @@ -3209,16 +3245,16 @@ "language": "csharp" }, "execution": { - "iopub.execute_input": "2026-07-24T18:47:30.292840Z", - "iopub.status.busy": "2026-07-24T18:47:30.292569Z", - "iopub.status.idle": "2026-07-24T18:47:30.374531Z", - "shell.execute_reply": "2026-07-24T18:47:30.374258Z" + "iopub.execute_input": "2026-09-23T07:16:38.496258Z", + "iopub.status.busy": "2026-09-23T07:16:38.495259Z", + "iopub.status.idle": "2026-09-23T07:16:38.544517Z", + "shell.execute_reply": "2026-09-23T07:16:38.544517Z" }, "papermill": { - "duration": 0.099185, - "end_time": "2026-06-22T19:19:38.648456", + "duration": 0.066506, + "end_time": "2026-09-23T07:16:38.544517", "exception": false, - "start_time": "2026-06-22T19:19:38.549271", + "start_time": "2026-09-23T07:16:38.478011", "status": "completed" }, "tags": [] @@ -3418,10 +3454,10 @@ "id": "5d75e523", "metadata": { "papermill": { - "duration": 0.012999, - "end_time": "2026-06-22T19:19:38.675083", + "duration": 0.011125, + "end_time": "2026-09-23T07:16:38.565678", "exception": false, - "start_time": "2026-06-22T19:19:38.662084", + "start_time": "2026-09-23T07:16:38.554553", "status": "completed" }, "tags": [] @@ -3459,19 +3495,19 @@ "id": "fe0ab144", "metadata": { "execution": { - "iopub.execute_input": "2026-07-24T18:47:30.376345Z", - "iopub.status.busy": "2026-07-24T18:47:30.376029Z", - "iopub.status.idle": "2026-07-24T18:47:33.022332Z", - "shell.execute_reply": "2026-07-24T18:47:33.022604Z" + "iopub.execute_input": "2026-09-23T07:16:38.588679Z", + "iopub.status.busy": "2026-09-23T07:16:38.588679Z", + "iopub.status.idle": "2026-09-23T07:16:40.998469Z", + "shell.execute_reply": "2026-09-23T07:16:40.998469Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 1.787715, - "end_time": "2026-06-22T19:19:40.475799", + "duration": 2.427315, + "end_time": "2026-09-23T07:16:41.004269", "exception": false, - "start_time": "2026-06-22T19:19:38.688084", + "start_time": "2026-09-23T07:16:38.576954", "status": "completed" }, "polyglot_notebook": { @@ -3514,12 +3550,12 @@ "text/html": [ "\n", "
\n", - "
Model_MaintenancePOMDP_07_24_26_20_47_30_68.svg
\n", + "
Model_MaintenancePOMDP_09_23_26_09_16_38_75.svg
\n", "
\n", " \r\n", "\r\n", - "\r\n", "\r\n", "Evolution de P(Defaillant) - hausse avec les 'Anormal'00.1130.2270.340.454Priort=1 (Normal)t=2 (Anormal)t=3 (Anormal)" + "Evolution de P(Defaillant) - hausse avec les 'Anormal'00.1130.2270.340.454Priort=1 (Normal)t=2 (Anormal)t=3 (Anormal)" ] }, "metadata": {}, @@ -4503,10 +4530,10 @@ "id": "ce194610", "metadata": { "papermill": { - "duration": 0.026007, - "end_time": "2026-06-22T19:19:41.647375", + "duration": 0.012605, + "end_time": "2026-09-23T07:16:42.682464", "exception": false, - "start_time": "2026-06-22T19:19:41.621368", + "start_time": "2026-09-23T07:16:42.669859", "status": "completed" }, "tags": [] @@ -4544,10 +4571,10 @@ "id": "41b5c234", "metadata": { "papermill": { - "duration": 0.01293, - "end_time": "2026-06-22T19:19:38.536256", + "duration": 0.013142, + "end_time": "2026-09-23T07:16:42.709833", "exception": false, - "start_time": "2026-06-22T19:19:38.523326", + "start_time": "2026-09-23T07:16:42.696691", "status": "completed" }, "tags": [] @@ -4593,10 +4620,10 @@ "id": "d1ca64c0", "metadata": { "papermill": { - "duration": 0.015981, - "end_time": "2026-06-22T19:19:41.680374", + "duration": 0.01218, + "end_time": "2026-09-23T07:16:42.735407", "exception": false, - "start_time": "2026-06-22T19:19:41.664393", + "start_time": "2026-09-23T07:16:42.723227", "status": "completed" }, "tags": [] @@ -4626,10 +4653,10 @@ "id": "870855b1", "metadata": { "papermill": { - "duration": 0.026793, - "end_time": "2026-06-22T19:19:41.728310", + "duration": 0.012204, + "end_time": "2026-09-23T07:16:42.758782", "exception": false, - "start_time": "2026-06-22T19:19:41.701517", + "start_time": "2026-09-23T07:16:42.746578", "status": "completed" }, "tags": [] @@ -4662,19 +4689,19 @@ "id": "1133b33c", "metadata": { "execution": { - "iopub.execute_input": "2026-07-24T18:47:35.055098Z", - "iopub.status.busy": "2026-07-24T18:47:35.054827Z", - "iopub.status.idle": "2026-07-24T18:47:35.128698Z", - "shell.execute_reply": "2026-07-24T18:47:35.128466Z" + "iopub.execute_input": "2026-09-23T07:16:42.785228Z", + "iopub.status.busy": "2026-09-23T07:16:42.785228Z", + "iopub.status.idle": "2026-09-23T07:16:42.832152Z", + "shell.execute_reply": "2026-09-23T07:16:42.831144Z" }, "language_info": { "name": "polyglot-notebook" }, "papermill": { - "duration": 0.078093, - "end_time": "2026-06-22T19:19:41.829819", + "duration": 0.061141, + "end_time": "2026-09-23T07:16:42.832152", "exception": false, - "start_time": "2026-06-22T19:19:41.751726", + "start_time": "2026-09-23T07:16:42.771011", "status": "completed" }, "polyglot_notebook": { @@ -4715,10 +4742,10 @@ "id": "84b80204", "metadata": { "papermill": { - "duration": 0.018314, - "end_time": "2026-06-22T19:19:41.868124", + "duration": 0.016293, + "end_time": "2026-09-23T07:16:42.869888", "exception": false, - "start_time": "2026-06-22T19:19:41.849810", + "start_time": "2026-09-23T07:16:42.853595", "status": "completed" }, "tags": [] @@ -4792,14 +4819,14 @@ }, "papermill": { "default_parameters": {}, - "duration": 10.183016, - "end_time": "2026-06-22T19:19:42.115091", + "duration": 12.713684, + "end_time": "2026-09-23T07:16:43.020159", "environment_variables": {}, "exception": null, "input_path": "DecInfer-08-Sequential.ipynb", "output_path": "DecInfer-08-Sequential.ipynb", "parameters": {}, - "start_time": "2026-06-22T19:19:31.932075", + "start_time": "2026-09-23T07:16:30.306475", "version": "2.6.0" }, "polyglot_notebook": { @@ -4817,4 +4844,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-10-Thompson-Sampling.ipynb b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-10-Thompson-Sampling.ipynb index d061821efb..18c57817ed 100644 --- a/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-10-Thompson-Sampling.ipynb +++ b/MyIA.AI.Notebooks/Probas/DecisionTheory/DecInfer/DecInfer-10-Thompson-Sampling.ipynb @@ -5,10 +5,10 @@ "id": "cell-065982ec", "metadata": { "papermill": { - "duration": 0.005603, - "end_time": "2026-07-31T19:52:05.422055", + "duration": 0.009187, + "end_time": "2026-09-23T07:20:15.954405", "exception": false, - "start_time": "2026-07-31T19:52:05.416452", + "start_time": "2026-09-23T07:20:15.945218", "status": "completed" }, "tags": [] @@ -44,10 +44,10 @@ "id": "cell-e1a1df7a", "metadata": { "papermill": { - "duration": 0.00355, - "end_time": "2026-07-31T19:52:05.431391", + "duration": 0.009637, + "end_time": "2026-09-23T07:20:15.972048", "exception": false, - "start_time": "2026-07-31T19:52:05.427841", + "start_time": "2026-09-23T07:20:15.962411", "status": "completed" }, "tags": [] @@ -80,10 +80,10 @@ "id": "cell-cf83f140", "metadata": { "papermill": { - "duration": 0.002369, - "end_time": "2026-07-31T19:52:05.436386", + "duration": 0.007477, + "end_time": "2026-09-23T07:20:15.987917", "exception": false, - "start_time": "2026-07-31T19:52:05.434017", + "start_time": "2026-09-23T07:20:15.980440", "status": "completed" }, "tags": [] @@ -100,39 +100,151 @@ "id": "cell-eb337d48", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:05.450439Z", - "iopub.status.busy": "2026-07-31T19:52:05.444626Z", - "iopub.status.idle": "2026-07-31T19:52:08.585109Z", - "shell.execute_reply": "2026-07-31T19:52:08.580921Z" + "iopub.execute_input": "2026-09-23T07:20:16.027937Z", + "iopub.status.busy": "2026-09-23T07:20:16.024929Z", + "iopub.status.idle": "2026-09-23T07:20:19.936093Z", + "shell.execute_reply": "2026-09-23T07:20:19.927299Z" }, "papermill": { - "duration": 3.146266, - "end_time": "2026-07-31T19:52:08.585214", + "duration": 3.939171, + "end_time": "2026-09-23T07:20:19.936843", "exception": false, - "start_time": "2026-07-31T19:52:05.438948", + "start_time": "2026-09-23T07:20:15.997672", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "display_data", "data": { - "text/html": "" + "text/html": [ + "\r\n", + "
\r\n", + " \r\n", + " \r\n", + "
" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "display_data", "data": { - "text/html": "
Installing Packages
  • Microsoft.ML.Probabilistic
  • Microsoft.ML.Probabilistic.Compiler
" + "text/html": [ + "
Installed Packages
  • Microsoft.ML.Probabilistic, 0.4.2504.701
  • Microsoft.ML.Probabilistic.Compiler, 0.4.2504.701
" + ] }, - "metadata": {} + "metadata": {}, + "output_type": "display_data" }, { - "output_type": "stream", "name": "stdout", - "text": "Infer.NET charge.\r\n" + "output_type": "stream", + "text": [ + "Infer.NET charge.\r\n" + ] } ], "source": [ @@ -151,10 +263,10 @@ "id": "cell-45c5e1c5", "metadata": { "papermill": { - "duration": 0.002833, - "end_time": "2026-07-31T19:52:08.590887", + "duration": 0.008589, + "end_time": "2026-09-23T07:20:19.954452", "exception": false, - "start_time": "2026-07-31T19:52:08.588054", + "start_time": "2026-09-23T07:20:19.945863", "status": "completed" }, "tags": [] @@ -169,30 +281,34 @@ "id": "cell-b0f29d4f", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:08.597345Z", - "iopub.status.busy": "2026-07-31T19:52:08.597170Z", - "iopub.status.idle": "2026-07-31T19:52:09.260742Z", - "shell.execute_reply": "2026-07-31T19:52:09.260541Z" + "iopub.execute_input": "2026-09-23T07:20:19.975211Z", + "iopub.status.busy": "2026-09-23T07:20:19.975211Z", + "iopub.status.idle": "2026-09-23T07:20:21.288583Z", + "shell.execute_reply": "2026-09-23T07:20:21.287564Z" }, "papermill": { - "duration": 0.667299, - "end_time": "2026-07-31T19:52:09.260812", + "duration": 1.323846, + "end_time": "2026-09-23T07:20:21.288583", "exception": false, - "start_time": "2026-07-31T19:52:08.593513", + "start_time": "2026-09-23T07:20:19.964737", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "FactorGraphHelper charge.\r\n" + "output_type": "stream", + "text": [ + "FactorGraphHelper charge.\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Graphviz disponible : True\r\n" + "output_type": "stream", + "text": [ + "Graphviz disponible : True\r\n" + ] } ], "source": [ @@ -206,10 +322,10 @@ "id": "cell-8be332b6", "metadata": { "papermill": { - "duration": 0.003539, - "end_time": "2026-07-31T19:52:09.268872", + "duration": 0.010112, + "end_time": "2026-09-23T07:20:21.309935", "exception": false, - "start_time": "2026-07-31T19:52:09.265333", + "start_time": "2026-09-23T07:20:21.299823", "status": "completed" }, "tags": [] @@ -231,40 +347,48 @@ "id": "cell-0629643f", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:09.278136Z", - "iopub.status.busy": "2026-07-31T19:52:09.277696Z", - "iopub.status.idle": "2026-07-31T19:52:10.745823Z", - "shell.execute_reply": "2026-07-31T19:52:10.745691Z" + "iopub.execute_input": "2026-09-23T07:20:21.336551Z", + "iopub.status.busy": "2026-09-23T07:20:21.336551Z", + "iopub.status.idle": "2026-09-23T07:20:24.044712Z", + "shell.execute_reply": "2026-09-23T07:20:24.044121Z" }, "papermill": { - "duration": 1.473998, - "end_time": "2026-07-31T19:52:10.745887", + "duration": 2.723421, + "end_time": "2026-09-23T07:20:24.044712", "exception": false, - "start_time": "2026-07-31T19:52:09.271889", + "start_time": "2026-09-23T07:20:21.321291", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Apres 7 succes / 3 echecs :\r\n" + "output_type": "stream", + "text": [ + "Apres 7 succes / 3 echecs :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Posterior Infer.NET = Beta(8,0, 4,0) ; mean = 0,667\r\n" + "output_type": "stream", + "text": [ + " Posterior Infer.NET = Beta(8,0, 4,0) ; mean = 0,667\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Formule conjuguee = Beta(8, 4) ; mean = 0,667\r\n" + "output_type": "stream", + "text": [ + " Formule conjuguee = Beta(8, 4) ; mean = 0,667\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " => Le moteur recouvre la forme analytique (cas conjugue favorable).\r\n" + "output_type": "stream", + "text": [ + " => Le moteur recouvre la forme analytique (cas conjugue favorable).\r\n" + ] } ], "source": [ @@ -294,10 +418,10 @@ "id": "cell-2a769548", "metadata": { "papermill": { - "duration": 0.002571, - "end_time": "2026-07-31T19:52:10.751430", + "duration": 0.010968, + "end_time": "2026-09-23T07:20:24.064855", "exception": false, - "start_time": "2026-07-31T19:52:10.748859", + "start_time": "2026-09-23T07:20:24.053887", "status": "completed" }, "tags": [] @@ -314,37 +438,111 @@ "id": "cell-702b3d96", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:10.758273Z", - "iopub.status.busy": "2026-07-31T19:52:10.757926Z", - "iopub.status.idle": "2026-07-31T19:52:11.076382Z", - "shell.execute_reply": "2026-07-31T19:52:11.076480Z" + "iopub.execute_input": "2026-09-23T07:20:24.082918Z", + "iopub.status.busy": "2026-09-23T07:20:24.082918Z", + "iopub.status.idle": "2026-09-23T07:20:25.478009Z", + "shell.execute_reply": "2026-09-23T07:20:25.478009Z" }, "papermill": { - "duration": 0.322511, - "end_time": "2026-07-31T19:52:11.076546", + "duration": 1.404883, + "end_time": "2026-09-23T07:20:25.478009", "exception": false, - "start_time": "2026-07-31T19:52:10.754035", + "start_time": "2026-09-23T07:20:24.073126", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Modele Beta-Bernoulli : theta (Beta) -> 6 facteurs Bernoulli (un par tirage observe).\r\n" + "output_type": "stream", + "text": [ + "Modele Beta-Bernoulli : theta (Beta) -> 6 facteurs Bernoulli (un par tirage observe).\r\n" + ] }, { - "output_type": "display_data", "data": { - "text/html": "\r\n
\r\n
Model_08_19_26_03_11_19_98.svg
\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\nModel\r\n\r\n\r\n\r\nnode0\r\n\r\nBeta(1,1)[mean=0,5]\r\n\r\n\r\n\r\nnode1\r\n\r\nRandom\r\n\r\n\r\n\r\nnode0->node1\r\n\r\n\r\ndist\r\n\r\n\r\n\r\nnode2\r\n\r\ntheta\r\n\r\n\r\n\r\nnode1->node2\r\n\r\n\r\n\r\n\r\n\r\nnode3\r\n\r\nBernoulli\r\n\r\n\r\n\r\nnode2->node3\r\n\r\n\r\nprobTrue\r\n\r\n\r\n\r\nnode4\r\n\r\nrecompenses[tirages]\r\n\r\n\r\n\r\nnode3->node4\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
" + "text/html": [ + "\n", + "
\n", + "
Model_09_23_26_09_20_24_20.svg
\n", + "
\n", + " \r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "Model\r\n", + "\r\n", + "\r\n", + "\r\n", + "node0\r\n", + "\r\n", + "Beta(1,1)[mean=0,5]\r\n", + "\r\n", + "\r\n", + "\r\n", + "node1\r\n", + "\r\n", + "Random\r\n", + "\r\n", + "\r\n", + "\r\n", + "node0->node1\r\n", + "\r\n", + "\r\n", + "dist\r\n", + "\r\n", + "\r\n", + "\r\n", + "node2\r\n", + "\r\n", + "theta\r\n", + "\r\n", + "\r\n", + "\r\n", + "node1->node2\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "node3\r\n", + "\r\n", + "Bernoulli\r\n", + "\r\n", + "\r\n", + "\r\n", + "node2->node3\r\n", + "\r\n", + "\r\n", + "probTrue\r\n", + "\r\n", + "\r\n", + "\r\n", + "node4\r\n", + "\r\n", + "recompenses[tirages]\r\n", + "\r\n", + "\r\n", + "\r\n", + "node3->node4\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\r\n", + "\n", + "
\n", + "
" + ] }, - "metadata": {} - }, - { - "output_type": "stream", - "name": "stderr", - "text": "\r\nwarning CS1701: En supposant que la référence d'assembly 'Microsoft.AspNetCore.Html.Abstractions, Version=2.2.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' utilisée par 'Microsoft.DotNet.Interactive' correspond à l'identité 'Microsoft.AspNetCore.Html.Abstractions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' de 'Microsoft.AspNetCore.Html.Abstractions', il se peut que vous deviez fournir une stratégie runtime\r\n\r\n" + "metadata": {}, + "output_type": "display_data" } ], "source": [ @@ -359,7 +557,7 @@ "engFG.ShowFactorGraph = true;\n", "var _fg = engFG.Infer(thetaFG);\n", "Console.WriteLine(\"Modele Beta-Bernoulli : theta (Beta) -> 6 facteurs Bernoulli (un par tirage observe).\");\n", - "display(HTML(FactorGraphHelper.GetLatestFactorGraphHtml()));" + "FactorGraphHelper.GetLatestFactorGraphHtml().DisplayAs(\"text/html\");" ] }, { @@ -367,10 +565,10 @@ "id": "cell-50c9bbca", "metadata": { "papermill": { - "duration": 0.004052, - "end_time": "2026-07-31T19:52:11.083920", + "duration": 0.007246, + "end_time": "2026-09-23T07:20:25.494499", "exception": false, - "start_time": "2026-07-31T19:52:11.079868", + "start_time": "2026-09-23T07:20:25.487253", "status": "completed" }, "tags": [] @@ -387,60 +585,76 @@ "id": "cell-5884b7f3", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:11.098178Z", - "iopub.status.busy": "2026-07-31T19:52:11.097780Z", - "iopub.status.idle": "2026-07-31T19:52:12.008598Z", - "shell.execute_reply": "2026-07-31T19:52:12.008402Z" + "iopub.execute_input": "2026-09-23T07:20:25.516282Z", + "iopub.status.busy": "2026-09-23T07:20:25.515161Z", + "iopub.status.idle": "2026-09-23T07:20:27.078553Z", + "shell.execute_reply": "2026-09-23T07:20:27.078037Z" }, "papermill": { - "duration": 0.919002, - "end_time": "2026-07-31T19:52:12.008661", + "duration": 1.572796, + "end_time": "2026-09-23T07:20:27.078553", "exception": false, - "start_time": "2026-07-31T19:52:11.089659", + "start_time": "2026-09-23T07:20:25.505757", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Vraie moyenne du bras = 0,70 (inconnue de l algorithme)\r\n" + "output_type": "stream", + "text": [ + "Vraie moyenne du bras = 0,70 (inconnue de l algorithme)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " N tirages | posterior mean | ic 95% (approx)\r\n" + "output_type": "stream", + "text": [ + " N tirages | posterior mean | ic 95% (approx)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " ------------------------------------------\r\n" + "output_type": "stream", + "text": [ + " ------------------------------------------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 5 | 0,857 | [0,615, 1,000]\r\n" + "output_type": "stream", + "text": [ + " 5 | 0,857 | [0,615, 1,000]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 20 | 0,727 | [0,545, 0,909]\r\n" + "output_type": "stream", + "text": [ + " 20 | 0,727 | [0,545, 0,909]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 50 | 0,769 | [0,656, 0,883]\r\n" + "output_type": "stream", + "text": [ + " 50 | 0,769 | [0,656, 0,883]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 200 | 0,663 | [0,598, 0,728]\r\n" + "output_type": "stream", + "text": [ + " 200 | 0,663 | [0,598, 0,728]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " => Le posterior se resserre autour de la vraie moyenne quand N croit.\r\n" + "output_type": "stream", + "text": [ + " => Le posterior se resserre autour de la vraie moyenne quand N croit.\r\n" + ] } ], "source": [ @@ -474,7 +688,16 @@ { "cell_type": "markdown", "id": "cell-di10-interp-a", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.009703, + "end_time": "2026-09-23T07:20:27.099078", + "exception": false, + "start_time": "2026-09-23T07:20:27.089375", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture du résultat : le posterior se resserre au rythme des données\n", "\n", @@ -491,10 +714,10 @@ "id": "cell-15063fa1", "metadata": { "papermill": { - "duration": 0.00292, - "end_time": "2026-07-31T19:52:12.014913", + "duration": 0.009385, + "end_time": "2026-09-23T07:20:27.118244", "exception": false, - "start_time": "2026-07-31T19:52:12.011993", + "start_time": "2026-09-23T07:20:27.108859", "status": "completed" }, "tags": [] @@ -513,25 +736,27 @@ "id": "cell-775a0d0a", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:12.021610Z", - "iopub.status.busy": "2026-07-31T19:52:12.021424Z", - "iopub.status.idle": "2026-07-31T19:52:12.080967Z", - "shell.execute_reply": "2026-07-31T19:52:12.080837Z" + "iopub.execute_input": "2026-09-23T07:20:27.139099Z", + "iopub.status.busy": "2026-09-23T07:20:27.139099Z", + "iopub.status.idle": "2026-09-23T07:20:27.236178Z", + "shell.execute_reply": "2026-09-23T07:20:27.236178Z" }, "papermill": { - "duration": 0.063262, - "end_time": "2026-07-31T19:52:12.081029", + "duration": 0.108823, + "end_time": "2026-09-23T07:20:27.236909", "exception": false, - "start_time": "2026-07-31T19:52:12.017767", + "start_time": "2026-09-23T07:20:27.128086", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Classe BayesArm definie (modele masque, moteur reutilise).\r\n" + "output_type": "stream", + "text": [ + "Classe BayesArm definie (modele masque, moteur reutilise).\r\n" + ] } ], "source": [ @@ -588,10 +813,10 @@ "id": "c3757d65", "metadata": { "papermill": { - "duration": 0.002994, - "end_time": "2026-07-31T19:52:12.087561", + "duration": 0.009001, + "end_time": "2026-09-23T07:20:27.255445", "exception": false, - "start_time": "2026-07-31T19:52:12.084567", + "start_time": "2026-09-23T07:20:27.246444", "status": "completed" }, "tags": [] @@ -608,35 +833,41 @@ "id": "46507dc2", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:12.094449Z", - "iopub.status.busy": "2026-07-31T19:52:12.094273Z", - "iopub.status.idle": "2026-07-31T19:52:12.378985Z", - "shell.execute_reply": "2026-07-31T19:52:12.378697Z" + "iopub.execute_input": "2026-09-23T07:20:27.275576Z", + "iopub.status.busy": "2026-09-23T07:20:27.275576Z", + "iopub.status.idle": "2026-09-23T07:20:27.693589Z", + "shell.execute_reply": "2026-09-23T07:20:27.693589Z" }, "papermill": { - "duration": 0.288605, - "end_time": "2026-07-31T19:52:12.379084", + "duration": 0.430036, + "end_time": "2026-09-23T07:20:27.694571", "exception": false, - "start_time": "2026-07-31T19:52:12.090479", + "start_time": "2026-09-23T07:20:27.264535", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Compilation (1 fois, warmup BayesArm) : 444,5 ms\r\n" + "output_type": "stream", + "text": [ + "Compilation (1 fois, warmup BayesArm) : 350,5 ms\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Re-inference (ObservedValue, compile reutilise) : 0,040 ms en moyenne sur 200 appels\r\n" + "output_type": "stream", + "text": [ + "Re-inference (ObservedValue, compile reutilise) : 0,044 ms en moyenne sur 200 appels\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Ratio compilation / re-inference : 11243x\r\n" + "output_type": "stream", + "text": [ + "Ratio compilation / re-inference : 7953x\r\n" + ] } ], "source": [ @@ -664,11 +895,20 @@ { "cell_type": "markdown", "id": "cell-di10-interp-b", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.013219, + "end_time": "2026-09-23T07:20:27.723216", + "exception": false, + "start_time": "2026-09-23T07:20:27.709997", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture du résultat : pourquoi le moteur compilé change tout\n", "\n", - "> **Note méthodologique — séparation structurel / machine-dep** : le **rapport** entre le coût d'une compilation et celui d'une re-inférence sur modèle déjà compilé est un **invariant structurel** d'Infer.NET (plusieurs ordres de grandeur, mesuré à **>10000×** en §4.1 cellule suivante). En revanche, les **durées absolues** (compilation en centaines de ms, re-inférence en centièmes de ms) sont **machine-dépendantes** par construction (CPU, JIT, GC, version Infer.NET) et **ne survivent pas** à une ré-exécution sur une autre machine — c'est précisément la pathologie que l'umbrella #9434/#8052/#9377 demande de **drainer** plutôt que de re-épingler. La cellule de calcul §4.1 (juste en dessous) reste intacte et exécutable localement : l'étudiant peut y observer ses propres timings sur sa machine et **vérifier** que le rapport (structurel) reste >10000× même quand les valeurs absolues changent.\n", + "> **Note méthodologique — séparation structurel / machine-dep** : le **rapport** entre le coût d'une compilation et celui d'une re-inférence sur modèle déjà compilé est un **invariant structurel** d'Infer.NET (plusieurs ordres de grandeur : de l'ordre de **10⁴×** dans la mesure du §4.1 ci-dessus). En revanche, les **durées absolues** (compilation en centaines de ms, re-inférence en centièmes de ms) sont **machine-dépendantes** par construction (CPU, JIT, GC, version Infer.NET) et **ne survivent pas** à une ré-exécution sur une autre machine — c'est précisément la pathologie que l'umbrella #9434/#8052/#9377 demande de **drainer** plutôt que de re-épingler. La cellule de calcul §4.1 (juste au-dessus) reste intacte et exécutable localement : l'étudiant peut y observer ses propres timings sur sa machine et **vérifier** que le rapport (structurel) garde son ordre de grandeur même quand les valeurs absolues changent. Le rapport lui-même fluctue d'une exécution à l'autre, puisque ses deux termes sont des durées : un seuil exact comme « >10000× » ne se lirait donc pas de façon stable, seul l'ordre de grandeur le fait.\n", "\n", "Infer.NET suit le modèle « compiler une fois, inférer souvent » : la première inférence génère du code spécialisé pour le graphe de facteurs, les suivantes se contentent d'observer de nouvelles données et de relancer l'inférence sur ce code déjà compilé. C'est la **différence structurelle** entre un moteur probabiliste compilé et un échantillonneur générique qui repartirait de zéro à chaque question.\n" ] @@ -678,10 +918,10 @@ "id": "cell-5ce3ed6d", "metadata": { "papermill": { - "duration": 0.004701, - "end_time": "2026-07-31T19:52:12.388439", + "duration": 0.011659, + "end_time": "2026-09-23T07:20:27.747316", "exception": false, - "start_time": "2026-07-31T19:52:12.383738", + "start_time": "2026-09-23T07:20:27.735657", "status": "completed" }, "tags": [] @@ -703,95 +943,125 @@ "id": "cell-6acb9561", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:12.400566Z", - "iopub.status.busy": "2026-07-31T19:52:12.400374Z", - "iopub.status.idle": "2026-07-31T19:52:13.108116Z", - "shell.execute_reply": "2026-07-31T19:52:13.108001Z" + "iopub.execute_input": "2026-09-23T07:20:27.771510Z", + "iopub.status.busy": "2026-09-23T07:20:27.770981Z", + "iopub.status.idle": "2026-09-23T07:20:28.959566Z", + "shell.execute_reply": "2026-09-23T07:20:28.959566Z" }, "papermill": { - "duration": 0.714273, - "end_time": "2026-07-31T19:52:13.108176", + "duration": 1.201729, + "end_time": "2026-09-23T07:20:28.959566", "exception": false, - "start_time": "2026-07-31T19:52:12.393903", + "start_time": "2026-09-23T07:20:27.757837", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Bandit : K=3 bras, T=200 pas. (theta* inconnu de l algorithme)\r\n" + "output_type": "stream", + "text": [ + "Bandit : K=3 bras, T=200 pas. (theta* inconnu de l algorithme)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " pas | bras joue | recompense | posterior means [b1 b2 b3]\r\n" + "output_type": "stream", + "text": [ + " pas | bras joue | recompense | posterior means [b1 b2 b3]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " ---------------------------------------------------------------\r\n" + "output_type": "stream", + "text": [ + " ---------------------------------------------------------------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 1 | bras 2 | 1 | [0,50 0,67 0,50]\r\n" + "output_type": "stream", + "text": [ + " 1 | bras 3 | 1 | [0,50 0,50 0,67]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 2 | bras 2 | 0 | [0,50 0,50 0,50]\r\n" + "output_type": "stream", + "text": [ + " 2 | bras 2 | 0 | [0,50 0,33 0,67]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 3 | bras 2 | 0 | [0,50 0,40 0,50]\r\n" + "output_type": "stream", + "text": [ + " 3 | bras 3 | 1 | [0,50 0,33 0,75]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 4 | bras 1 | 1 | [0,67 0,40 0,50]\r\n" + "output_type": "stream", + "text": [ + " 4 | bras 3 | 1 | [0,50 0,33 0,80]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 5 | bras 1 | 0 | [0,50 0,40 0,50]\r\n" + "output_type": "stream", + "text": [ + " 5 | bras 3 | 1 | [0,50 0,33 0,83]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 51 | bras 3 | 1 | [0,33 0,56 0,70]\r\n" + "output_type": "stream", + "text": [ + " 51 | bras 1 | 0 | [0,33 0,43 0,70]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 101 | bras 3 | 1 | [0,33 0,59 0,76]\r\n" + "output_type": "stream", + "text": [ + " 101 | bras 3 | 1 | [0,33 0,33 0,75]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " 200 | bras 3 | 0 | [0,33 0,57 0,78]\r\n" + "output_type": "stream", + "text": [ + " 200 | bras 3 | 0 | [0,33 0,33 0,77]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " ---------------------------------------------------------------\r\n" + "output_type": "stream", + "text": [ + " ---------------------------------------------------------------\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Tirages par bras : [7, 28, 165]\r\n" + "output_type": "stream", + "text": [ + "Tirages par bras : [4, 7, 189]\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "Recompense totale = 147/200 (optimal ~ 160)\r\n" + "output_type": "stream", + "text": [ + "Recompense totale = 150/200 (optimal ~ 160)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=> Thompson converge vers le bras 3 (le meilleur, theta*=0.8).\r\n" + "output_type": "stream", + "text": [ + "=> Thompson converge vers le bras 3 (le meilleur, theta*=0.8).\r\n" + ] } ], "source": [ @@ -802,6 +1072,7 @@ "int MAXN = 220;\n", "double[] vraiTheta = { 0.2, 0.5, 0.8 };\n", "var banditRng = new System.Random(7);\n", + "Microsoft.ML.Probabilistic.Math.Rand.Restart(7); // Beta.Sample() tire dans Rand, le générateur global d'Infer.NET, pas dans System.Random\n", "var arms = new BayesArm[K];\n", "for (int k = 0; k < K; k++) arms[k] = new BayesArm(MAXN);\n", "int[] tiragesParBras = new int[K];\n", @@ -835,17 +1106,28 @@ { "cell_type": "markdown", "id": "cell-di10-interp-c", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.010682, + "end_time": "2026-09-23T07:20:28.981741", + "exception": false, + "start_time": "2026-09-23T07:20:28.971059", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture du résultat : la trace d'un run de Thompson\n", "\n", - "La sortie raconte l'algorithme pas à pas :\n", + "La sortie raconte l'algorithme pas à pas (les moyennes affichées sont celles des posteriors **après** la mise à jour du pas) :\n", "\n", - "- **Pas 1** : l'échantillon posterior du bras 2 sort à 0,67 et gagne l'argmax — alors que le bras 3 (vraie moyenne 0,80) n'a encore rien montré. C'est *l'exploration par échantillonnage* : un posterior encore large peut produire un échantillon élevé par pur hasard, et l'algorithme va vérifier.\n", - "- **Pas 4-5** : le bras 2 déçoit (deux échecs, sa moyenne retombe à 0,40) ; le bras 1 prend le relais deux essais, puis cesse presque d'être joué — **7 tirages seulement** en 200 pas, avec un posterior final de moyenne 0,33 (vraie 0,20) : éliminé tôt, mais jamais définitivement, car un posterior reste une distribution — un échantillon élevé pourrait le faire revenir.\n", - "- **Pas 51 à 200** : le bras 3 capte l'essentiel des tirages (**165 sur 200**), sa moyenne posterior monte à 0,78 ; les deux autres descendent vers leurs vraies moyennes (0,33 et 0,57).\n", + "- **Pas 1** : les trois bras partent du même prior uniforme Beta(1,1). L'échantillon du bras 3 sort le plus haut, par pur hasard, et le bras 3 paie : sa moyenne posterior passe de 0,50 à 0,67.\n", + "- **Pas 2** : le bras 2 est sondé à son tour et échoue (moyenne 0,33). C'est *l'exploration par échantillonnage* : un posterior encore large peut produire un échantillon élevé, et l'algorithme va vérifier.\n", + "- **Pas 3 à 5** : le bras 3 est rejoué trois fois et paie trois fois (0,75, 0,80 puis 0,83). L'exploitation s'installe après cinq récompenses seulement.\n", + "- **Pas 51 et 101** : l'exploration n'est jamais coupée. Au pas 51, le bras 1 est encore essayé (échec, moyenne 0,33). Un posterior reste une distribution : un échantillon élevé peut toujours faire revenir un bras délaissé.\n", + "- **Pas 200** : le bras 3 a capté **189 tirages sur 200**, contre 4 pour le bras 1 et 7 pour le bras 2. Sa moyenne posterior (0,77) approche la vraie valeur 0,80. Celles des deux perdants restent toutes deux à 0,33, loin de leurs vraies moyennes (0,20 et 0,50) : Thompson ne cherche pas à bien les estimer, seulement à établir qu'ils ne sont pas les meilleurs.\n", "\n", - "Bilan du run : **147 récompenses sur 200**, contre ~160 pour l'oracle qui connaîtrait les vraies moyennes — un regret de run d'environ 13. Toute la compétition exploration/exploitation tient dans cet écart.\n" + "Bilan du run : **150 récompenses sur 200**, contre ~160 pour l'oracle qui connaîtrait les vraies moyennes — un regret de run d'environ 10. Toute la compétition exploration/exploitation tient dans cet écart.\n" ] }, { @@ -853,10 +1135,10 @@ "id": "cell-6229c611", "metadata": { "papermill": { - "duration": 0.003442, - "end_time": "2026-07-31T19:52:13.115486", + "duration": 0.011078, + "end_time": "2026-09-23T07:20:29.002898", "exception": false, - "start_time": "2026-07-31T19:52:13.112044", + "start_time": "2026-09-23T07:20:28.991820", "status": "completed" }, "tags": [] @@ -879,55 +1161,69 @@ "id": "cell-f341dab0", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:13.123629Z", - "iopub.status.busy": "2026-07-31T19:52:13.123447Z", - "iopub.status.idle": "2026-07-31T19:52:22.914634Z", - "shell.execute_reply": "2026-07-31T19:52:22.914457Z" + "iopub.execute_input": "2026-09-23T07:20:29.024351Z", + "iopub.status.busy": "2026-09-23T07:20:29.024351Z", + "iopub.status.idle": "2026-09-23T07:20:40.489965Z", + "shell.execute_reply": "2026-09-23T07:20:40.489410Z" }, "papermill": { - "duration": 9.795845, - "end_time": "2026-07-31T19:52:22.914702", + "duration": 11.476607, + "end_time": "2026-09-23T07:20:40.489965", "exception": false, - "start_time": "2026-07-31T19:52:13.118857", + "start_time": "2026-09-23T07:20:29.013358", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Regret cumule moyen sur 15 runs (T=200) :\r\n" + "output_type": "stream", + "text": [ + "Regret cumule moyen sur 15 runs (T=200) :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " epsilon-greedy (eps=0,1) : 17,5\r\n" + "output_type": "stream", + "text": [ + " epsilon-greedy (eps=0,1) : 17,5\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " UCB1 : 19,3\r\n" + "output_type": "stream", + "text": [ + " UCB1 : 19,3\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Thompson (Infer.NET) : 6,1\r\n" + "output_type": "stream", + "text": [ + " Thompson (Infer.NET) : 6,1\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "\r\n" + "output_type": "stream", + "text": [ + "\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=> Thompson (6,1) <= epsilon-greedy (17,5) : l exploration bayesienne\r\n" + "output_type": "stream", + "text": [ + "=> Thompson (6,1) <= epsilon-greedy (17,5) : l exploration bayesienne\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " ciblee par le posterior exploite l incertitude la ou l information manque (Prong-B).\r\n" + "output_type": "stream", + "text": [ + " ciblee par le posterior exploite l incertitude la ou l information manque (Prong-B).\r\n" + ] } ], "source": [ @@ -946,6 +1242,7 @@ "double[] regretFinal = new double[3];\n", "for (int run = 0; run < N_runs; run++) {\n", " var rng = new System.Random(100 + run);\n", + " Microsoft.ML.Probabilistic.Math.Rand.Restart(100 + run);\n", " int[] compteEG = new int[K2]; double[] recEG = new double[K2];\n", " int[] compteUCB = new int[K2]; double[] recUCB = new double[K2];\n", " // Thompson : 3 BayesArm partages entre runs (reset entre runs, compilation reutilisee)\n", @@ -996,7 +1293,16 @@ { "cell_type": "markdown", "id": "cell-di10-interp-d", - "metadata": {}, + "metadata": { + "papermill": { + "duration": 0.011027, + "end_time": "2026-09-23T07:20:40.512328", + "exception": false, + "start_time": "2026-09-23T07:20:40.501301", + "status": "completed" + }, + "tags": [] + }, "source": [ "### Lecture du résultat : Thompson domine les deux baselines\n", "\n", @@ -1016,10 +1322,10 @@ "id": "cell-ts-regret-bound-8081", "metadata": { "papermill": { - "duration": 0.004319, - "end_time": "2026-07-31T19:52:22.923225", + "duration": 0.016539, + "end_time": "2026-09-23T07:20:40.541083", "exception": false, - "start_time": "2026-07-31T19:52:22.918906", + "start_time": "2026-09-23T07:20:40.524544", "status": "completed" }, "tags": [] @@ -1063,10 +1369,10 @@ "id": "cell-5da4782f", "metadata": { "papermill": { - "duration": 0.006138, - "end_time": "2026-07-31T19:52:22.933297", + "duration": 0.012659, + "end_time": "2026-09-23T07:20:40.571284", "exception": false, - "start_time": "2026-07-31T19:52:22.927159", + "start_time": "2026-09-23T07:20:40.558625", "status": "completed" }, "tags": [] @@ -1083,50 +1389,62 @@ "id": "cell-211f6ecf", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:22.942579Z", - "iopub.status.busy": "2026-07-31T19:52:22.942192Z", - "iopub.status.idle": "2026-07-31T19:52:23.688338Z", - "shell.execute_reply": "2026-07-31T19:52:23.688193Z" + "iopub.execute_input": "2026-09-23T07:20:40.598617Z", + "iopub.status.busy": "2026-09-23T07:20:40.598101Z", + "iopub.status.idle": "2026-09-23T07:20:41.394405Z", + "shell.execute_reply": "2026-09-23T07:20:41.393783Z" }, "papermill": { - "duration": 0.751347, - "end_time": "2026-07-31T19:52:23.688404", + "duration": 0.809948, + "end_time": "2026-09-23T07:20:41.394405", "exception": false, - "start_time": "2026-07-31T19:52:22.937057", + "start_time": "2026-09-23T07:20:40.584457", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Apres 60 tirages Thompson, estimation P(bras i est le meilleur) sur 2000 echantillons :\r\n" + "output_type": "stream", + "text": [ + "Apres 60 tirages Thompson, estimation P(bras i est le meilleur) sur 2000 echantillons :\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " bras 1 : P(meilleur) = 0,004 | posterior Beta(2,0,4,0) mean=0,333 (vraie 0,2)\r\n" + "output_type": "stream", + "text": [ + " bras 1 : P(meilleur) = 0,011 | posterior Beta(1,0,3,0) mean=0,250 (vraie 0,2)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " bras 2 : P(meilleur) = 0,021 | posterior Beta(6,0,5,0) mean=0,545 (vraie 0,5)\r\n" + "output_type": "stream", + "text": [ + " bras 2 : P(meilleur) = 0,003 | posterior Beta(4,0,6,0) mean=0,400 (vraie 0,5)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " bras 3 : P(meilleur) = 0,975 | posterior Beta(41,0,8,0) mean=0,837 (vraie 0,8)\r\n" + "output_type": "stream", + "text": [ + " bras 3 : P(meilleur) = 0,986 | posterior Beta(42,0,10,0) mean=0,808 (vraie 0,8)\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": "=> Bras declare meilleur : bras 3 (theta*=0,8).\r\n" + "output_type": "stream", + "text": [ + "=> Bras declare meilleur : bras 3 (theta*=0,8).\r\n" + ] }, { - "output_type": "stream", "name": "stdout", - "text": " Si P > 0.95, on peut arreter : identification du meilleur bras avec confiance.\r\n" + "output_type": "stream", + "text": [ + " Si P > 0.95, on peut arreter : identification du meilleur bras avec confiance.\r\n" + ] } ], "source": [ @@ -1135,6 +1453,7 @@ "int KB = 3; int TB = 60; int MAXNB = 70;\n", "double[] vraiB = { 0.2, 0.5, 0.8 };\n", "var rngB = new System.Random(11);\n", + "Microsoft.ML.Probabilistic.Math.Rand.Restart(11);\n", "var armB = new BayesArm[KB];\n", "for (int k=0;k 0,95 » est déjà franchie. Les posteriors racontent la même histoire en creux : Beta(41,0, 8,0) pour le bras 3 — un posterior concentré, riche en données — contre Beta(2,0, 4,0) pour le bras 1, à peine visité, où le prior uniforme Beta(1,1) se devine encore dans les petits compteurs.\n", + "Après seulement 60 tirages Thompson, l'échantillonnage des posteriors donne **P(bras 3 meilleur) = 0,986**, contre 0,011 pour le bras 1 et 0,003 pour le bras 2 — la règle d'arrêt « P > 0,95 » est déjà franchie. Les posteriors racontent la même histoire en creux : Beta(42,0, 10,0) pour le bras 3 — 50 tirages, un posterior concentré, riche en données — contre Beta(1,0, 3,0) pour le bras 1, visité deux fois seulement, où le prior uniforme Beta(1,1) se devine encore dans les petits compteurs.\n", + "\n", + "Un détail mérite l'attention : le bras 1, de moyenne posterior 0,25, reçoit une probabilité d'être le meilleur **supérieure** à celle du bras 2 (moyenne 0,40). Ce n'est pas une anomalie. Visité deux fois, le bras 1 garde un posterior large (écart-type 0,19), dont la queue atteint encore la zone du bras 3 ; observé huit fois, le bras 2 est plus resserré (0,15). Être le meilleur dépend de toute la distribution, pas seulement de sa moyenne. Ces deux petites probabilités restent des estimations bruitées sur 2000 échantillons ; la réponse sur le bras 3, elle, est nette.\n", "\n", "La nuance conceptuelle mérite d'être soulignée : **minimiser le regret** (jouer bien maintenant) et **identifier le meilleur bras** (savoir avec confiance) sont deux objectifs distincts. Le premier tolère de continuer à jouer un bras presque optimal ; le second exige d'accumuler assez de preuves pour pouvoir arrêter. Thompson Sampling sert les deux avec la même machinerie bayésienne — seule change la question posée aux échantillons : « quel bras jouer ce pas ? » ou « quel bras est le meilleur, et à quel niveau de confiance ? ».\n" ] @@ -1179,10 +1509,10 @@ "id": "cell-71669703", "metadata": { "papermill": { - "duration": 0.003969, - "end_time": "2026-07-31T19:52:23.697680", + "duration": 0.010708, + "end_time": "2026-09-23T07:20:41.440591", "exception": false, - "start_time": "2026-07-31T19:52:23.693711", + "start_time": "2026-09-23T07:20:41.429883", "status": "completed" }, "tags": [] @@ -1200,10 +1530,10 @@ "id": "cell-c1d6e31d", "metadata": { "papermill": { - "duration": 0.004049, - "end_time": "2026-07-31T19:52:23.705667", + "duration": 0.015209, + "end_time": "2026-09-23T07:20:41.469364", "exception": false, - "start_time": "2026-07-31T19:52:23.701618", + "start_time": "2026-09-23T07:20:41.454155", "status": "completed" }, "tags": [] @@ -1225,10 +1555,10 @@ "id": "cell-84e0024e", "metadata": { "papermill": { - "duration": 0.004563, - "end_time": "2026-07-31T19:52:23.714495", + "duration": 0.01077, + "end_time": "2026-09-23T07:20:41.493018", "exception": false, - "start_time": "2026-07-31T19:52:23.709932", + "start_time": "2026-09-23T07:20:41.482248", "status": "completed" }, "tags": [] @@ -1254,25 +1584,27 @@ "id": "cell-eb45673d", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:23.724190Z", - "iopub.status.busy": "2026-07-31T19:52:23.723945Z", - "iopub.status.idle": "2026-07-31T19:52:23.764403Z", - "shell.execute_reply": "2026-07-31T19:52:23.764148Z" + "iopub.execute_input": "2026-09-23T07:20:41.518230Z", + "iopub.status.busy": "2026-09-23T07:20:41.518230Z", + "iopub.status.idle": "2026-09-23T07:20:41.559134Z", + "shell.execute_reply": "2026-09-23T07:20:41.558586Z" }, "papermill": { - "duration": 0.046108, - "end_time": "2026-07-31T19:52:23.764527", + "duration": 0.054598, + "end_time": "2026-09-23T07:20:41.559134", "exception": false, - "start_time": "2026-07-31T19:52:23.718419", + "start_time": "2026-09-23T07:20:41.504536", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice 1 a completer : Thompson sur 4 bras (K=4).\r\n" + "output_type": "stream", + "text": [ + "Exercice 1 a completer : Thompson sur 4 bras (K=4).\r\n" + ] } ], "source": [ @@ -1290,10 +1622,10 @@ "id": "cell-b2a05fe7", "metadata": { "papermill": { - "duration": 0.00444, - "end_time": "2026-07-31T19:52:23.773859", + "duration": 0.013967, + "end_time": "2026-09-23T07:20:41.586540", "exception": false, - "start_time": "2026-07-31T19:52:23.769419", + "start_time": "2026-09-23T07:20:41.572573", "status": "completed" }, "tags": [] @@ -1321,25 +1653,27 @@ "id": "cell-1a9f9028", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:23.787229Z", - "iopub.status.busy": "2026-07-31T19:52:23.786974Z", - "iopub.status.idle": "2026-07-31T19:52:23.825050Z", - "shell.execute_reply": "2026-07-31T19:52:23.824904Z" + "iopub.execute_input": "2026-09-23T07:20:41.612188Z", + "iopub.status.busy": "2026-09-23T07:20:41.612188Z", + "iopub.status.idle": "2026-09-23T07:20:41.641750Z", + "shell.execute_reply": "2026-09-23T07:20:41.641750Z" }, "papermill": { - "duration": 0.045861, - "end_time": "2026-07-31T19:52:23.825118", + "duration": 0.044492, + "end_time": "2026-09-23T07:20:41.641750", "exception": false, - "start_time": "2026-07-31T19:52:23.779257", + "start_time": "2026-09-23T07:20:41.597258", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice 2 a completer : bandit non-stationnaire avec facteur d oubli.\r\n" + "output_type": "stream", + "text": [ + "Exercice 2 a completer : bandit non-stationnaire avec facteur d oubli.\r\n" + ] } ], "source": [ @@ -1357,10 +1691,10 @@ "id": "cell-02023ecc", "metadata": { "papermill": { - "duration": 0.004797, - "end_time": "2026-07-31T19:52:23.834732", + "duration": 0.011918, + "end_time": "2026-09-23T07:20:41.665610", "exception": false, - "start_time": "2026-07-31T19:52:23.829935", + "start_time": "2026-09-23T07:20:41.653692", "status": "completed" }, "tags": [] @@ -1387,25 +1721,27 @@ "id": "cell-c31e1ca9", "metadata": { "execution": { - "iopub.execute_input": "2026-07-31T19:52:23.845189Z", - "iopub.status.busy": "2026-07-31T19:52:23.844809Z", - "iopub.status.idle": "2026-07-31T19:52:23.886192Z", - "shell.execute_reply": "2026-07-31T19:52:23.886034Z" + "iopub.execute_input": "2026-09-23T07:20:41.691871Z", + "iopub.status.busy": "2026-09-23T07:20:41.691871Z", + "iopub.status.idle": "2026-09-23T07:20:41.717772Z", + "shell.execute_reply": "2026-09-23T07:20:41.717772Z" }, "papermill": { - "duration": 0.047324, - "end_time": "2026-07-31T19:52:23.886263", + "duration": 0.040029, + "end_time": "2026-09-23T07:20:41.718822", "exception": false, - "start_time": "2026-07-31T19:52:23.838939", + "start_time": "2026-09-23T07:20:41.678793", "status": "completed" }, "tags": [] }, "outputs": [ { - "output_type": "stream", "name": "stdout", - "text": "Exercice 3 a completer : impact du prior informatif Beta(50,50) sur Thompson.\r\n" + "output_type": "stream", + "text": [ + "Exercice 3 a completer : impact du prior informatif Beta(50,50) sur Thompson.\r\n" + ] } ], "source": [ @@ -1423,10 +1759,10 @@ "id": "cell-4b9a1107", "metadata": { "papermill": { - "duration": 0.006097, - "end_time": "2026-07-31T19:52:23.896536", + "duration": 0.012423, + "end_time": "2026-09-23T07:20:41.742257", "exception": false, - "start_time": "2026-07-31T19:52:23.890439", + "start_time": "2026-09-23T07:20:41.729834", "status": "completed" }, "tags": [] @@ -1470,8 +1806,20 @@ "name": "C#", "pygments_lexer": "csharp", "version": "13.0" + }, + "papermill": { + "default_parameters": {}, + "duration": 28.321454, + "end_time": "2026-09-23T07:20:41.986380", + "environment_variables": {}, + "exception": null, + "input_path": "DecInfer-10-Thompson-Sampling.ipynb", + "output_path": "DecInfer-10-Thompson-Sampling.ipynb", + "parameters": {}, + "start_time": "2026-09-23T07:20:13.664926", + "version": "2.6.0" } }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file