Commit aca8ec47 authored by Samuel MEYNARD's avatar Samuel MEYNARD

Ajout de l'affichage des exports

parent 05c1fac2
......@@ -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 "<stdin>", line 1, in <module>
: 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment