From ade79583b57a234f2c4f457748e96c053cd63541 Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Tue, 28 Sep 2021 12:09:12 +0200 Subject: [PATCH] update --- doc/pub/week39/html/week39-reveal.html | 8 ++++---- doc/pub/week39/html/week39-solarized.html | 8 ++++---- doc/pub/week39/html/week39.html | 8 ++++---- doc/pub/week39/ipynb/ipynb-week39-src.tar.gz | Bin 193 -> 193 bytes doc/pub/week39/ipynb/week39.ipynb | 8 ++++---- doc/src/week39/week39.do.txt | 8 ++++---- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/doc/pub/week39/html/week39-reveal.html b/doc/pub/week39/html/week39-reveal.html index a7c3d44e7..8e10ec464 100644 --- a/doc/pub/week39/html/week39-reveal.html +++ b/doc/pub/week39/html/week39-reveal.html @@ -206,11 +206,11 @@ which results in optimal scores (for example the smallest MSE or an \( R2=1 \)). return np.sum((y_data-y_model)**2)/n # A seed just to ensure that the random numbers are the same for every run. # Useful for eventual debugging. -np.random.seed(315) +np.random.seed(2021) n = 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) @@ -276,7 +276,7 @@ np.random.seed(2021) n = 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) @@ -340,7 +340,7 @@ np.random.seed(2021) n = 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) diff --git a/doc/pub/week39/html/week39-solarized.html b/doc/pub/week39/html/week39-solarized.html index a7faaa359..f8a11d320 100644 --- a/doc/pub/week39/html/week39-solarized.html +++ b/doc/pub/week39/html/week39-solarized.html @@ -290,11 +290,11 @@ which results in optimal scores (for example the smallest MSE or an \( R2=1 \)). return np.sum((y_data-y_model)**2)/n # A seed just to ensure that the random numbers are the same for every run. # Useful for eventual debugging. -np.random.seed(315) +np.random.seed(2021) n = 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) @@ -360,7 +360,7 @@ np.random.seed(2021) n = 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) @@ -424,7 +424,7 @@ np.random.seed(2021) n = 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) diff --git a/doc/pub/week39/html/week39.html b/doc/pub/week39/html/week39.html index 6c0ca6be3..42321f373 100644 --- a/doc/pub/week39/html/week39.html +++ b/doc/pub/week39/html/week39.html @@ -295,11 +295,11 @@ which results in optimal scores (for example the smallest MSE or an \( R2=1 \)). return np.sum((y_data-y_model)**2)/n # A seed just to ensure that the random numbers are the same for every run. # Useful for eventual debugging. -np.random.seed(315) +np.random.seed(2021) n = 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) @@ -365,7 +365,7 @@ np.random.= 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) @@ -429,7 +429,7 @@ np.random.= 100 x = np.random.rand(n) -y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2) +y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)+ np.random.randn(n) Maxpolydegree = 5 X = np.zeros((n,Maxpolydegree-1)) diff --git a/doc/pub/week39/ipynb/ipynb-week39-src.tar.gz b/doc/pub/week39/ipynb/ipynb-week39-src.tar.gz index 54492e2afa79850db068b84aeb675c2049d2e73a..ac5189fac63b9ed2229eba9353fce8ec03220c45 100644 GIT binary patch literal 193 zcmV;y06za8iwFR_=~7_;1MSaC3c@fD2H>uHia9|^nxw_0U>7a~5igL^)W+JRCMnw6 z+Xv`MaZ^OdxA_@n7-kOHdb7(ScXz>J5JCy1FlL&tDN#Jv6O0*Piet(Wnxq5}CXA#3 zpyf__>8#^sIHjr1LRq2S%?)E^`C-re3Ow^q94l#IyYF446)5dQu5}GJA!@RUWZSD8 v3N7r|0wb=SGy=Hlfft2zQY(H5Tcb~gH#Q1?{fy^%p7*r}b?kwG00;m8b+A>k literal 193 zcmV;y06za8iwFQquHia9|^(j?+iunQN0h!;p{YNIx(Ns9LN z_5r$5+!PV=ZGMIshM9e~T5q$&-+eS2gb=3`hFowqCL&Wk!k7W3m{7(E!zmz~GQuN3 z^PTk4IxlR0N?o0#c2d8a>&MFS!=C9Cc;=rtRLa3-*ZIn5(8kN$m^0j@Jg3V