typo in exercises week 37
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9b0bb122",
|
||||
"id": "1b638450",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "48cf6ad1",
|
||||
"id": "60060788",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3765446f",
|
||||
"id": "7cdd88e4",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -46,7 +46,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "82ccb1c9",
|
||||
"id": "0328fa2a",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -58,7 +58,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2d9c0494",
|
||||
"id": "ac760265",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -70,7 +70,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "df88ac02",
|
||||
"id": "8d4b0753",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -83,7 +83,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ce2e4a69",
|
||||
"id": "4517d311",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -99,7 +99,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "294f41ac",
|
||||
"id": "da1834a9",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -114,13 +114,13 @@
|
||||
"term, the data is shifted such that the intercept is effectively 0\n",
|
||||
". (In practice, one could include an intercept in the model and not\n",
|
||||
"penalize it, but here we simplify by centering.)\n",
|
||||
"Choose $n=100$ data points and set up $\\boldsymbol{x}, $\\boldsymbol{y} and the design matrix $\\boldsymbol{X}$."
|
||||
"Choose $n=100$ data points and set up $\\boldsymbol{x}, $\\boldsymbol{y}$ and the design matrix $\\boldsymbol{X}$."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "9c98b0d9",
|
||||
"id": "590b2fb0",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -140,7 +140,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "802cf96b",
|
||||
"id": "24dd92fc",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -156,7 +156,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "90164acc",
|
||||
"id": "4ba80e16",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -168,7 +168,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "55d1c701",
|
||||
"id": "be65f56f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -179,7 +179,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "22b80fe2",
|
||||
"id": "c265677e",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -200,7 +200,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "a0a8a8ec",
|
||||
"id": "b989efb9",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -214,7 +214,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "8e317939",
|
||||
"id": "17b08af7",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -226,7 +226,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "7b52e9af",
|
||||
"id": "6acd4708",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -238,7 +238,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ba0b5a80",
|
||||
"id": "50579422",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -258,7 +258,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "e29c2842",
|
||||
"id": "c57cc917",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -301,7 +301,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9dc52b0e",
|
||||
"id": "e2654903",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -313,7 +313,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "4584ce15",
|
||||
"id": "7e7e7de6",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -325,7 +325,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2f9f5861",
|
||||
"id": "75542708",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -351,7 +351,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "9e336d9b",
|
||||
"id": "06077986",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -380,7 +380,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5afbeef2",
|
||||
"id": "86d46505",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -394,7 +394,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "28beeaf3",
|
||||
"id": "f1d2f848",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -406,7 +406,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "36ba38c1",
|
||||
"id": "f1c91e84",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -449,7 +449,7 @@ Subtract the mean and divide by the standard deviation for each feature.</p>
|
||||
term, the data is shifted such that the intercept is effectively 0
|
||||
. (In practice, one could include an intercept in the model and not
|
||||
penalize it, but here we simplify by centering.)
|
||||
Choose <span class="math notranslate nohighlight">\(n=100\)</span> data points and set up <span class="math notranslate nohighlight">\(\boldsymbol{x}, \)</span>\boldsymbol{y} and the design matrix <span class="math notranslate nohighlight">\(\boldsymbol{X}\)</span>.</p>
|
||||
Choose <span class="math notranslate nohighlight">\(n=100\)</span> data points and set up <span class="math notranslate nohighlight">\(\boldsymbol{x}, \)</span>\boldsymbol{y}<span class="math notranslate nohighlight">\( and the design matrix \)</span>\boldsymbol{X}$.</p>
|
||||
<div class="cell docutils container">
|
||||
<div class="cell_input docutils container">
|
||||
<div class="highlight-none notranslate"><div class="highlight"><pre><span></span># Standardize features (zero mean, unit variance for each feature)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -472,9 +472,9 @@ doconce format html week36.do.txt --no_mako -->
|
||||
<ol class="arabic simple">
|
||||
<li><p>Linear Regression, ordinary least squares (OLS), Ridge and Lasso and mathematical analysis</p></li>
|
||||
<li><p>Derivation of Gradient descent and discussion of implementations for</p></li>
|
||||
<li><p>Video of lecture at <a class="reference external" href="https://youtu.be/nVE_FRnGAHw">https://youtu.be/nVE_FRnGAHw</a></p></li>
|
||||
<li><p>Whiteboard notes at <a class="github reference external" href="https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/2025/FYSSTKweek36.pdf">CompPhysics/MachineLearning</a></p></li>
|
||||
</ol>
|
||||
<!-- * [Video of lecture](https://youtu.be/oHjqjUB36KE) -->
|
||||
<!-- * [Whiteboard notes](https://github.com/CompPhysics/MachineLearning/blob/master/doc/HandWrittenNotes/2024/NotesSeptember2.pdf) -->
|
||||
<p><strong>Material for the lab sessions on Tuesday and Wednesday (see at the end of these slides):</strong></p>
|
||||
<ol class="arabic simple">
|
||||
<li><p>Technicalities concerning Ridge and Lasso linear regression.</p></li>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9b0bb122",
|
||||
"id": "1b638450",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "48cf6ad1",
|
||||
"id": "60060788",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3765446f",
|
||||
"id": "7cdd88e4",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -46,7 +46,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "82ccb1c9",
|
||||
"id": "0328fa2a",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -58,7 +58,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2d9c0494",
|
||||
"id": "ac760265",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -70,7 +70,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "df88ac02",
|
||||
"id": "8d4b0753",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -83,7 +83,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ce2e4a69",
|
||||
"id": "4517d311",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -99,7 +99,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "294f41ac",
|
||||
"id": "da1834a9",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -114,13 +114,13 @@
|
||||
"term, the data is shifted such that the intercept is effectively 0\n",
|
||||
". (In practice, one could include an intercept in the model and not\n",
|
||||
"penalize it, but here we simplify by centering.)\n",
|
||||
"Choose $n=100$ data points and set up $\\boldsymbol{x}, $\\boldsymbol{y} and the design matrix $\\boldsymbol{X}$."
|
||||
"Choose $n=100$ data points and set up $\\boldsymbol{x}, $\\boldsymbol{y}$ and the design matrix $\\boldsymbol{X}$."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "9c98b0d9",
|
||||
"id": "590b2fb0",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -140,7 +140,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "802cf96b",
|
||||
"id": "24dd92fc",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -156,7 +156,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "90164acc",
|
||||
"id": "4ba80e16",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -168,7 +168,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "55d1c701",
|
||||
"id": "be65f56f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -179,7 +179,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "22b80fe2",
|
||||
"id": "c265677e",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -200,7 +200,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "a0a8a8ec",
|
||||
"id": "b989efb9",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -214,7 +214,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "8e317939",
|
||||
"id": "17b08af7",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -226,7 +226,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "7b52e9af",
|
||||
"id": "6acd4708",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -238,7 +238,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ba0b5a80",
|
||||
"id": "50579422",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -258,7 +258,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "e29c2842",
|
||||
"id": "c57cc917",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -301,7 +301,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9dc52b0e",
|
||||
"id": "e2654903",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -313,7 +313,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "4584ce15",
|
||||
"id": "7e7e7de6",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -325,7 +325,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2f9f5861",
|
||||
"id": "75542708",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -351,7 +351,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "9e336d9b",
|
||||
"id": "06077986",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -380,7 +380,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5afbeef2",
|
||||
"id": "86d46505",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -394,7 +394,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "28beeaf3",
|
||||
"id": "f1d2f848",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -406,7 +406,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "36ba38c1",
|
||||
"id": "f1c91e84",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9b0bb122",
|
||||
"id": "1b638450",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -14,7 +14,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "48cf6ad1",
|
||||
"id": "60060788",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -27,7 +27,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "3765446f",
|
||||
"id": "7cdd88e4",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -46,7 +46,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "82ccb1c9",
|
||||
"id": "0328fa2a",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -58,7 +58,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2d9c0494",
|
||||
"id": "ac760265",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -70,7 +70,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "df88ac02",
|
||||
"id": "8d4b0753",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -83,7 +83,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ce2e4a69",
|
||||
"id": "4517d311",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -99,7 +99,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "294f41ac",
|
||||
"id": "da1834a9",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -114,13 +114,13 @@
|
||||
"term, the data is shifted such that the intercept is effectively 0\n",
|
||||
". (In practice, one could include an intercept in the model and not\n",
|
||||
"penalize it, but here we simplify by centering.)\n",
|
||||
"Choose $n=100$ data points and set up $\\boldsymbol{x}, $\\boldsymbol{y} and the design matrix $\\boldsymbol{X}$."
|
||||
"Choose $n=100$ data points and set up $\\boldsymbol{x}, $\\boldsymbol{y}$ and the design matrix $\\boldsymbol{X}$."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "9c98b0d9",
|
||||
"id": "590b2fb0",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -140,7 +140,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "802cf96b",
|
||||
"id": "24dd92fc",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -156,7 +156,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "90164acc",
|
||||
"id": "4ba80e16",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -168,7 +168,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "55d1c701",
|
||||
"id": "be65f56f",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -179,7 +179,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "22b80fe2",
|
||||
"id": "c265677e",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -200,7 +200,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "a0a8a8ec",
|
||||
"id": "b989efb9",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -214,7 +214,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "8e317939",
|
||||
"id": "17b08af7",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -226,7 +226,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "7b52e9af",
|
||||
"id": "6acd4708",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -238,7 +238,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "ba0b5a80",
|
||||
"id": "50579422",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -258,7 +258,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "e29c2842",
|
||||
"id": "c57cc917",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -301,7 +301,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9dc52b0e",
|
||||
"id": "e2654903",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -313,7 +313,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "4584ce15",
|
||||
"id": "7e7e7de6",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -325,7 +325,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "2f9f5861",
|
||||
"id": "75542708",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -351,7 +351,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "9e336d9b",
|
||||
"id": "06077986",
|
||||
"metadata": {
|
||||
"collapsed": false,
|
||||
"editable": true
|
||||
@@ -380,7 +380,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "5afbeef2",
|
||||
"id": "86d46505",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -394,7 +394,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "28beeaf3",
|
||||
"id": "f1d2f848",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
@@ -406,7 +406,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "36ba38c1",
|
||||
"id": "f1c91e84",
|
||||
"metadata": {
|
||||
"editable": true
|
||||
},
|
||||
|
||||
+362
-360
File diff suppressed because it is too large
Load Diff
@@ -45,7 +45,7 @@ We will also center the target $\bm{y}$ to mean $0$. Centering $\bm{y}$
|
||||
term, the data is shifted such that the intercept is effectively 0
|
||||
. (In practice, one could include an intercept in the model and not
|
||||
penalize it, but here we simplify by centering.)
|
||||
Choose $n=100$ data points and set up $\bm{x}, $\bm{y} and the design matrix $\bm{X}$.
|
||||
Choose $n=100$ data points and set up $\bm{x}, $\bm{y}$ and the design matrix $\bm{X}$.
|
||||
|
||||
!bc pycod
|
||||
# Standardize features (zero mean, unit variance for each feature)
|
||||
|
||||
Reference in New Issue
Block a user