From fb58e8b42d6699645a5da15385f5ef326de569d7 Mon Sep 17 00:00:00 2001 From: 39781cc7cca0dc30af9d6060ede9947c <39781cc7cca0dc30af9d6060ede9947c@app-learninglab.inria.fr> Date: Fri, 17 Apr 2020 15:04:57 +0000 Subject: [PATCH] Modifications mineures. --- module3/exo3/exercice.ipynb | 141 ++++++++++++++++++++++-------------- 1 file changed, 86 insertions(+), 55 deletions(-) diff --git a/module3/exo3/exercice.ipynb b/module3/exo3/exercice.ipynb index 706f0fd..df1299f 100644 --- a/module3/exo3/exercice.ipynb +++ b/module3/exo3/exercice.ipynb @@ -137,7 +137,7 @@ }, { "cell_type": "code", - "execution_count": 48, + "execution_count": 1, "metadata": { "hideCode": false, "hidePrompt": true @@ -152,7 +152,7 @@ }, { "cell_type": "code", - "execution_count": 49, + "execution_count": 2, "metadata": { "hideCode": false, "hideOutput": true, @@ -165,7 +165,7 @@ "(3156, 1)" ] }, - "execution_count": 49, + "execution_count": 2, "metadata": {}, "output_type": "execute_result" } @@ -201,7 +201,7 @@ }, { "cell_type": "code", - "execution_count": 50, + "execution_count": 3, "metadata": { "hideCode": true, "hideOutput": true, @@ -271,7 +271,7 @@ "1958-04-26 316.48" ] }, - "execution_count": 50, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -314,7 +314,7 @@ }, { "cell_type": "code", - "execution_count": 51, + "execution_count": 4, "metadata": { "hideCode": false, "hidePrompt": true @@ -383,7 +383,7 @@ }, { "cell_type": "code", - "execution_count": 52, + "execution_count": 5, "metadata": { "hideCode": false, "hidePrompt": true @@ -397,7 +397,7 @@ }, { "cell_type": "code", - "execution_count": 53, + "execution_count": 6, "metadata": { "hideCode": true, "hidePrompt": true @@ -492,11 +492,42 @@ "name": "stdout", "output_type": "stream", "text": [ - "Requirement already satisfied: lmfit in /opt/conda/lib/python3.6/site-packages (1.0.0)\n", - "Requirement already satisfied: scipy>=1.2 in /opt/conda/lib/python3.6/site-packages (from lmfit) (1.4.1)\n", - "Requirement already satisfied: uncertainties>=3.0.1 in /opt/conda/lib/python3.6/site-packages (from lmfit) (3.1.2)\n", - "Requirement already satisfied: numpy>=1.16 in /opt/conda/lib/python3.6/site-packages (from lmfit) (1.18.2)\n", - "Requirement already satisfied: asteval>=0.9.16 in /opt/conda/lib/python3.6/site-packages (from lmfit) (0.9.18)\n" + "Collecting lmfit\n", + " Downloading lmfit-1.0.0.tar.gz (258 kB)\n", + "\u001b[K |████████████████████████████████| 258 kB 7.0 MB/s eta 0:00:01\n", + "\u001b[?25hCollecting asteval>=0.9.16\n", + " Downloading asteval-0.9.18.tar.gz (52 kB)\n", + "\u001b[K |████████████████████████████████| 52 kB 1.9 MB/s eta 0:00:01\n", + "\u001b[?25hCollecting numpy>=1.16\n", + " Downloading numpy-1.18.2-cp36-cp36m-manylinux1_x86_64.whl (20.2 MB)\n", + "\u001b[K |████████████████████████████████| 20.2 MB 463 kB/s eta 0:00:01 |████ | 2.5 MB 8.3 MB/s eta 0:00:03 |█████████████████▎ | 10.9 MB 8.3 MB/s eta 0:00:02 |████████████████████████▍ | 15.3 MB 8.3 MB/s eta 0:00:01 |███████████████████████████████▍| 19.8 MB 8.3 MB/s eta 0:00:01\n", + "\u001b[?25hCollecting scipy>=1.2\n", + " Downloading scipy-1.4.1-cp36-cp36m-manylinux1_x86_64.whl (26.1 MB)\n", + "\u001b[K |████████████████████████████████| 26.1 MB 27.5 MB/s eta 0:00:01 |██████████ | 8.1 MB 24.3 MB/s eta 0:00:01\n", + "\u001b[?25hCollecting uncertainties>=3.0.1\n", + " Downloading uncertainties-3.1.2.tar.gz (232 kB)\n", + "\u001b[K |████████████████████████████████| 232 kB 30.0 MB/s eta 0:00:01\n", + "\u001b[?25hBuilding wheels for collected packages: lmfit, asteval, uncertainties\n", + " Building wheel for lmfit (setup.py) ... \u001b[?25ldone\n", + "\u001b[?25h Created wheel for lmfit: filename=lmfit-1.0.0-py3-none-any.whl size=87914 sha256=5a8c02c2a998b5bf67c4a5b35422629b89a67042e27e58d87e7a487b43038b33\n", + " Stored in directory: /home/jovyan/.cache/pip/wheels/e2/c7/ed/ccfe7d5de2af8a029a77c9c54f4a592381977d42da50d6be7e\n", + " Building wheel for asteval (setup.py) ... \u001b[?25ldone\n", + "\u001b[?25h Created wheel for asteval: filename=asteval-0.9.18-py3-none-any.whl size=17382 sha256=4638c0fa5c91f55749042e10a259474b2bb3912aa5586d65d04a014f2741893e\n", + " Stored in directory: /home/jovyan/.cache/pip/wheels/e4/91/a3/08d0c0afc17a193dc65245d605087dc1c8b2848ec70b18d545\n", + " Building wheel for uncertainties (setup.py) ... \u001b[?25ldone\n", + "\u001b[?25h Created wheel for uncertainties: filename=uncertainties-3.1.2-py3-none-any.whl size=96454 sha256=ab1de3ce47727e5a0b42bebddf4afb145e2720e6f232d98304bd15ab694c35d2\n", + " Stored in directory: /home/jovyan/.cache/pip/wheels/78/52/c1/1028f3e019b7ee67e1fe1ecfaa049c464aba5fc756acbd0dd0\n", + "Successfully built lmfit asteval uncertainties\n", + "Installing collected packages: asteval, numpy, scipy, uncertainties, lmfit\n", + " Attempting uninstall: numpy\n", + " Found existing installation: numpy 1.15.2\n", + " Uninstalling numpy-1.15.2:\n", + " Successfully uninstalled numpy-1.15.2\n", + " Attempting uninstall: scipy\n", + " Found existing installation: scipy 1.1.0\n", + " Uninstalling scipy-1.1.0:\n", + " Successfully uninstalled scipy-1.1.0\n", + "Successfully installed asteval-0.9.18 lmfit-1.0.0 numpy-1.18.2 scipy-1.4.1 uncertainties-3.1.2\n" ] } ], @@ -532,7 +563,7 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": 9, "metadata": { "hideCode": false, "hidePrompt": true @@ -551,7 +582,7 @@ }, { "cell_type": "code", - "execution_count": 55, + "execution_count": 10, "metadata": { "hideCode": false, "hidePrompt": true @@ -567,7 +598,7 @@ }, { "cell_type": "code", - "execution_count": 61, + "execution_count": 11, "metadata": { "hideCode": true, "hidePrompt": true @@ -581,7 +612,7 @@ " ('c', 314.5704951470056)])" ] }, - "execution_count": 61, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -601,7 +632,7 @@ }, { "cell_type": "code", - "execution_count": 62, + "execution_count": 12, "metadata": { "hideCode": false, "hidePrompt": true @@ -618,7 +649,7 @@ }, { "cell_type": "code", - "execution_count": 63, + "execution_count": 13, "metadata": { "hideCode": false, "hidePrompt": true @@ -631,7 +662,7 @@ }, { "cell_type": "code", - "execution_count": 64, + "execution_count": 14, "metadata": { "hideCode": false, "hidePrompt": true @@ -643,7 +674,7 @@ "0.9936252499490063" ] }, - "execution_count": 64, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -666,7 +697,7 @@ }, { "cell_type": "code", - "execution_count": 65, + "execution_count": 15, "metadata": { "hideCode": true, "hidePrompt": true @@ -736,7 +767,7 @@ }, { "cell_type": "code", - "execution_count": 66, + "execution_count": 16, "metadata": { "hideCode": false, "hidePrompt": true @@ -749,7 +780,7 @@ }, { "cell_type": "code", - "execution_count": 67, + "execution_count": 17, "metadata": { "hideCode": true, "hidePrompt": true @@ -758,10 +789,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 67, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" }, @@ -810,7 +841,7 @@ }, { "cell_type": "code", - "execution_count": 68, + "execution_count": 18, "metadata": { "hidePrompt": true }, @@ -823,7 +854,7 @@ }, { "cell_type": "code", - "execution_count": 69, + "execution_count": 19, "metadata": { "hidePrompt": true }, @@ -838,7 +869,7 @@ }, { "cell_type": "code", - "execution_count": 70, + "execution_count": 20, "metadata": { "hidePrompt": true }, @@ -851,7 +882,7 @@ " ('shift', 316.19947719002874)])" ] }, - "execution_count": 70, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -871,12 +902,12 @@ "Avec ces résulats nous pouvons caractériser l'oscillation saisonnière comme suit :\n", "- +/- 2.5 *ppm* sur une année.\n", "- Une féquence de 1 année pour chaque oscillation. Ce qui conforme aux observations.\n", - "- Un décalage de 316.19 *ppm* qui correspond à la première mesure de la base de données." + "- Un décalage de 316.20 *ppm* qui correspond à la première mesure de la base de données." ] }, { "cell_type": "code", - "execution_count": 71, + "execution_count": 21, "metadata": { "hidePrompt": true }, @@ -891,7 +922,7 @@ }, { "cell_type": "code", - "execution_count": 72, + "execution_count": 22, "metadata": { "hidePrompt": true }, @@ -903,7 +934,7 @@ }, { "cell_type": "code", - "execution_count": 77, + "execution_count": 23, "metadata": { "hideCode": true, "hidePrompt": true @@ -912,10 +943,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 77, + "execution_count": 23, "metadata": {}, "output_type": "execute_result" }, @@ -977,7 +1008,7 @@ }, { "cell_type": "code", - "execution_count": 78, + "execution_count": 24, "metadata": { "hidePrompt": true }, @@ -991,7 +1022,7 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": 25, "metadata": { "hideCode": true, "hidePrompt": true @@ -1000,10 +1031,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 79, + "execution_count": 25, "metadata": {}, "output_type": "execute_result" }, @@ -1039,7 +1070,7 @@ }, { "cell_type": "code", - "execution_count": 80, + "execution_count": 26, "metadata": { "hidePrompt": true }, @@ -1050,7 +1081,7 @@ "0.997596462036615" ] }, - "execution_count": 80, + "execution_count": 26, "metadata": {}, "output_type": "execute_result" } @@ -1116,7 +1147,7 @@ }, { "cell_type": "code", - "execution_count": 81, + "execution_count": 28, "metadata": { "hidePrompt": true }, @@ -1128,7 +1159,7 @@ }, { "cell_type": "code", - "execution_count": 82, + "execution_count": 29, "metadata": { "hidePrompt": true }, @@ -1146,7 +1177,7 @@ }, { "cell_type": "code", - "execution_count": 83, + "execution_count": 30, "metadata": { "hidePrompt": true }, @@ -1157,7 +1188,7 @@ "425.0" ] }, - "execution_count": 83, + "execution_count": 30, "metadata": {}, "output_type": "execute_result" } @@ -1170,7 +1201,7 @@ }, { "cell_type": "code", - "execution_count": 84, + "execution_count": 31, "metadata": { "hidePrompt": true }, @@ -1181,7 +1212,7 @@ "425.0" ] }, - "execution_count": 84, + "execution_count": 31, "metadata": {}, "output_type": "execute_result" } @@ -1203,7 +1234,7 @@ }, { "cell_type": "code", - "execution_count": 86, + "execution_count": 32, "metadata": { "hideCode": true, "hidePrompt": true @@ -1212,10 +1243,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 86, + "execution_count": 32, "metadata": {}, "output_type": "execute_result" }, @@ -1266,7 +1297,7 @@ }, { "cell_type": "code", - "execution_count": 87, + "execution_count": 33, "metadata": { "hidePrompt": true }, @@ -1281,7 +1312,7 @@ }, { "cell_type": "code", - "execution_count": 88, + "execution_count": 34, "metadata": { "hideCode": true, "hidePrompt": true @@ -1290,10 +1321,10 @@ { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 88, + "execution_count": 34, "metadata": {}, "output_type": "execute_result" }, -- 2.18.1