From c76f1d1e5ade25deaadc81f35eb20986c6c570be Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Thu, 23 Sep 2021 09:06:59 +0200 Subject: [PATCH] typo argh --- doc/pub/week38/html/._week38-bs014.html | 16 ++++++++-------- doc/pub/week38/html/week38-reveal.html | 16 ++++++++-------- doc/pub/week38/html/week38-solarized.html | 16 ++++++++-------- doc/pub/week38/html/week38.html | 16 ++++++++-------- doc/pub/week38/ipynb/ipynb-week38-src.tar.gz | Bin 192 -> 193 bytes doc/pub/week38/ipynb/week38.ipynb | 16 ++++++++-------- doc/src/week38/week38.do.txt | 16 ++++++++-------- 7 files changed, 48 insertions(+), 48 deletions(-) diff --git a/doc/pub/week38/html/._week38-bs014.html b/doc/pub/week38/html/._week38-bs014.html index 28b47f286..8290e2bb1 100644 --- a/doc/pub/week38/html/._week38-bs014.html +++ b/doc/pub/week38/html/._week38-bs014.html @@ -467,10 +467,10 @@ clf = LinearRegression(fit_interceptprint(f"Sklearn fitted beta: {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with intercept column: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with intercept column from SKL: {intercept}") -print(MSE(y,ypredictSKL) +print(f"MSE with intercept column") +print(MSE(y,ypredictOwn)) +print(f"MSE with intercept column from SKL") +print(MSE(y,ypredictSKL)) plt.figure() @@ -501,10 +501,10 @@ intercept = np. print(f"Sklearn fitted beta (without intercept): {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with Manual intercept: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with Sklearn intercept: {clf.intercept_}") -print(MSE(y,ypredictSKL) +print(f"MSE with Manual intercept") +print(MSE(y,ypredictOwn)) +print(f"MSE with Sklearn intercept") +print(MSE(y,ypredictSKL)) plt.plot(x, X @ beta + intercept, "--", label="Fit (manual intercept)") plt.plot(x, clf.predict(X), "--", label="Sklearn (fit_intercept=True)") diff --git a/doc/pub/week38/html/week38-reveal.html b/doc/pub/week38/html/week38-reveal.html index 604d56d16..22973f249 100644 --- a/doc/pub/week38/html/week38-reveal.html +++ b/doc/pub/week38/html/week38-reveal.html @@ -720,10 +720,10 @@ clf = LinearRegression(fit_intercept=print(f"Sklearn fitted beta: {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with intercept column: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with intercept column from SKL: {intercept}") -print(MSE(y,ypredictSKL) +print(f"MSE with intercept column") +print(MSE(y,ypredictOwn)) +print(f"MSE with intercept column from SKL") +print(MSE(y,ypredictSKL)) plt.figure() @@ -754,10 +754,10 @@ intercept = np.mean(y_offset - X_offset @ beta) print(f"Sklearn fitted beta (without intercept): {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with Manual intercept: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with Sklearn intercept: {clf.intercept_}") -print(MSE(y,ypredictSKL) +print(f"MSE with Manual intercept") +print(MSE(y,ypredictOwn)) +print(f"MSE with Sklearn intercept") +print(MSE(y,ypredictSKL)) plt.plot(x, X @ beta + intercept, "--", label="Fit (manual intercept)") plt.plot(x, clf.predict(X), "--", label="Sklearn (fit_intercept=True)") diff --git a/doc/pub/week38/html/week38-solarized.html b/doc/pub/week38/html/week38-solarized.html index 375cbd323..da89caf98 100644 --- a/doc/pub/week38/html/week38-solarized.html +++ b/doc/pub/week38/html/week38-solarized.html @@ -854,10 +854,10 @@ clf = LinearRegression(fit_intercept=print(f"Sklearn fitted beta: {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with intercept column: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with intercept column from SKL: {intercept}") -print(MSE(y,ypredictSKL) +print(f"MSE with intercept column") +print(MSE(y,ypredictOwn)) +print(f"MSE with intercept column from SKL") +print(MSE(y,ypredictSKL)) plt.figure() @@ -888,10 +888,10 @@ intercept = np.mean(y_offset - X_offset @ beta) print(f"Sklearn fitted beta (without intercept): {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with Manual intercept: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with Sklearn intercept: {clf.intercept_}") -print(MSE(y,ypredictSKL) +print(f"MSE with Manual intercept") +print(MSE(y,ypredictOwn)) +print(f"MSE with Sklearn intercept") +print(MSE(y,ypredictSKL)) plt.plot(x, X @ beta + intercept, "--", label="Fit (manual intercept)") plt.plot(x, clf.predict(X), "--", label="Sklearn (fit_intercept=True)") diff --git a/doc/pub/week38/html/week38.html b/doc/pub/week38/html/week38.html index 14e83eaf7..d467ae5e5 100644 --- a/doc/pub/week38/html/week38.html +++ b/doc/pub/week38/html/week38.html @@ -859,10 +859,10 @@ clf = LinearRegression(fit_interceptprint(f"Sklearn fitted beta: {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with intercept column: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with intercept column from SKL: {intercept}") -print(MSE(y,ypredictSKL) +print(f"MSE with intercept column") +print(MSE(y,ypredictOwn)) +print(f"MSE with intercept column from SKL") +print(MSE(y,ypredictSKL)) plt.figure() @@ -893,10 +893,10 @@ intercept = np. print(f"Sklearn fitted beta (without intercept): {clf.coef_}") ypredictOwn = X @ beta ypredictSKL = skl.predict(X) -print(f"MSE with Manual intercept: {intercept}") -print(MSE(y,ypredictOwn) -print(f"MSE with Sklearn intercept: {clf.intercept_}") -print(MSE(y,ypredictSKL) +print(f"MSE with Manual intercept") +print(MSE(y,ypredictOwn)) +print(f"MSE with Sklearn intercept") +print(MSE(y,ypredictSKL)) plt.plot(x, X @ beta + intercept, "--", label="Fit (manual intercept)") plt.plot(x, clf.predict(X), "--", label="Sklearn (fit_intercept=True)") diff --git a/doc/pub/week38/ipynb/ipynb-week38-src.tar.gz b/doc/pub/week38/ipynb/ipynb-week38-src.tar.gz index f5c873c358933b5153430843c17e409f43bc2f27..1deffa1e8712ca255dbeddde43619c84e77dd901 100644 GIT binary patch delta 170 zcmV;b09F6M0l@(!ABzY8g(pm500ZsMOA5j;5C-6`dx|+hnKXU473{)=AmRm5nvo?S zd?F@M1Y@R2JSB#6Js~6p5|NN%NE3_!35`kW0WNpaOJ^+8!zoR5=F)KaZf+PW%MW|z zSKyg{;#dg-+kI~t`Itah$I`06eAqTL1_E04q91rvLx| delta 169 zcmV;a09OCO0l)zzABzY8`6f(Z00ZsMOA5j;5C-6`dx|+hNt!;~3U=W_5b**joslIV zdm$u=A{aAG;wecu*Aq%(pb-rj2^mW%5XxejdO(&t>7_H4>*189I-@iw-^~qUW%*&x z{0cntPaG>@V7u>ar6fpYF;}XF8)D5?foOY~L!r=&Ezo%Fght@92VNAy3MKi)Z?!sU X-k8Au^)rs+IL_A|U