From 3044ad351c664091e208994ef3106e600b114186 Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Thu, 9 Sep 2021 16:42:37 +0200 Subject: [PATCH] corrected typo --- doc/pub/week36/html/week36-reveal.html | 4 ++-- doc/pub/week36/html/week36-solarized.html | 4 ++-- doc/pub/week36/html/week36.html | 4 ++-- doc/pub/week36/ipynb/ipynb-week36-src.tar.gz | Bin 191 -> 192 bytes doc/pub/week36/ipynb/week36.ipynb | 4 ++-- doc/src/week36/week36.do.txt | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/pub/week36/html/week36-reveal.html b/doc/pub/week36/html/week36-reveal.html index c330b6cec..b85742573 100644 --- a/doc/pub/week36/html/week36-reveal.html +++ b/doc/pub/week36/html/week36-reveal.html @@ -1023,7 +1023,7 @@ lambdas = np.logspace(-4, # print(MSEPredict[i]) # Now plot the results plt.figure() -plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Test') +plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Train') plt.xlabel('log10(lambda)') plt.ylabel('MSE') plt.legend() @@ -1086,7 +1086,7 @@ lambdas = np.logspace(-4, print(RegLasso_coef_) + print(RegLasso.coef_) MSELassoPredict[i] = MSE(y,ypredictLasso) # Now plot the results plt.figure() diff --git a/doc/pub/week36/html/week36-solarized.html b/doc/pub/week36/html/week36-solarized.html index 8ea13d897..0786fd9e2 100644 --- a/doc/pub/week36/html/week36-solarized.html +++ b/doc/pub/week36/html/week36-solarized.html @@ -1046,7 +1046,7 @@ lambdas = np.logspace(-4, # print(MSEPredict[i]) # Now plot the results plt.figure() -plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Test') +plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Train') plt.xlabel('log10(lambda)') plt.ylabel('MSE') plt.legend() @@ -1109,7 +1109,7 @@ lambdas = np.logspace(-4, print(RegLasso_coef_) + print(RegLasso.coef_) MSELassoPredict[i] = MSE(y,ypredictLasso) # Now plot the results plt.figure() diff --git a/doc/pub/week36/html/week36.html b/doc/pub/week36/html/week36.html index 4a73d1fc6..99b7d962f 100644 --- a/doc/pub/week36/html/week36.html +++ b/doc/pub/week36/html/week36.html @@ -1051,7 +1051,7 @@ lambdas = np.# print(MSEPredict[i]) # Now plot the results plt.figure() -plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Test') +plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Train') plt.xlabel('log10(lambda)') plt.ylabel('MSE') plt.legend() @@ -1114,7 +1114,7 @@ lambdas = np.= linear_model.Lasso(lmb) RegLasso.fit(X,y) ypredictLasso = RegLasso.predict(X) - print(RegLasso_coef_) + print(RegLasso.coef_) MSELassoPredict[i] = MSE(y,ypredictLasso) # Now plot the results plt.figure() diff --git a/doc/pub/week36/ipynb/ipynb-week36-src.tar.gz b/doc/pub/week36/ipynb/ipynb-week36-src.tar.gz index 3c840b2d52f09b604ad102048863565b3880e56d..8217dc872701174bba5acd89f5342ae02031d2ae 100644 GIT binary patch literal 192 zcmV;x06+g9iwFQx9XeqE1MSaC3c@fD2H>uHia9|^(j=}0yKo_hc!89rHr6IJNzvZk zK0sHBn<7HK&Cf8yFmuS(n_ZUpyN?!w5aN`=m@CevL}acf7&E{WV@@$=gaE=RBP;^6 z+(|E;^TH0NG}T#ZC-u9zVXQ1a?3rJIXa0#}r5tScy|0W0ZM@8lso^GNo$^Grz0RR9 u(v2;!^4cjYLFgVtQ7EsB7MHlS=43_VlK9up1VIo4UwZ)S2_zT*2mkuHia9|^%%f|;E?fvAULd8ZjkQTlQna_X z573q3rihSl^E1pa%p9`yW|t-Y?xV#ZggB)zX3E)=Xf@Xpj2U2xF{g;6i~_=h5flMh z?xdH_d0~fBn(8dIlltAwd?K@bGN*B%8{$$$U|004;SS$Y5f diff --git a/doc/pub/week36/ipynb/week36.ipynb b/doc/pub/week36/ipynb/week36.ipynb index 32d4e9909..18d3f16c3 100644 --- a/doc/pub/week36/ipynb/week36.ipynb +++ b/doc/pub/week36/ipynb/week36.ipynb @@ -1296,7 +1296,7 @@ "# print(MSEPredict[i])\n", " # Now plot the results\n", "plt.figure()\n", - "plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Test')\n", + "plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Train')\n", "plt.xlabel('log10(lambda)')\n", "plt.ylabel('MSE')\n", "plt.legend()\n", @@ -1368,7 +1368,7 @@ " RegLasso = linear_model.Lasso(lmb)\n", " RegLasso.fit(X,y)\n", " ypredictLasso = RegLasso.predict(X)\n", - " print(RegLasso_coef_)\n", + " print(RegLasso.coef_)\n", " MSELassoPredict[i] = MSE(y,ypredictLasso)\n", "# Now plot the results\n", "plt.figure()\n", diff --git a/doc/src/week36/week36.do.txt b/doc/src/week36/week36.do.txt index 99196f716..ac81f980b 100644 --- a/doc/src/week36/week36.do.txt +++ b/doc/src/week36/week36.do.txt @@ -737,7 +737,7 @@ for i in range(nlambdas): # print(MSEPredict[i]) # Now plot the results plt.figure() -plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Test') +plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Train') plt.xlabel('log10(lambda)') plt.ylabel('MSE') plt.legend() @@ -798,7 +798,7 @@ for i in range(nlambdas): RegLasso = linear_model.Lasso(lmb) RegLasso.fit(X,y) ypredictLasso = RegLasso.predict(X) - print(RegLasso_coef_) + print(RegLasso.coef_) MSELassoPredict[i] = MSE(y,ypredictLasso) # Now plot the results plt.figure()