diff --git a/module3/exo3/exercice_python_fr.org b/module3/exo3/exercice_python_fr.org index 03f76bc13be4ae498648be719441b5e0a0376ba8..3379b50838bf66b13540860e5df65f2b1f3ec0c6 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 :results replace :export both +#+BEGIN_SRC python :session :results replace :exports 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 :results replace :export both +#+BEGIN_SRC python :session :results replace :exports 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 :results replace :export both +#+BEGIN_SRC python :session :results replace :exports 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 :results replace :export both +#+BEGIN_SRC python :session :results output :exports both from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error S_tt = [[value] for value in S_g1500] @@ -588,5 +588,10 @@ f"Les coeff sont L = {lmodel.intercept_} et C = { 1 / lmodel.coef_}" #+END_SRC #+RESULTS: -: Les coeff sont L = 120.04921279789215 et C = [-555.38712112] +: Traceback (most recent call last): +: File "", line 1, in +: File "/var/folders/gg/nbr_dzs57lq4z877d6xndp5w0000gn/T/babel-ppt7An/python-CQJzRz", line 9 +: return (f"Les coeff sont L = {lmodel.intercept_} et C = { 1 / lmodel.coef_}") +: ^ +: SyntaxError: 'return' outside function Etonnant pour C négatif alors que l'analyse graphique montre une pente positivew diff --git a/module3/exo3/exercice_python_fr.pdf b/module3/exo3/exercice_python_fr.pdf index 575a07f15faecc1afc8b707f0d2f0bda3116b225..4ab697d7c3dd30c6f26ddebaf68fed8d2de05785 100644 Binary files a/module3/exo3/exercice_python_fr.pdf and b/module3/exo3/exercice_python_fr.pdf differ diff --git a/module3/exo3/l1500_reglineaireT-f(S).png b/module3/exo3/l1500_reglineaireT-f(S).png index 08895567486136ca004a777b8711c47b882a59fe..0a20334c9009f231f893b64582cf1dfd91591c3a 100644 Binary files a/module3/exo3/l1500_reglineaireT-f(S).png and b/module3/exo3/l1500_reglineaireT-f(S).png differ diff --git a/module3/exo3/stacko_g1500_reglineaireT-f(S).png b/module3/exo3/stacko_g1500_reglineaireT-f(S).png index c91005d856723766cbd9a94fd13fcf931ac6848d..d90a16f7cf2423c7813e7b0af305d3204593f0e0 100644 Binary files a/module3/exo3/stacko_g1500_reglineaireT-f(S).png and b/module3/exo3/stacko_g1500_reglineaireT-f(S).png differ diff --git a/module3/exo3/stacko_l1500_reglineaireT-f(S).png b/module3/exo3/stacko_l1500_reglineaireT-f(S).png index 11700b1bce083c538868ff34ac6145b51f9d79ec..657c76c0ec2e23677aed385c0ccae4ab120aaea6 100644 Binary files a/module3/exo3/stacko_l1500_reglineaireT-f(S).png and b/module3/exo3/stacko_l1500_reglineaireT-f(S).png differ