Add new Jupyter notebooks for ResNet and CNN exercises; update execution counts in existing notebooks

This commit is contained in:
2025-11-05 17:09:58 +01:00
parent 5f65cabaac
commit f5364b07f3
7 changed files with 480 additions and 67 deletions

View File

@@ -18662,7 +18662,7 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": null,
"id": "bb7eaef1",
"metadata": {},
"outputs": [
@@ -33771,7 +33771,7 @@
"source": [
"fig = px.histogram(data_set, x=\"FREQUENCE_PAIEMENT_COTISATION\")\n",
"\n",
"fig.show()\n"
"fig.show()"
]
},
{

View File

@@ -46,7 +46,7 @@
},
{
"cell_type": "code",
"execution_count": 191,
"execution_count": 1,
"id": "97d58527",
"metadata": {},
"outputs": [],
@@ -82,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 192,
"execution_count": 2,
"id": "c67db932",
"metadata": {},
"outputs": [],
@@ -111,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 193,
"execution_count": 3,
"id": "c9597b48",
"metadata": {},
"outputs": [],
@@ -130,7 +130,7 @@
},
{
"cell_type": "code",
"execution_count": 194,
"execution_count": 4,
"id": "8051b5f4",
"metadata": {},
"outputs": [],
@@ -174,7 +174,7 @@
},
{
"cell_type": "code",
"execution_count": 195,
"execution_count": 5,
"id": "c427a4b8",
"metadata": {},
"outputs": [
@@ -182,14 +182,12 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/var/folders/tp/_ld5_pzs6nx6mv1pbjhq1l740000gn/T/ipykernel_41302/358057511.py:7: SettingWithCopyWarning:\n",
"\n",
"\n",
"/var/folders/tp/_ld5_pzs6nx6mv1pbjhq1l740000gn/T/ipykernel_79947/358057511.py:7: SettingWithCopyWarning: \n",
"A value is trying to be set on a copy of a slice from a DataFrame.\n",
"Try using .loc[row_indexer,col_indexer] = value instead\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
"\n"
" data_model[\"CM\"] = data_model[\"CHARGE\"] / data_model[\"NB\"]\n"
]
},
{
@@ -272,7 +270,7 @@
"type": "float"
}
],
"ref": "9e024176-1fe1-4a76-bb33-627401a1ea24",
"ref": "a70f0dbd-403e-4585-990e-4028b5b0673d",
"rows": [
[
"10",
@@ -520,7 +518,7 @@
"89 [25000;35000[ 166.73 "
]
},
"execution_count": 195,
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
@@ -547,7 +545,7 @@
},
{
"cell_type": "code",
"execution_count": 196,
"execution_count": 6,
"id": "c8fd3ee1",
"metadata": {},
"outputs": [
@@ -631,7 +629,7 @@
"type": "float"
}
],
"ref": "59cf3e53-3de4-4283-9dac-6a29f574b6fe",
"ref": "63d03be7-3681-4d8e-b0be-ed765b8f2594",
"rows": [
[
"count",
@@ -1107,7 +1105,7 @@
"max NaN 83421.850000 "
]
},
"execution_count": 196,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
@@ -1118,7 +1116,7 @@
},
{
"cell_type": "code",
"execution_count": 197,
"execution_count": 7,
"id": "2d32ae2b",
"metadata": {},
"outputs": [
@@ -1994,7 +1992,7 @@
},
{
"cell_type": "code",
"execution_count": 198,
"execution_count": 8,
"id": "1b156435",
"metadata": {},
"outputs": [
@@ -2004,7 +2002,7 @@
"(824, 13)"
]
},
"execution_count": 198,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
@@ -2016,7 +2014,7 @@
},
{
"cell_type": "code",
"execution_count": 199,
"execution_count": 9,
"id": "0ef0fcc0",
"metadata": {},
"outputs": [],
@@ -2052,7 +2050,7 @@
},
{
"cell_type": "code",
"execution_count": 200,
"execution_count": 10,
"id": "e130aae5",
"metadata": {},
"outputs": [],
@@ -2062,7 +2060,7 @@
},
{
"cell_type": "code",
"execution_count": 201,
"execution_count": 11,
"id": "c39e2ad0",
"metadata": {},
"outputs": [
@@ -2121,7 +2119,7 @@
"type": "float"
}
],
"ref": "2f5478f2-7cdc-47d7-aeff-3055a9f87820",
"ref": "b82309b4-707a-46f5-b3fe-c9c1324ee757",
"rows": [
[
"CONTRAT_ANCIENNETE",
@@ -2426,7 +2424,7 @@
"VALEUR_DU_BIEN 0.08 0.05 1.00 "
]
},
"execution_count": 201,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
@@ -2456,7 +2454,7 @@
},
{
"cell_type": "code",
"execution_count": 202,
"execution_count": 44,
"id": "1755a2a4",
"metadata": {},
"outputs": [],
@@ -2484,7 +2482,7 @@
},
{
"cell_type": "code",
"execution_count": 203,
"execution_count": 13,
"id": "a16215ab",
"metadata": {},
"outputs": [],
@@ -2494,7 +2492,7 @@
},
{
"cell_type": "code",
"execution_count": 204,
"execution_count": 14,
"id": "532ca6c4",
"metadata": {},
"outputs": [
@@ -2528,7 +2526,7 @@
"type": "float"
}
],
"ref": "cbf56bf5-5e8b-495e-a03c-dc55b1f8dfd7",
"ref": "d1b7089c-632a-4c1a-8ee0-ef265e2f24f3",
"rows": [
[
"ANNEE_CTR",
@@ -2636,7 +2634,7 @@
"ANNEE_CONSTRUCTION 1.000000 "
]
},
"execution_count": 204,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
@@ -2649,7 +2647,7 @@
},
{
"cell_type": "code",
"execution_count": 205,
"execution_count": 15,
"id": "6c3bd9b2",
"metadata": {},
"outputs": [],
@@ -2713,7 +2711,7 @@
},
{
"cell_type": "code",
"execution_count": 206,
"execution_count": 16,
"id": "b8530717",
"metadata": {},
"outputs": [
@@ -2887,7 +2885,7 @@
"type": "float"
}
],
"ref": "a62943ce-0b7b-4ed1-9ec2-fe8c4868e843",
"ref": "e9b7e285-2962-4a24-989a-bde4f9adf740",
"rows": [
[
"0",
@@ -3305,7 +3303,7 @@
"[5 rows x 32 columns]"
]
},
"execution_count": 206,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
@@ -3335,7 +3333,7 @@
},
{
"cell_type": "code",
"execution_count": 207,
"execution_count": 17,
"id": "4ff3847d",
"metadata": {},
"outputs": [
@@ -3369,7 +3367,7 @@
"type": "float"
}
],
"ref": "012814d2-2bb4-463c-b907-53ba71631da2",
"ref": "e1f3a979-59a5-4ca5-8c34-9aaf039cc275",
"rows": [
[
"0",
@@ -3486,7 +3484,7 @@
"4 -0.253948 -1.766941 -1.275287 -0.383438"
]
},
"execution_count": 207,
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
@@ -3521,7 +3519,7 @@
},
{
"cell_type": "code",
"execution_count": 208,
"execution_count": 18,
"id": "6a1c7907",
"metadata": {},
"outputs": [],
@@ -3533,7 +3531,7 @@
},
{
"cell_type": "code",
"execution_count": 209,
"execution_count": 19,
"id": "58a14153",
"metadata": {},
"outputs": [],
@@ -3566,7 +3564,7 @@
},
{
"cell_type": "code",
"execution_count": 210,
"execution_count": 20,
"id": "053e013c",
"metadata": {},
"outputs": [],
@@ -3588,7 +3586,7 @@
},
{
"cell_type": "code",
"execution_count": 211,
"execution_count": 21,
"id": "c4ca2cf9",
"metadata": {},
"outputs": [
@@ -3617,7 +3615,7 @@
},
{
"cell_type": "code",
"execution_count": 212,
"execution_count": 22,
"id": "4b739d5b",
"metadata": {},
"outputs": [
@@ -3625,9 +3623,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"MAE: 5186.37\n",
"MSE: 94029342.74\n",
"RMSE: 9696.87\n"
"MAE: 5047.78\n",
"MSE: 88252585.29\n",
"RMSE: 9394.28\n"
]
}
],
@@ -3703,7 +3701,7 @@
},
{
"cell_type": "code",
"execution_count": 213,
"execution_count": 23,
"id": "ab1e1367",
"metadata": {},
"outputs": [],
@@ -3735,7 +3733,7 @@
},
{
"cell_type": "code",
"execution_count": 214,
"execution_count": 24,
"id": "b515460e",
"metadata": {},
"outputs": [],
@@ -3758,7 +3756,7 @@
},
{
"cell_type": "code",
"execution_count": 215,
"execution_count": 25,
"id": "eebb394f",
"metadata": {},
"outputs": [],
@@ -3786,7 +3784,7 @@
},
{
"cell_type": "code",
"execution_count": 216,
"execution_count": 26,
"id": "b067126c",
"metadata": {},
"outputs": [
@@ -3812,7 +3810,7 @@
},
{
"cell_type": "code",
"execution_count": 217,
"execution_count": 27,
"id": "6597152c",
"metadata": {},
"outputs": [
@@ -3836,7 +3834,7 @@
},
{
"cell_type": "code",
"execution_count": 218,
"execution_count": 28,
"id": "63ff1c9d",
"metadata": {},
"outputs": [
@@ -3884,7 +3882,7 @@
},
{
"cell_type": "code",
"execution_count": 219,
"execution_count": 29,
"id": "d9342ad6",
"metadata": {},
"outputs": [],
@@ -3915,7 +3913,7 @@
},
{
"cell_type": "code",
"execution_count": 220,
"execution_count": 30,
"id": "6d58dbc2",
"metadata": {},
"outputs": [],
@@ -3948,7 +3946,7 @@
},
{
"cell_type": "code",
"execution_count": 221,
"execution_count": 31,
"id": "47da5172",
"metadata": {},
"outputs": [],
@@ -4012,7 +4010,7 @@
},
{
"cell_type": "code",
"execution_count": 222,
"execution_count": 32,
"id": "d4936c46",
"metadata": {},
"outputs": [
@@ -4033,7 +4031,7 @@
},
{
"cell_type": "code",
"execution_count": 223,
"execution_count": 33,
"id": "3215c463",
"metadata": {},
"outputs": [
@@ -4059,7 +4057,7 @@
},
{
"cell_type": "code",
"execution_count": 224,
"execution_count": 34,
"id": "bb9a5c9b",
"metadata": {},
"outputs": [
@@ -4083,7 +4081,7 @@
},
{
"cell_type": "code",
"execution_count": 225,
"execution_count": 35,
"id": "0f0768ad",
"metadata": {},
"outputs": [
@@ -4123,7 +4121,7 @@
},
{
"cell_type": "code",
"execution_count": 226,
"execution_count": 36,
"id": "4b8cc48d",
"metadata": {},
"outputs": [],
@@ -4135,7 +4133,7 @@
},
{
"cell_type": "code",
"execution_count": 227,
"execution_count": 37,
"id": "f0e5d591",
"metadata": {},
"outputs": [],
@@ -4146,7 +4144,7 @@
},
{
"cell_type": "code",
"execution_count": 228,
"execution_count": 38,
"id": "71177a63",
"metadata": {},
"outputs": [],
@@ -4165,7 +4163,7 @@
},
{
"cell_type": "code",
"execution_count": 229,
"execution_count": 39,
"id": "e463b9d7",
"metadata": {},
"outputs": [
@@ -4202,7 +4200,7 @@
},
{
"cell_type": "code",
"execution_count": 230,
"execution_count": 40,
"id": "d1b84e91",
"metadata": {},
"outputs": [],
@@ -4213,7 +4211,7 @@
},
{
"cell_type": "code",
"execution_count": 231,
"execution_count": 41,
"id": "c46d32a7",
"metadata": {},
"outputs": [
@@ -4277,7 +4275,7 @@
},
{
"cell_type": "code",
"execution_count": 232,
"execution_count": 42,
"id": "3ba2274c",
"metadata": {},
"outputs": [],
@@ -4291,7 +4289,7 @@
},
{
"cell_type": "code",
"execution_count": 233,
"execution_count": 43,
"id": "ec717a0c",
"metadata": {},
"outputs": [

View File

@@ -17535,7 +17535,7 @@
},
{
"cell_type": "code",
"execution_count": 118,
"execution_count": null,
"id": "4ff3847d",
"metadata": {},
"outputs": [
@@ -17744,7 +17744,7 @@
},
{
"cell_type": "code",
"execution_count": 119,
"execution_count": null,
"id": "d9342ad6",
"metadata": {},
"outputs": [],