From 05c1fac2a37cf8f72b39fa8abf6132831106fd13 Mon Sep 17 00:00:00 2001 From: Samuel MEYNARD Date: Sun, 7 Jun 2020 13:53:44 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20export=20pour=20les=20r=C3=A9sultats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module3/exo3/exercice_python_fr.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module3/exo3/exercice_python_fr.org b/module3/exo3/exercice_python_fr.org index 2cccef4..03f76bc 100644 --- a/module3/exo3/exercice_python_fr.org +++ b/module3/exo3/exercice_python_fr.org @@ -265,7 +265,7 @@ np.array(S_l1500).reshape(1, -1)[:9] #+RESULTS: | 1759 | 1843 | 1511 | ... | 1503 | 1515 | 1875 | -#+BEGIN_SRC python :session +#+BEGIN_SRC python :session :results replace :export both from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error S_tt = [[value] for value in S_l1500] @@ -282,7 +282,7 @@ f"Les coeff sont L = {lmodel.intercept_} et C = { 1 / lmodel.coef_}" : Les coeff sont L = 3.257592785874401 et C = [2761.3155395] ** Cas supérieur à la MTU -#+BEGIN_SRC python :session +#+BEGIN_SRC python :session :results replace :export both from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error S_tt = [[value] for value in S_g1500] @@ -524,7 +524,7 @@ np.array(S_l1500).reshape(1, -1)[:9] #+RESULTS: | 1759 | 1843 | 1511 | ... | 1503 | 1515 | 1875 | -#+BEGIN_SRC python :session +#+BEGIN_SRC python :session :results replace :export both from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error S_tt = [[value] for value in S_l1500] @@ -574,7 +574,7 @@ fig.savefig('stacko_g1500_reglineaireT-f(S).png') #+RESULTS: : None -#+BEGIN_SRC python :session +#+BEGIN_SRC python :session :results replace :export both from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error S_tt = [[value] for value in S_g1500] -- 2.18.1