From 6569111f5868fd555a32a249a9545eb978ac163f Mon Sep 17 00:00:00 2001 From: SUR Frederic <frederic.sur@univ-lorraine.fr> Date: Sun, 17 Nov 2024 20:33:35 +0000 Subject: [PATCH] 2024-2025 --- TP1/TP1_ex2_sujet.ipynb | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/TP1/TP1_ex2_sujet.ipynb b/TP1/TP1_ex2_sujet.ipynb index ae970f3..5b3e19e 100755 --- a/TP1/TP1_ex2_sujet.ipynb +++ b/TP1/TP1_ex2_sujet.ipynb @@ -36,8 +36,8 @@ "\n", "import matplotlib.pyplot as plt\n", "\n", - "# \"magic function\" Jupyter pour l'affichage des graphiques interactifs dans le carnet:\n", - "%matplotlib notebook" + "# \"magic function\" Jupyter pour l'affichage des graphiques dans le carnet:\n", + "%matplotlib inline" ] }, { @@ -146,7 +146,7 @@ "plt.axis([1e-4,1e4,2750,5500])\n", "plt.legend(['MSE lr','MSE ridge'])\n", "plt.grid()\n", - "plt.show();" + "plt.show()" ] }, { @@ -164,9 +164,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "scrolled": false - }, + "metadata": {}, "outputs": [], "source": [ "n_alphas = 100\n", @@ -189,7 +187,7 @@ "plt.legend(['w1','w2','w3','w4','w5','w6','w7','w8','w9','w10'])\n", "plt.axis('tight')\n", "plt.grid()\n", - "plt.show();\n", + "plt.show()\n", "\n", "plt.figure(figsize=(8,6))\n", "plt.semilogx(alphas, MSE_lasso)\n", @@ -276,9 +274,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.5" + "version": "3.12.7" } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } -- GitLab