diff --git a/doc/LectureNotes/_build/.doctrees/environment.pickle b/doc/LectureNotes/_build/.doctrees/environment.pickle
index 27d0393f4..833d5730f 100644
Binary files a/doc/LectureNotes/_build/.doctrees/environment.pickle and b/doc/LectureNotes/_build/.doctrees/environment.pickle differ
diff --git a/doc/LectureNotes/_build/.doctrees/intro.doctree b/doc/LectureNotes/_build/.doctrees/intro.doctree
index 0b4af0db7..be2791f6e 100644
Binary files a/doc/LectureNotes/_build/.doctrees/intro.doctree and b/doc/LectureNotes/_build/.doctrees/intro.doctree differ
diff --git a/doc/LectureNotes/_build/.doctrees/week35.doctree b/doc/LectureNotes/_build/.doctrees/week35.doctree
index 466c7947a..d2306087b 100644
Binary files a/doc/LectureNotes/_build/.doctrees/week35.doctree and b/doc/LectureNotes/_build/.doctrees/week35.doctree differ
diff --git a/doc/LectureNotes/_build/.doctrees/week36.doctree b/doc/LectureNotes/_build/.doctrees/week36.doctree
new file mode 100644
index 000000000..6f5cc044a
Binary files /dev/null and b/doc/LectureNotes/_build/.doctrees/week36.doctree differ
diff --git a/doc/LectureNotes/_build/html/_images/10da0f5e683788ca6e620272ac457ee7b57be28e1f84c126da008b0cb32f6b2f.png b/doc/LectureNotes/_build/html/_images/10da0f5e683788ca6e620272ac457ee7b57be28e1f84c126da008b0cb32f6b2f.png
new file mode 100644
index 000000000..89a51346a
Binary files /dev/null and b/doc/LectureNotes/_build/html/_images/10da0f5e683788ca6e620272ac457ee7b57be28e1f84c126da008b0cb32f6b2f.png differ
diff --git a/doc/LectureNotes/_build/html/_sources/week35.ipynb b/doc/LectureNotes/_build/html/_sources/week35.ipynb
index b5da95d0a..d133469fa 100644
--- a/doc/LectureNotes/_build/html/_sources/week35.ipynb
+++ b/doc/LectureNotes/_build/html/_sources/week35.ipynb
@@ -1376,7 +1376,10 @@
"id": "01229cfb",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1414,7 +1417,10 @@
"id": "6ca9744d",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1441,7 +1447,10 @@
"id": "d4131dbc",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1465,7 +1474,10 @@
"id": "c1b15227",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1488,7 +1500,10 @@
"id": "319c1a33",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1515,7 +1530,10 @@
"id": "52ad17b3",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1561,7 +1579,10 @@
"id": "6927de82",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1625,7 +1646,10 @@
"id": "ac968b0f",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1815,7 +1839,10 @@
"id": "98079995",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1912,7 +1939,10 @@
"id": "d00a25ea",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -1942,7 +1972,10 @@
"id": "5ba30f30",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -2711,7 +2744,10 @@
"id": "2c933b95",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -3029,7 +3065,10 @@
"id": "52ee2c0a",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -4062,7 +4101,10 @@
"id": "80c333dc",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -4100,7 +4142,10 @@
"id": "4a07353d",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -4159,7 +4204,10 @@
"id": "488f60ab",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -5139,7 +5187,10 @@
"id": "c00a9805",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -5523,13 +5574,48 @@
},
{
"cell_type": "code",
- "execution_count": 18,
+ "execution_count": 1,
"id": "a11f0699",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
- "outputs": [],
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "True beta: [2, 0.5, 3.7]\n",
+ "Fitted beta: [2.08376632 0.19569961 3.97898392]\n",
+ "Sklearn fitted beta: [2.08376632 0.19569961 3.97898392]\n",
+ "MSE with intercept column\n",
+ "0.004113634617443139\n",
+ "MSE with intercept column from SKL\n",
+ "0.004113634617443147\n",
+ "Manual intercept: 2.083766322923899\n",
+ "Fitted beta (without intercept): [0.19569961 3.97898392]\n",
+ "Sklearn intercept: 2.0837663229239043\n",
+ "Sklearn fitted beta (without intercept): [0.19569961 3.97898392]\n",
+ "MSE with Manual intercept\n",
+ "0.00411363461744314\n",
+ "MSE with Sklearn intercept\n",
+ "0.004113634617443131\n"
+ ]
+ },
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAAAhYAAAGdCAYAAABO2DpVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguNCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy8fJSN1AAAACXBIWXMAAA9hAAAPYQGoP6dpAABswElEQVR4nO3dd3gUVffA8e9m0yskpAGBhE4IBBBDkypNqgjSlKqgCEp5Ebs0pUkTFRSQ8gMBBSlKCaB0kF4khBoSaiCEQHrZMr8/8rIvSxJIILubcj7Ps4/u7Mzds4dN5uTeO3dUiqIoCCGEEELkAytLByCEEEKIokMKCyGEEELkGykshBBCCJFvpLAQQgghRL6RwkIIIYQQ+UYKCyGEEELkGykshBBCCJFvpLAQQgghRL6xNvcb6vV6bt26hYuLCyqVytxvL4QQQohnoCgKiYmJlC5dGiurnPslzF5Y3Lp1Cz8/P3O/rRBCCCHywfXr1ylbtmyOr5u9sHBxcQEyA3N1dc23djUaDdu3b6dNmzbY2NjkW7vCmOTZfCTX5iF5Ng/Js3mYMs8JCQn4+fkZzuM5MXth8XD4w9XVNd8LC0dHR1xdXeVLa0KSZ/ORXJuH5Nk8JM/mYY48P20ag0zeFEIIIUS+kcJCCCGEEPlGCgshhBBC5Buzz7HIDZ1Oh0ajydMxGo0Ga2tr0tLS0Ol0JopMSJ7NpyjlWq1WY21tLZeYC1EMFLjCIikpiRs3bqAoSp6OUxQFHx8frl+/Lr+8TEjybD5FLdeOjo74+vpia2tr6VCEECZUoAoLnU7HjRs3cHR0xNPTM0+/TPV6PUlJSTg7Oz9x4Q7xfCTP5lNUcq0oChkZGdy9e5fIyEgqV65cqD+PEOLJClRhodFoUBQFT09PHBwc8nSsXq8nIyMDe3t7+aVl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ovzwww9K+fLlFVtbW6Vu3brKnj17DK/1799fadasmdH+u3fvVurUqaPY2toq/v7+yvz5880cceGUlzw3a9ZMAbI8+vfvb/7AC5m8fp8fJYVF3uQ11+fOnVNatWqlODg4KGXLllVGjx6tpKSkmDnqwieveZ47d64SGBioODg4KL6+vsobb7yh3Lhxw8xRFy67du164u/cgnAulNumCyGEECLfFIo5FkIIIYQoHKSwEEIIIUS+kcJCCCGEEPlGCgshhBBC5BspLIQQQgiRb6SwEEIIIUS+kcJCCCGEEPlGCgshhBBC5BspLIQQQgiRb6SwEEIIIUS+kcJCCCGEEPlGCgshhBBC5Jv/B0LFhVYonimoAAAAAElFTkSuQmCC",
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
@@ -5719,7 +5805,10 @@
"id": "5b7e1c63",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -5809,7 +5898,10 @@
"id": "3a82ee91",
"metadata": {
"collapsed": false,
- "editable": true
+ "editable": true,
+ "jupyter": {
+ "outputs_hidden": false
+ }
},
"outputs": [],
"source": [
@@ -5909,7 +6001,25 @@
]
}
],
- "metadata": {},
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.9.15"
+ }
+ },
"nbformat": 4,
"nbformat_minor": 5
}
diff --git a/doc/LectureNotes/_build/html/_sources/week36.ipynb b/doc/LectureNotes/_build/html/_sources/week36.ipynb
new file mode 100644
index 000000000..8bda05b08
--- /dev/null
+++ b/doc/LectureNotes/_build/html/_sources/week36.ipynb
@@ -0,0 +1,4999 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "b8f45e2d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "\n",
+ ""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b3f2ead9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "# Week 36: Linear Regression and Gradient descent\n",
+ "**Morten Hjorth-Jensen**, Department of Physics, University of Oslo, Norway\n",
+ "\n",
+ "Date: **September 1-5, 2025**"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "04553781",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Plans for week 36\n",
+ "\n",
+ "**Material for the lecture on Monday September 1:**\n",
+ "1. Linear Regression, ordinary least squares (OLS), Ridge and Lasso and mathematical analysis\n",
+ "\n",
+ "2. Derivation of Gradient descent and discussion of implementations for\n",
+ "\n",
+ "\n",
+ "\n",
+ "**Material for the lab sessions on Tuesday and Wednesday (see at the end of these slides):**\n",
+ "1. Technicalities concerning Ridge and Lasso linear regression.\n",
+ "\n",
+ "2. Presentation and discussion of the first project\n",
+ "\n",
+ "\n",
+ "**Reading suggestion:**\n",
+ "1. Goodfellow et al, Deep Learning, introduction to gradient descent, see chapter 4.3 at \n",
+ "\n",
+ "2. Rashcka et al, pages 37-44 and pages 278-283 with focus on linear regression.\n",
+ "\n",
+ "3. Video on gradient descent at "
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1016bcdb",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Material for lecture Monday September 2"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "839e657a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Mathematical Interpretation of Ordinary Least Squares\n",
+ "\n",
+ "What is presented here is a mathematical analysis of various regression algorithms (ordinary least squares, Ridge and Lasso Regression). The analysis is based on an important algorithm in linear algebra, the so-called Singular Value Decomposition (SVD). \n",
+ "\n",
+ "We have shown that in ordinary least squares the optimal parameters $\\theta$ are given by"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "12dc9112",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}} = \\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "df3e7f6d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The **hat** over $\\boldsymbol{\\theta}$ means we have the optimal parameters after minimization of the cost function.\n",
+ "\n",
+ "This means that our best model is defined as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "cc1caa8e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{\\boldsymbol{y}}=\\boldsymbol{X}\\hat{\\boldsymbol{\\theta}} = \\boldsymbol{X}\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "aaf95f40",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We now define a matrix"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5e615b93",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{A}=\\boldsymbol{X}\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7f764f4e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We can rewrite"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4e0d9985",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{\\boldsymbol{y}}=\\boldsymbol{X}\\hat{\\boldsymbol{\\theta}} = \\boldsymbol{A}\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a11e3b77",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The matrix $\\boldsymbol{A}$ has the important property that $\\boldsymbol{A}^2=\\boldsymbol{A}$. This is the definition of a projection matrix.\n",
+ "We can then interpret our optimal model $\\tilde{\\boldsymbol{y}}$ as being represented by an orthogonal projection of $\\boldsymbol{y}$ onto a space defined by the column vectors of $\\boldsymbol{X}$. In our case here the matrix $\\boldsymbol{A}$ is a square matrix. If it is a general rectangular matrix we have an oblique projection matrix."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b175d8ad",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Residual Error\n",
+ "\n",
+ "We have defined the residual error as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0901c5d9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\epsilon}=\\boldsymbol{y}-\\tilde{\\boldsymbol{y}}=\\left[\\boldsymbol{I}-\\boldsymbol{X}\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\right]\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7263285d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The residual errors are then the projections of $\\boldsymbol{y}$ onto the orthogonal component of the space defined by the column vectors of $\\boldsymbol{X}$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c0f54e1a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Simple case\n",
+ "\n",
+ "If the matrix $\\boldsymbol{X}$ is an orthogonal (or unitary in case of complex values) matrix, we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "035835e7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=\\boldsymbol{X}\\boldsymbol{X}^T = \\boldsymbol{I}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a0dca7fe",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "In this case the matrix $\\boldsymbol{A}$ becomes"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5808efd5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{A}=\\boldsymbol{X}\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T)=\\boldsymbol{I},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "cca67bb8",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and we have the obvious case"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a189ce2b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\epsilon}=\\boldsymbol{y}-\\tilde{\\boldsymbol{y}}=0.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7835a4fb",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "This serves also as a useful test of our codes."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1ba547c3",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The singular value decomposition\n",
+ "\n",
+ "The examples we have looked at so far are cases where we normally can\n",
+ "invert the matrix $\\boldsymbol{X}^T\\boldsymbol{X}$. Using a polynomial expansion where we fit of various functions leads to\n",
+ "row vectors of the design matrix which are essentially orthogonal due\n",
+ "to the polynomial character of our model. Obtaining the inverse of the\n",
+ "design matrix is then often done via a so-called LU, QR or Cholesky\n",
+ "decomposition.\n",
+ "\n",
+ "As we will also see in the first project, \n",
+ "this may\n",
+ "however not the be case in general and a standard matrix inversion\n",
+ "algorithm based on say LU, QR or Cholesky decomposition may lead to singularities. We will see examples of this below and in other examples.\n",
+ "\n",
+ "There is however a way to circumvent this problem and also\n",
+ "gain some insights about the ordinary least squares approach, and\n",
+ "later shrinkage methods like Ridge and Lasso regressions.\n",
+ "\n",
+ "This is given by the **Singular Value Decomposition** (SVD) algorithm,\n",
+ "perhaps the most powerful linear algebra algorithm. The SVD provides\n",
+ "a numerically stable matrix decomposition that is used in a large\n",
+ "swath oc applications and the decomposition is always stable\n",
+ "numerically.\n",
+ "\n",
+ "In machine learning it plays a central role in dealing with for\n",
+ "example design matrices that may be near singular or singular.\n",
+ "Furthermore, as we will see here, the singular values can be related\n",
+ "to the covariance matrix (and thereby the correlation matrix) and in\n",
+ "turn the variance of a given quantity. It plays also an important role\n",
+ "in the principal component analysis where high-dimensional data can be\n",
+ "reduced to the statistically relevant features."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "55bc2c91",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Linear Regression Problems\n",
+ "\n",
+ "One of the typical problems we encounter with linear regression, in particular \n",
+ "when the matrix $\\boldsymbol{X}$ (our so-called design matrix) is high-dimensional, \n",
+ "are problems with near singular or singular matrices. The column vectors of $\\boldsymbol{X}$ \n",
+ "may be linearly dependent, normally referred to as super-collinearity. \n",
+ "This means that the matrix may be rank deficient and it is basically impossible to \n",
+ "to model the data using linear regression. As an example, consider the matrix"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c702f5e0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\begin{align*}\n",
+ "\\mathbf{X} & = \\left[\n",
+ "\\begin{array}{rrr}\n",
+ "1 & -1 & 2\n",
+ "\\\\\n",
+ "1 & 0 & 1\n",
+ "\\\\\n",
+ "1 & 2 & -1\n",
+ "\\\\\n",
+ "1 & 1 & 0\n",
+ "\\end{array} \\right]\n",
+ "\\end{align*}\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "86cc8cb6",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The columns of $\\boldsymbol{X}$ are linearly dependent. We see this easily since the \n",
+ "the first column is the row-wise sum of the other two columns. The rank (more correct,\n",
+ "the column rank) of a matrix is the dimension of the space spanned by the\n",
+ "column vectors. Hence, the rank of $\\mathbf{X}$ is equal to the number\n",
+ "of linearly independent columns. In this particular case the matrix has rank 2.\n",
+ "\n",
+ "Super-collinearity of an $(n \\times p)$-dimensional design matrix $\\mathbf{X}$ implies\n",
+ "that the inverse of the matrix $\\boldsymbol{X}^T\\boldsymbol{X}$ (the matrix we need to invert to solve the linear regression equations) is non-invertible. If we have a square matrix that does not have an inverse, we say this matrix singular. The example here demonstrates this"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1797b7e5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\begin{align*}\n",
+ "\\boldsymbol{X} & = \\left[\n",
+ "\\begin{array}{rr}\n",
+ "1 & -1\n",
+ "\\\\\n",
+ "1 & -1\n",
+ "\\end{array} \\right].\n",
+ "\\end{align*}\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "dc73a5a2",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We see easily that $\\mbox{det}(\\boldsymbol{X}) = x_{11} x_{22} - x_{12} x_{21} = 1 \\times (-1) - 1 \\times (-1) = 0$. Hence, $\\mathbf{X}$ is singular and its inverse is undefined.\n",
+ "This is equivalent to saying that the matrix $\\boldsymbol{X}$ has at least an eigenvalue which is zero."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "20b19ac5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Fixing the singularity\n",
+ "\n",
+ "If our design matrix $\\boldsymbol{X}$ which enters the linear regression problem"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c269e5e9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "\n",
+ "
\n",
+ "\n",
+ "$$\n",
+ "\\begin{equation}\n",
+ "\\boldsymbol{\\theta} = (\\boldsymbol{X}^{T} \\boldsymbol{X})^{-1} \\boldsymbol{X}^{T} \\boldsymbol{y},\n",
+ "\\label{_auto1} \\tag{1}\n",
+ "\\end{equation}\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "64cdb37b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "has linearly dependent column vectors, we will not be able to compute the inverse\n",
+ "of $\\boldsymbol{X}^T\\boldsymbol{X}$ and we cannot find the parameters (estimators) $\\theta_i$. \n",
+ "The estimators are only well-defined if $(\\boldsymbol{X}^{T}\\boldsymbol{X})^{-1}$ exits. \n",
+ "This is more likely to happen when the matrix $\\boldsymbol{X}$ is high-dimensional. In this case it is likely to encounter a situation where \n",
+ "the regression parameters $\\theta_i$ cannot be estimated.\n",
+ "\n",
+ "A cheap *ad hoc* approach is simply to add a small diagonal component to the matrix to invert, that is we change"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3e6e5a3e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^{T} \\boldsymbol{X} \\rightarrow \\boldsymbol{X}^{T} \\boldsymbol{X}+\\lambda \\boldsymbol{I},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "fd83bb4b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where $\\boldsymbol{I}$ is the identity matrix. When we discuss **Ridge** regression this is actually what we end up evaluating. The parameter $\\lambda$ is called a hyperparameter. More about this later."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "45b376e8",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Ridge and LASSO Regression\n",
+ "\n",
+ "Let us remind ourselves about the expression for the standard Mean Squared Error (MSE) which we used to define our cost function and the equations for the ordinary least squares (OLS) method, that is \n",
+ "our optimization problem is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "90bb63a4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in {\\mathbb{R}}^{p}}}\\frac{1}{n}\\left\\{\\left(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\right)^T\\left(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\right)\\right\\}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "de110cca",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "or we can state it as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a8f75c00",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\sum_{i=0}^{n-1}\\left(y_i-\\tilde{y}_i\\right)^2=\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e3d1ecbd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where we have used the definition of a norm-2 vector, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a932ed24",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\vert\\vert \\boldsymbol{x}\\vert\\vert_2 = \\sqrt{\\sum_i x_i^2}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9ec04c56",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "By minimizing the above equation with respect to the parameters\n",
+ "$\\boldsymbol{\\theta}$ we could then obtain an analytical expression for the\n",
+ "parameters $\\boldsymbol{\\theta}$. We can add a regularization parameter $\\lambda$ by\n",
+ "defining a new cost function to be optimized, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c191b236",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_2^2\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "214affcd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which leads to the Ridge regression minimization problem where we\n",
+ "require that $\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_2^2\\le t$, where $t$ is\n",
+ "a finite number larger than zero. By defining"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "cebe8ac0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{X},\\boldsymbol{\\theta})=\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_1,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a10a36e8",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "we have a new optimization equation"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "51e17519",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_1\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "eb706113",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which leads to Lasso regression. Lasso stands for least absolute shrinkage and selection operator. \n",
+ "\n",
+ "Here we have defined the norm-1 as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f2252659",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\vert\\vert \\boldsymbol{x}\\vert\\vert_1 = \\sum_i \\vert x_i\\vert.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "bcf67e2c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Deriving the Ridge Regression Equations\n",
+ "\n",
+ "Using the matrix-vector expression for Ridge regression and dropping the parameter $1/n$ in front of the standard means squared error equation, we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4053a663",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{X},\\boldsymbol{\\theta})=\\left\\{(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})^T(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})\\right\\}+\\lambda\\boldsymbol{\\theta}^T\\boldsymbol{\\theta},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8c8d8ce5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and \n",
+ "taking the derivatives with respect to $\\boldsymbol{\\theta}$ we obtain then\n",
+ "a slightly modified matrix inversion problem which for finite values\n",
+ "of $\\lambda$ does not suffer from singularity problems. We obtain\n",
+ "the optimal parameters"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "fd306ffb",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}_{\\mathrm{Ridge}} = \\left(\\boldsymbol{X}^T\\boldsymbol{X}+\\lambda\\boldsymbol{I}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f819a5cd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with $\\boldsymbol{I}$ being a $p\\times p$ identity matrix with the constraint that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "95c2e048",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\sum_{i=0}^{p-1} \\theta_i^2 \\leq t,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "071a983e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with $t$ a finite positive number. \n",
+ "\n",
+ "If we keep the $1/n$ factor, the equation for the optimal $\\theta$ changes to"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "36d40252",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}_{\\mathrm{Ridge}} = \\left(\\boldsymbol{X}^T\\boldsymbol{X}+n\\lambda\\boldsymbol{I}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e70d5af4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "In many textbooks the $1/n$ term is often omitted. Note that a library like **Scikit-Learn** does not include the $1/n$ factor in the setup of the cost function.\n",
+ "\n",
+ "When we compare this with the ordinary least squares result we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d0becda4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}_{\\mathrm{OLS}} = \\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c8ee3aff",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which can lead to singular matrices. However, with the SVD, we can always compute the inverse of the matrix $\\boldsymbol{X}^T\\boldsymbol{X}$.\n",
+ "\n",
+ "We see that Ridge regression is nothing but the standard OLS with a\n",
+ "modified diagonal term added to $\\boldsymbol{X}^T\\boldsymbol{X}$. The consequences, in\n",
+ "particular for our discussion of the bias-variance tradeoff are rather\n",
+ "interesting. We will see that for specific values of $\\lambda$, we may\n",
+ "even reduce the variance of the optimal parameters $\\boldsymbol{\\theta}$. These topics and other related ones, will be discussed after the more linear algebra oriented analysis here.\n",
+ "\n",
+ "When we have discussed the singular value decomposition of the design\n",
+ "matrix $\\boldsymbol{X}$, we will in turn perform a more rigorous mathematical\n",
+ "discussion of Ridge regression.\n",
+ "\n",
+ "The code here is a simple demonstration of how to implement Ridge regression with our own code and compare this with scikit-learn."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "19ea825b",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "%matplotlib inline\n",
+ "\n",
+ "import numpy as np\n",
+ "import pandas as pd\n",
+ "import matplotlib.pyplot as plt\n",
+ "from sklearn.model_selection import train_test_split\n",
+ "from sklearn import linear_model\n",
+ "\n",
+ "def MSE(y_data,y_model):\n",
+ " n = np.size(y_model)\n",
+ " return np.sum((y_data-y_model)**2)/n\n",
+ "\n",
+ "\n",
+ "# A seed just to ensure that the random numbers are the same for every run.\n",
+ "# Useful for eventual debugging.\n",
+ "np.random.seed(3155)\n",
+ "\n",
+ "n = 100\n",
+ "x = np.random.rand(n)\n",
+ "y = np.exp(-x**2) + 1.5 * np.exp(-(x-2)**2)\n",
+ "\n",
+ "Maxpolydegree = 20\n",
+ "X = np.zeros((n,Maxpolydegree))\n",
+ "#We include explicitely the intercept column\n",
+ "for degree in range(Maxpolydegree):\n",
+ " X[:,degree] = x**degree\n",
+ "# We split the data in test and training data\n",
+ "X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)\n",
+ "\n",
+ "p = Maxpolydegree\n",
+ "I = np.eye(p,p)\n",
+ "# Decide which values of lambda to use\n",
+ "nlambdas = 6\n",
+ "MSEOwnRidgePredict = np.zeros(nlambdas)\n",
+ "MSERidgePredict = np.zeros(nlambdas)\n",
+ "lambdas = np.logspace(-4, 2, nlambdas)\n",
+ "for i in range(nlambdas):\n",
+ " lmb = lambdas[i]\n",
+ " OwnRidgeTheta = np.linalg.pinv(X_train.T @ X_train+lmb*I) @ X_train.T @ y_train\n",
+ " # Note: we include the intercept column and no scaling\n",
+ " RegRidge = linear_model.Ridge(lmb,fit_intercept=False)\n",
+ " RegRidge.fit(X_train,y_train)\n",
+ " # and then make the prediction\n",
+ " ytildeOwnRidge = X_train @ OwnRidgeTheta\n",
+ " ypredictOwnRidge = X_test @ OwnRidgeTheta\n",
+ " ytildeRidge = RegRidge.predict(X_train)\n",
+ " ypredictRidge = RegRidge.predict(X_test)\n",
+ " MSEOwnRidgePredict[i] = MSE(y_test,ypredictOwnRidge)\n",
+ " MSERidgePredict[i] = MSE(y_test,ypredictRidge)\n",
+ " print(\"Theta values for own Ridge implementation\")\n",
+ " print(OwnRidgeTheta)\n",
+ " print(\"Theta values for Scikit-Learn Ridge implementation\")\n",
+ " print(RegRidge.coef_)\n",
+ " print(\"MSE values for own Ridge implementation\")\n",
+ " print(MSEOwnRidgePredict[i])\n",
+ " print(\"MSE values for Scikit-Learn Ridge implementation\")\n",
+ " print(MSERidgePredict[i])\n",
+ "\n",
+ "# Now plot the results\n",
+ "plt.figure()\n",
+ "plt.plot(np.log10(lambdas), MSEOwnRidgePredict, 'r', label = 'MSE own Ridge Test')\n",
+ "plt.plot(np.log10(lambdas), MSERidgePredict, 'g', label = 'MSE Ridge Test')\n",
+ "\n",
+ "plt.xlabel('log10(lambda)')\n",
+ "plt.ylabel('MSE')\n",
+ "plt.legend()\n",
+ "plt.show()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "85080d04",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The results here agree when we force **Scikit-Learn**'s Ridge function to include the first column in our design matrix.\n",
+ "We see that the results agree very well. Here we have thus explicitely included the intercept column in the design matrix.\n",
+ "What happens if we do not include the intercept in our fit? We will discuss this in more detail next week."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "cefa4cb7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Basic math of the SVD\n",
+ "\n",
+ "From standard linear algebra we know that a square matrix $\\boldsymbol{X}$ can be diagonalized if and only if it is \n",
+ "a so-called [normal matrix](https://en.wikipedia.org/wiki/Normal_matrix), that is if $\\boldsymbol{X}\\in {\\mathbb{R}}^{n\\times n}$\n",
+ "we have $\\boldsymbol{X}\\boldsymbol{X}^T=\\boldsymbol{X}^T\\boldsymbol{X}$ or if $\\boldsymbol{X}\\in {\\mathbb{C}}^{n\\times n}$ we have $\\boldsymbol{X}\\boldsymbol{X}^{\\dagger}=\\boldsymbol{X}^{\\dagger}\\boldsymbol{X}$.\n",
+ "The matrix has then a set of eigenpairs"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "10147fa0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "(\\lambda_1,\\boldsymbol{u}_1),\\dots, (\\lambda_n,\\boldsymbol{u}_n),\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2405041d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and the eigenvalues are given by the diagonal matrix"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a1a6b707",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\Sigma}=\\mathrm{Diag}(\\lambda_1, \\dots,\\lambda_n).\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ae672df8",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The matrix $\\boldsymbol{X}$ can be written in terms of an orthogonal/unitary transformation $\\boldsymbol{U}$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "53ea5d3b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X} = \\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "19d5965a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with $\\boldsymbol{U}\\boldsymbol{U}^T=\\boldsymbol{I}$ or $\\boldsymbol{U}\\boldsymbol{U}^{\\dagger}=\\boldsymbol{I}$.\n",
+ "\n",
+ "Not all square matrices are diagonalizable. A matrix like the one discussed above"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "20608e44",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X} = \\begin{bmatrix} \n",
+ "1& -1 \\\\\n",
+ "1& -1\\\\\n",
+ "\\end{bmatrix}\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7a04cc8a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "is not diagonalizable, it is a so-called [defective matrix](https://en.wikipedia.org/wiki/Defective_matrix). It is easy to see that the condition\n",
+ "$\\boldsymbol{X}\\boldsymbol{X}^T=\\boldsymbol{X}^T\\boldsymbol{X}$ is not fulfilled."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "77a30599",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The SVD, a Fantastic Algorithm\n",
+ "\n",
+ "However, and this is the strength of the SVD algorithm, any general\n",
+ "matrix $\\boldsymbol{X}$ can be decomposed in terms of a diagonal matrix and\n",
+ "two orthogonal/unitary matrices. The [Singular Value Decompostion\n",
+ "(SVD) theorem](https://en.wikipedia.org/wiki/Singular_value_decomposition)\n",
+ "states that a general $m\\times n$ matrix $\\boldsymbol{X}$ can be written in\n",
+ "terms of a diagonal matrix $\\boldsymbol{\\Sigma}$ of dimensionality $m\\times n$\n",
+ "and two orthognal matrices $\\boldsymbol{U}$ and $\\boldsymbol{V}$, where the first has\n",
+ "dimensionality $m \\times m$ and the last dimensionality $n\\times n$.\n",
+ "We have then"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e97e9982",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X} = \\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6b89ea8c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "As an example, the above defective matrix can be decomposed as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "148873d3",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X} = \\frac{1}{\\sqrt{2}}\\begin{bmatrix} 1& 1 \\\\ 1& -1\\\\ \\end{bmatrix} \\begin{bmatrix} 2& 0 \\\\ 0& 0\\\\ \\end{bmatrix} \\frac{1}{\\sqrt{2}}\\begin{bmatrix} 1& -1 \\\\ 1& 1\\\\ \\end{bmatrix}=\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b008fef3",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with eigenvalues $\\sigma_1=2$ and $\\sigma_2=0$. \n",
+ "The SVD exits always! \n",
+ "\n",
+ "The SVD\n",
+ "decomposition (singular values) gives eigenvalues \n",
+ "$\\sigma_i\\geq\\sigma_{i+1}$ for all $i$ and for dimensions larger than $i=p$, the\n",
+ "eigenvalues (singular values) are zero.\n",
+ "\n",
+ "In the general case, where our design matrix $\\boldsymbol{X}$ has dimension\n",
+ "$n\\times p$, the matrix is thus decomposed into an $n\\times n$\n",
+ "orthogonal matrix $\\boldsymbol{U}$, a $p\\times p$ orthogonal matrix $\\boldsymbol{V}$\n",
+ "and a diagonal matrix $\\boldsymbol{\\Sigma}$ with $r=\\mathrm{min}(n,p)$\n",
+ "singular values $\\sigma_i\\geq 0$ on the main diagonal and zeros filling\n",
+ "the rest of the matrix. There are at most $p$ singular values\n",
+ "assuming that $n > p$. In our regression examples for the nuclear\n",
+ "masses and the equation of state this is indeed the case, while for\n",
+ "the Ising model we have $p > n$. These are often cases that lead to\n",
+ "near singular or singular matrices.\n",
+ "\n",
+ "The columns of $\\boldsymbol{U}$ are called the left singular vectors while the columns of $\\boldsymbol{V}$ are the right singular vectors."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "82103acd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Economy-size SVD\n",
+ "\n",
+ "If we assume that $n > p$, then our matrix $\\boldsymbol{U}$ has dimension $n\n",
+ "\\times n$. The last $n-p$ columns of $\\boldsymbol{U}$ become however\n",
+ "irrelevant in our calculations since they are multiplied with the\n",
+ "zeros in $\\boldsymbol{\\Sigma}$.\n",
+ "\n",
+ "The economy-size decomposition removes extra rows or columns of zeros\n",
+ "from the diagonal matrix of singular values, $\\boldsymbol{\\Sigma}$, along with the columns\n",
+ "in either $\\boldsymbol{U}$ or $\\boldsymbol{V}$ that multiply those zeros in the expression. \n",
+ "Removing these zeros and columns can improve execution time\n",
+ "and reduce storage requirements without compromising the accuracy of\n",
+ "the decomposition.\n",
+ "\n",
+ "If $n > p$, we keep only the first $p$ columns of $\\boldsymbol{U}$ and $\\boldsymbol{\\Sigma}$ has dimension $p\\times p$. \n",
+ "If $p > n$, then only the first $n$ columns of $\\boldsymbol{V}$ are computed and $\\boldsymbol{\\Sigma}$ has dimension $n\\times n$.\n",
+ "The $n=p$ case is obvious, we retain the full SVD. \n",
+ "In general the economy-size SVD leads to less FLOPS and still conserving the desired accuracy."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4fea6570",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Codes for the SVD"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "id": "ac796dd0",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "import numpy as np\n",
+ "# SVD inversion\n",
+ "def SVD(A):\n",
+ " ''' Takes as input a numpy matrix A and returns inv(A) based on singular value decomposition (SVD).\n",
+ " SVD is numerically more stable than the inversion algorithms provided by\n",
+ " numpy and scipy.linalg at the cost of being slower.\n",
+ " '''\n",
+ " U, S, VT = np.linalg.svd(A,full_matrices=True)\n",
+ " print('test U')\n",
+ " print( (np.transpose(U) @ U - U @np.transpose(U)))\n",
+ " print('test VT')\n",
+ " print( (np.transpose(VT) @ VT - VT @np.transpose(VT)))\n",
+ " print(U)\n",
+ " print(S)\n",
+ " print(VT)\n",
+ "\n",
+ " D = np.zeros((len(U),len(VT)))\n",
+ " for i in range(0,len(VT)):\n",
+ " D[i,i]=S[i]\n",
+ " return U @ D @ VT\n",
+ "\n",
+ "\n",
+ "X = np.array([ [1.0,-1.0], [1.0,-1.0]])\n",
+ "#X = np.array([[1, 2], [3, 4], [5, 6]])\n",
+ "\n",
+ "print(X)\n",
+ "C = SVD(X)\n",
+ "# Print the difference between the original matrix and the SVD one\n",
+ "print(C-X)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "db53512b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The matrix $\\boldsymbol{X}$ has columns that are linearly dependent. The first\n",
+ "column is the row-wise sum of the other two columns. The rank of a\n",
+ "matrix (the column rank) is the dimension of space spanned by the\n",
+ "column vectors. The rank of the matrix is the number of linearly\n",
+ "independent columns, in this case just $2$. We see this from the\n",
+ "singular values when running the above code. Running the standard\n",
+ "inversion algorithm for matrix inversion with $\\boldsymbol{X}^T\\boldsymbol{X}$ results\n",
+ "in the program terminating due to a singular matrix."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "502d1308",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Note about SVD Calculations\n",
+ "\n",
+ "The $U$, $S$, and $V$ matrices returned from the **svd()** function\n",
+ "cannot be multiplied directly.\n",
+ "\n",
+ "As you can see from the code, the $S$ vector must be converted into a\n",
+ "diagonal matrix. This may cause a problem as the size of the matrices\n",
+ "do not fit the rules of matrix multiplication, where the number of\n",
+ "columns in a matrix must match the number of rows in the subsequent\n",
+ "matrix.\n",
+ "\n",
+ "If you wish to include the zero singular values, you will need to\n",
+ "resize the matrices and set up a diagonal matrix as done in the above\n",
+ "example"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8c2bb770",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Mathematics of the SVD and implications\n",
+ "\n",
+ "Let us take a closer look at the mathematics of the SVD and the various implications for machine learning studies.\n",
+ "\n",
+ "Our starting point is our design matrix $\\boldsymbol{X}$ of dimension $n\\times p$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ee7c0203",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}=\\begin{bmatrix}\n",
+ "x_{0,0} & x_{0,1} & x_{0,2}& \\dots & \\dots x_{0,p-1}\\\\\n",
+ "x_{1,0} & x_{1,1} & x_{1,2}& \\dots & \\dots x_{1,p-1}\\\\\n",
+ "x_{2,0} & x_{2,1} & x_{2,2}& \\dots & \\dots x_{2,p-1}\\\\\n",
+ "\\dots & \\dots & \\dots & \\dots \\dots & \\dots \\\\\n",
+ "x_{n-2,0} & x_{n-2,1} & x_{n-2,2}& \\dots & \\dots x_{n-2,p-1}\\\\\n",
+ "x_{n-1,0} & x_{n-1,1} & x_{n-1,2}& \\dots & \\dots x_{n-1,p-1}\\\\\n",
+ "\\end{bmatrix}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "672a491b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We can SVD decompose our matrix as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8e3af41a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}=\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3c0db076",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where $\\boldsymbol{U}$ is an orthogonal matrix of dimension $n\\times n$, meaning that $\\boldsymbol{U}\\boldsymbol{U}^T=\\boldsymbol{U}^T\\boldsymbol{U}=\\boldsymbol{I}_n$. Here $\\boldsymbol{I}_n$ is the unit matrix of dimension $n \\times n$.\n",
+ "\n",
+ "Similarly, $\\boldsymbol{V}$ is an orthogonal matrix of dimension $p\\times p$, meaning that $\\boldsymbol{V}\\boldsymbol{V}^T=\\boldsymbol{V}^T\\boldsymbol{V}=\\boldsymbol{I}_p$. Here $\\boldsymbol{I}_n$ is the unit matrix of dimension $p \\times p$.\n",
+ "\n",
+ "Finally $\\boldsymbol{\\Sigma}$ contains the singular values $\\sigma_i$. This matrix has dimension $n\\times p$ and the singular values $\\sigma_i$ are all positive. The non-zero values are ordered in descending order, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a6c05d18",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\sigma_0 > \\sigma_1 > \\sigma_2 > \\dots > \\sigma_{p-1} > 0.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ff6c524a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "All values beyond $p-1$ are all zero."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ccca66ed",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Example Matrix\n",
+ "\n",
+ "As an example, consider the following $3\\times 2$ example for the matrix $\\boldsymbol{\\Sigma}$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "da2a1c44",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\Sigma}=\n",
+ "\\begin{bmatrix}\n",
+ "2& 0 \\\\\n",
+ "0 & 1 \\\\\n",
+ "0 & 0 \\\\\n",
+ "\\end{bmatrix}\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2f2704ab",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The singular values are $\\sigma_0=2$ and $\\sigma_1=1$. It is common to rewrite the matrix $\\boldsymbol{\\Sigma}$ as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e7286128",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\Sigma}=\n",
+ "\\begin{bmatrix}\n",
+ "\\boldsymbol{\\tilde{\\Sigma}}\\\\\n",
+ "\\boldsymbol{0}\\\\\n",
+ "\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "560e14d4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5f35139c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\tilde{\\Sigma}}=\n",
+ "\\begin{bmatrix}\n",
+ "2& 0 \\\\\n",
+ "0 & 1 \\\\\n",
+ "\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a5732633",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "contains only the singular values. Note also (and we will use this below) that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "cb54add9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\Sigma}^T\\boldsymbol{\\Sigma}=\n",
+ "\\begin{bmatrix}\n",
+ "4& 0 \\\\\n",
+ "0 & 1 \\\\\n",
+ "\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f03fc8ea",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which is a $2\\times 2 $ matrix while"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d686fb8e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\Sigma}\\boldsymbol{\\Sigma}^T=\n",
+ "\\begin{bmatrix}\n",
+ "4& 0 & 0\\\\\n",
+ "0 & 1 & 0\\\\\n",
+ "0 & 0 & 0\\\\\n",
+ "\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3b44a880",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "is a $3\\times 3 $ matrix. The last row and column of this last matrix\n",
+ "contain only zeros. This will have important consequences for our SVD\n",
+ "decomposition of the design matrix."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d2dcc6d7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Setting up the Matrix to be inverted\n",
+ "\n",
+ "The matrix that may cause problems for us is $\\boldsymbol{X}^T\\boldsymbol{X}$. Using the SVD we can rewrite this matrix as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a2f18583",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{U}^T\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1b1b3ce0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and using the orthogonality of the matrix $\\boldsymbol{U}$ we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d96fcd4a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{\\Sigma}\\boldsymbol{V}^T.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "98506ca6",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We define $\\boldsymbol{\\Sigma}^T\\boldsymbol{\\Sigma}=\\tilde{\\boldsymbol{\\Sigma}}^2$ which is a diagonal matrix containing only the singular values squared. It has dimensionality $p \\times p$.\n",
+ "\n",
+ "We can now insert the result for the matrix $\\boldsymbol{X}^T\\boldsymbol{X}$ into our equation for ordinary least squares where"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f7df719c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{y}_{\\mathrm{OLS}}=\\boldsymbol{X}\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1263babe",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and using our SVD decomposition of $\\boldsymbol{X}$ we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "13a792f3",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{y}_{\\mathrm{OLS}}=\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T\\left(\\boldsymbol{V}\\tilde{\\boldsymbol{\\Sigma}}^{2}(\\boldsymbol{V}^T\\right)^{-1}\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{U}^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ff69a1d7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which gives us, using the orthogonality of the matrix $\\boldsymbol{V}$,"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7e4a31aa",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{y}_{\\mathrm{OLS}}=\\sum_{i=0}^{p-1}\\boldsymbol{u}_i\\boldsymbol{u}^T_i\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "50768853",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which is not the same as $\\tilde{y}_{\\mathrm{OLS}}=\\boldsymbol{U}\\boldsymbol{U}^T\\boldsymbol{y}$, which due to the orthogonality of $\\boldsymbol{U}$ would have given us that the model equals the output.\n",
+ "\n",
+ "It means that the ordinary least square model (with the optimal\n",
+ "parameters) $\\boldsymbol{\\tilde{y}}$, corresponds to an orthogonal\n",
+ "transformation of the output (or target) vector $\\boldsymbol{y}$ by the\n",
+ "vectors of the matrix $\\boldsymbol{U}$. **Note that the summation ends at**\n",
+ "$p-1$, that is $\\boldsymbol{\\tilde{y}}\\ne \\boldsymbol{y}$. We can thus not use the\n",
+ "orthogonality relation for the matrix $\\boldsymbol{U}$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e70b34dc",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Further properties (important for our analyses later)\n",
+ "\n",
+ "Let us study again $\\boldsymbol{X}^T\\boldsymbol{X}$ in terms of our SVD,"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e505b123",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{U}^T\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T=\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{\\Sigma}\\boldsymbol{V}^T.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e143b570",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "If we now multiply from the right with $\\boldsymbol{V}$ (using the orthogonality of $\\boldsymbol{V}$) we get"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5135ebb4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)\\boldsymbol{V}=\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{\\Sigma}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "07ce9ec4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "This means the vectors $\\boldsymbol{v}_i$ of the orthogonal matrix $\\boldsymbol{V}$ are the eigenvectors of the matrix $\\boldsymbol{X}^T\\boldsymbol{X}$\n",
+ "with eigenvalues given by the singular values squared, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "80932acf",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)\\boldsymbol{v}_i=\\boldsymbol{v}_i\\sigma_i^2.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "73eeda35",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Similarly, if we use the SVD decomposition for the matrix $\\boldsymbol{X}\\boldsymbol{X}^T$, we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "47aff789",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}\\boldsymbol{X}^T=\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{U}^T=\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{\\Sigma}^T\\boldsymbol{U}^T.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2460c817",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "If we now multiply from the right with $\\boldsymbol{U}$ (using the orthogonality of $\\boldsymbol{U}$) we get"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5e3b0d9c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\boldsymbol{X}\\boldsymbol{X}^T\\right)\\boldsymbol{U}=\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{\\Sigma}^T.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "fbf2cb86",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "This means the vectors $\\boldsymbol{u}_i$ of the orthogonal matrix $\\boldsymbol{U}$ are the eigenvectors of the matrix $\\boldsymbol{X}\\boldsymbol{X}^T$\n",
+ "with eigenvalues given by the singular values squared, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ebce4ea0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\boldsymbol{X}\\boldsymbol{X}^T\\right)\\boldsymbol{u}_i=\\boldsymbol{u}_i\\sigma_i^2.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2795da2d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "**Important note**: we have defined our design matrix $\\boldsymbol{X}$ to be an\n",
+ "$n\\times p$ matrix. In most supervised learning cases we have that $n\n",
+ "\\ge p$, and quite often we have $n >> p$. For linear algebra based methods like ordinary least squares or Ridge regression, this leads to a matrix $\\boldsymbol{X}^T\\boldsymbol{X}$ which is small and thereby easier to handle from a computational point of view (in terms of number of floating point operations).\n",
+ "\n",
+ "In our lectures, the number of columns will\n",
+ "always refer to the number of features in our data set, while the\n",
+ "number of rows represents the number of data inputs. Note that in\n",
+ "other texts you may find the opposite notation. This has consequences\n",
+ "for the definition of for example the covariance matrix and its relation to the SVD."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6a26ccff",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Back to Ridge and LASSO Regression\n",
+ "\n",
+ "Let us remind ourselves about the expression for the standard Mean Squared Error (MSE) which we used to define our cost function and the equations for the ordinary least squares (OLS) method, that is \n",
+ "our optimization problem is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "702137ae",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in {\\mathbb{R}}^{p}}}\\frac{1}{n}\\left\\{\\left(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\right)^T\\left(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\right)\\right\\}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6df222d6",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "or we can state it as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9cc370f4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\sum_{i=0}^{n-1}\\left(y_i-\\tilde{y}_i\\right)^2=\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9a71ac65",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where we have used the definition of a norm-2 vector, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c4242498",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\vert\\vert \\boldsymbol{x}\\vert\\vert_2 = \\sqrt{\\sum_i x_i^2}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6deb1e52",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "By minimizing the above equation with respect to the parameters\n",
+ "$\\boldsymbol{\\theta}$ we could then obtain an analytical expression for the\n",
+ "parameters $\\boldsymbol{\\theta}$. We can add a regularization parameter $\\lambda$ by\n",
+ "defining a new cost function to be optimized, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4b9320dd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_2^2\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "43cca84c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which leads to the Ridge regression minimization problem where we\n",
+ "require that $\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_2^2\\le t$, where $t$ is\n",
+ "a finite number larger than zero. By defining"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "91672a95",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{X},\\boldsymbol{\\theta})=\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_1,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f3e9c0e4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "we have a new optimization equation"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0cc6fab9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_1\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "71f360d2",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which leads to Lasso regression. Lasso stands for least absolute shrinkage and selection operator. \n",
+ "\n",
+ "Here we have defined the norm-1 as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7a27d39c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\vert\\vert \\boldsymbol{x}\\vert\\vert_1 = \\sum_i \\vert x_i\\vert.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d554f3b2",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Ridge regression, as discussed above, is nothing but the standard OLS with a\n",
+ "modified diagonal term added to $\\boldsymbol{X}^T\\boldsymbol{X}$. The consequences, in\n",
+ "particular for our discussion of the bias-variance tradeoff are rather\n",
+ "interesting. We will see that for specific values of $\\lambda$, we may\n",
+ "even reduce the variance of the optimal parameters $\\boldsymbol{\\theta}$. These topics and other related ones, will be discussed after the more linear algebra oriented analysis here.\n",
+ "\n",
+ "Using our insights about the SVD of the design matrix $\\boldsymbol{X}$ \n",
+ "We have already analyzed the OLS solutions in terms of the eigenvectors (the columns) of the right singular value matrix $\\boldsymbol{U}$ as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e9597e67",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{\\boldsymbol{y}}_{\\mathrm{OLS}}=\\boldsymbol{X}\\boldsymbol{\\theta} =\\boldsymbol{U}\\boldsymbol{U}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d0c80c08",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "For Ridge regression this becomes"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2b33f0e5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{\\boldsymbol{y}}_{\\mathrm{Ridge}}=\\boldsymbol{X}\\boldsymbol{\\theta}_{\\mathrm{Ridge}} = \\boldsymbol{U\\Sigma V^T}\\left(\\boldsymbol{V}\\boldsymbol{\\Sigma}^2\\boldsymbol{V}^T+\\lambda\\boldsymbol{I} \\right)^{-1}(\\boldsymbol{U\\Sigma V^T})^T\\boldsymbol{y}=\\sum_{j=0}^{p-1}\\boldsymbol{u}_j\\boldsymbol{u}_j^T\\frac{\\sigma_j^2}{\\sigma_j^2+\\lambda}\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7db2a530",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with the vectors $\\boldsymbol{u}_j$ being the columns of $\\boldsymbol{U}$ from the SVD of the matrix $\\boldsymbol{X}$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "177b3058",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Interpreting the Ridge results\n",
+ "\n",
+ "Since $\\lambda \\geq 0$, it means that compared to OLS, we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "304c0b90",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{\\sigma_j^2}{\\sigma_j^2+\\lambda} \\leq 1.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "14936ac3",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Ridge regression finds the coordinates of $\\boldsymbol{y}$ with respect to the\n",
+ "orthonormal basis $\\boldsymbol{U}$, it then shrinks the coordinates by\n",
+ "$\\frac{\\sigma_j^2}{\\sigma_j^2+\\lambda}$. Recall that the SVD has\n",
+ "eigenvalues ordered in a descending way, that is $\\sigma_i \\geq\n",
+ "\\sigma_{i+1}$.\n",
+ "\n",
+ "For small eigenvalues $\\sigma_i$ it means that their contributions become less important, a fact which can be used to reduce the number of degrees of freedom. More about this when we have covered the material on a statistical interpretation of various linear regression methods."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "797ca0aa",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## More interpretations\n",
+ "\n",
+ "For the sake of simplicity, let us assume that the design matrix is orthonormal, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a469a907",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=(\\boldsymbol{X}^T\\boldsymbol{X})^{-1} =\\boldsymbol{I}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e9452a64",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "In this case the standard OLS results in"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "699b712d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\theta}^{\\mathrm{OLS}} = \\boldsymbol{X}^T\\boldsymbol{y}=\\sum_{i=0}^{n-1}\\boldsymbol{u}_i\\boldsymbol{u}_i^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e4af99e7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a5a8ee8c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\theta}^{\\mathrm{Ridge}} = \\left(\\boldsymbol{I}+\\lambda\\boldsymbol{I}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}=\\left(1+\\lambda\\right)^{-1}\\boldsymbol{\\theta}^{\\mathrm{OLS}},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "03c00df5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "that is the Ridge estimator scales the OLS estimator by the inverse of a factor $1+\\lambda$, and\n",
+ "the Ridge estimator converges to zero when the hyperparameter goes to\n",
+ "infinity.\n",
+ "\n",
+ "We will come back to more interpreations after we have gone through some of the statistical analysis part. \n",
+ "\n",
+ "For more discussions of Ridge and Lasso regression, [Wessel van Wieringen's](https://arxiv.org/abs/1509.09169) article is highly recommended.\n",
+ "Similarly, [Mehta et al's article](https://arxiv.org/abs/1803.08823) is also recommended."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "023042c7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Deriving the Lasso Regression Equations\n",
+ "\n",
+ "Using the matrix-vector expression for Lasso regression, we have the following **cost** function"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b0cd7107",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{X},\\boldsymbol{\\theta})=\\frac{1}{n}\\left\\{(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})^T(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})\\right\\}+\\lambda\\vert\\vert\\boldsymbol{\\theta}\\vert\\vert_1,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4c34ce5f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Taking the derivative with respect to $\\boldsymbol{\\theta}$ and recalling that the derivative of the absolute value is (we drop the boldfaced vector symbol for simplicty)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d489ea51",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{d \\vert \\theta\\vert}{d \\theta}=\\mathrm{sgn}(\\theta)=\\left\\{\\begin{array}{cc} 1 & \\theta > 0 \\\\-1 & \\theta < 0, \\end{array}\\right.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9921bc50",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "we have that the derivative of the cost function is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c568250e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{\\partial C(\\boldsymbol{X},\\boldsymbol{\\theta})}{\\partial \\boldsymbol{\\theta}}=-\\frac{2}{n}\\boldsymbol{X}^T(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})+\\lambda sgn(\\boldsymbol{\\theta})=0,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "21d0b485",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and reordering we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6722483b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}\\boldsymbol{\\theta}+\\frac{n}{2}\\lambda sgn(\\boldsymbol{\\theta})=2\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9777f5cc",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We can redefine $\\lambda$ to absorb the constant $n/2$ and we rewrite the last equation as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "23101fe6",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}\\boldsymbol{\\theta}+\\lambda sgn(\\boldsymbol{\\theta})=2\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4f604170",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "This equation does not lead to a nice analytical equation as in either Ridge regression or ordinary least squares. This equation can however be solved by using standard convex optimization algorithms.We will discuss how to code the above methods using gradient descent methods."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5c7b9070",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Optimization and gradient descent, the central part of any Machine Learning algortithm\n",
+ "\n",
+ "Almost every problem in machine learning and data science starts with\n",
+ "a dataset $X$, a model $g(\\theta)$, which is a function of the\n",
+ "parameters $\\theta$ and a cost function $C(X, g(\\theta))$ that allows\n",
+ "us to judge how well the model $g(\\theta)$ explains the observations\n",
+ "$X$. The model is fit by finding the values of $\\theta$ that minimize\n",
+ "the cost function. Ideally we would be able to solve for $\\theta$\n",
+ "analytically, however this is not possible in general and we must use\n",
+ "some approximative/numerical method to compute the minimum."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0af8105c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Reminder on Newton-Raphson's method\n",
+ "\n",
+ "Let us quickly remind ourselves how we derive the above method.\n",
+ "\n",
+ "Perhaps the most celebrated of all one-dimensional root-finding\n",
+ "routines is Newton's method, also called the Newton-Raphson\n",
+ "method. This method requires the evaluation of both the\n",
+ "function $f$ and its derivative $f'$ at arbitrary points. \n",
+ "If you can only calculate the derivative\n",
+ "numerically and/or your function is not of the smooth type, we\n",
+ "normally discourage the use of this method."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c93d44b0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The equations\n",
+ "\n",
+ "The Newton-Raphson formula consists geometrically of extending the\n",
+ "tangent line at a current point until it crosses zero, then setting\n",
+ "the next guess to the abscissa of that zero-crossing. The mathematics\n",
+ "behind this method is rather simple. Employing a Taylor expansion for\n",
+ "$x$ sufficiently close to the solution $s$, we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b1c868cd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "\n",
+ "
\n",
+ "\n",
+ "$$\n",
+ "f(s)=0=f(x)+(s-x)f'(x)+\\frac{(s-x)^2}{2}f''(x) +\\dots.\n",
+ " \\label{eq:taylornr} \\tag{2}\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7c257671",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "For small enough values of the function and for well-behaved\n",
+ "functions, the terms beyond linear are unimportant, hence we obtain"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ddc77aef",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "f(x)+(s-x)f'(x)\\approx 0,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "026777a7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "yielding"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3707790b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "s\\approx x-\\frac{f(x)}{f'(x)}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "13ab6bec",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Having in mind an iterative procedure, it is natural to start iterating with"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0a6d69ef",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "x_{n+1}=x_n-\\frac{f(x_n)}{f'(x_n)}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "336ec1b1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Simple geometric interpretation\n",
+ "\n",
+ "The above is Newton-Raphson's method. It has a simple geometric\n",
+ "interpretation, namely $x_{n+1}$ is the point where the tangent from\n",
+ "$(x_n,f(x_n))$ crosses the $x$-axis. Close to the solution,\n",
+ "Newton-Raphson converges fast to the desired result. However, if we\n",
+ "are far from a root, where the higher-order terms in the series are\n",
+ "important, the Newton-Raphson formula can give grossly inaccurate\n",
+ "results. For instance, the initial guess for the root might be so far\n",
+ "from the true root as to let the search interval include a local\n",
+ "maximum or minimum of the function. If an iteration places a trial\n",
+ "guess near such a local extremum, so that the first derivative nearly\n",
+ "vanishes, then Newton-Raphson may fail totally"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3081ba44",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Extending to more than one variable\n",
+ "\n",
+ "Newton's method can be generalized to systems of several non-linear equations\n",
+ "and variables. Consider the case with two equations"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5c3faff2",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\begin{array}{cc} f_1(x_1,x_2) &=0\\\\\n",
+ " f_2(x_1,x_2) &=0,\\end{array}\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "68fd52c0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which we Taylor expand to obtain"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5e29a567",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\begin{array}{cc} 0=f_1(x_1+h_1,x_2+h_2)=&f_1(x_1,x_2)+h_1\n",
+ " \\partial f_1/\\partial x_1+h_2\n",
+ " \\partial f_1/\\partial x_2+\\dots\\\\\n",
+ " 0=f_2(x_1+h_1,x_2+h_2)=&f_2(x_1,x_2)+h_1\n",
+ " \\partial f_2/\\partial x_1+h_2\n",
+ " \\partial f_2/\\partial x_2+\\dots\n",
+ " \\end{array}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f787c3a2",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Defining the Jacobian matrix ${\\bf \\boldsymbol{J}}$ we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1c5e1214",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\bf \\boldsymbol{J}}=\\left( \\begin{array}{cc}\n",
+ " \\partial f_1/\\partial x_1 & \\partial f_1/\\partial x_2 \\\\\n",
+ " \\partial f_2/\\partial x_1 &\\partial f_2/\\partial x_2\n",
+ " \\end{array} \\right),\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1cdd5ba1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "we can rephrase Newton's method as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "276e07a3",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\begin{array}{c} x_1^{n+1} \\\\ x_2^{n+1} \\end{array} \\right)=\n",
+ "\\left(\\begin{array}{c} x_1^{n} \\\\ x_2^{n} \\end{array} \\right)+\n",
+ "\\left(\\begin{array}{c} h_1^{n} \\\\ h_2^{n} \\end{array} \\right),\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "80fe7f13",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where we have defined"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e8838b8f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\begin{array}{c} h_1^{n} \\\\ h_2^{n} \\end{array} \\right)=\n",
+ " -{\\bf \\boldsymbol{J}}^{-1}\n",
+ " \\left(\\begin{array}{c} f_1(x_1^{n},x_2^{n}) \\\\ f_2(x_1^{n},x_2^{n}) \\end{array} \\right).\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2ed6fbd0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We need thus to compute the inverse of the Jacobian matrix and it\n",
+ "is to understand that difficulties may\n",
+ "arise in case ${\\bf \\boldsymbol{J}}$ is nearly singular.\n",
+ "\n",
+ "It is rather straightforward to extend the above scheme to systems of\n",
+ "more than two non-linear equations. In our case, the Jacobian matrix is given by the Hessian that represents the second derivative of cost function."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0796429c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Steepest descent\n",
+ "\n",
+ "The basic idea of gradient descent is\n",
+ "that a function $F(\\mathbf{x})$, \n",
+ "$\\mathbf{x} \\equiv (x_1,\\cdots,x_n)$, decreases fastest if one goes from $\\bf {x}$ in the\n",
+ "direction of the negative gradient $-\\nabla F(\\mathbf{x})$.\n",
+ "\n",
+ "It can be shown that if"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "fc44df4f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\mathbf{x}_{k+1} = \\mathbf{x}_k - \\gamma_k \\nabla F(\\mathbf{x}_k),\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c88146a9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with $\\gamma_k > 0$.\n",
+ "\n",
+ "For $\\gamma_k$ small enough, then $F(\\mathbf{x}_{k+1}) \\leq\n",
+ "F(\\mathbf{x}_k)$. This means that for a sufficiently small $\\gamma_k$\n",
+ "we are always moving towards smaller function values, i.e a minimum."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d1b85445",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## More on Steepest descent\n",
+ "\n",
+ "The previous observation is the basis of the method of steepest\n",
+ "descent, which is also referred to as just gradient descent (GD). One\n",
+ "starts with an initial guess $\\mathbf{x}_0$ for a minimum of $F$ and\n",
+ "computes new approximations according to"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8edde795",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\mathbf{x}_{k+1} = \\mathbf{x}_k - \\gamma_k \\nabla F(\\mathbf{x}_k), \\ \\ k \\geq 0.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f92e4583",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The parameter $\\gamma_k$ is often referred to as the step length or\n",
+ "the learning rate within the context of Machine Learning."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0bf80264",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The ideal\n",
+ "\n",
+ "Ideally the sequence $\\{\\mathbf{x}_k \\}_{k=0}$ converges to a global\n",
+ "minimum of the function $F$. In general we do not know if we are in a\n",
+ "global or local minimum. In the special case when $F$ is a convex\n",
+ "function, all local minima are also global minima, so in this case\n",
+ "gradient descent can converge to the global solution. The advantage of\n",
+ "this scheme is that it is conceptually simple and straightforward to\n",
+ "implement. However the method in this form has some severe\n",
+ "limitations:\n",
+ "\n",
+ "In machine learing we are often faced with non-convex high dimensional\n",
+ "cost functions with many local minima. Since GD is deterministic we\n",
+ "will get stuck in a local minimum, if the method converges, unless we\n",
+ "have a very good intial guess. This also implies that the scheme is\n",
+ "sensitive to the chosen initial condition.\n",
+ "\n",
+ "Note that the gradient is a function of $\\mathbf{x} =\n",
+ "(x_1,\\cdots,x_n)$ which makes it expensive to compute numerically."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5b6b24c7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The sensitiveness of the gradient descent\n",
+ "\n",
+ "The gradient descent method \n",
+ "is sensitive to the choice of learning rate $\\gamma_k$. This is due\n",
+ "to the fact that we are only guaranteed that $F(\\mathbf{x}_{k+1}) \\leq\n",
+ "F(\\mathbf{x}_k)$ for sufficiently small $\\gamma_k$. The problem is to\n",
+ "determine an optimal learning rate. If the learning rate is chosen too\n",
+ "small the method will take a long time to converge and if it is too\n",
+ "large we can experience erratic behavior.\n",
+ "\n",
+ "Many of these shortcomings can be alleviated by introducing\n",
+ "randomness. One such method is that of Stochastic Gradient Descent\n",
+ "(SGD), to be discussed next week."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e36297bd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Convex functions\n",
+ "\n",
+ "Ideally we want our cost/loss function to be convex(concave).\n",
+ "\n",
+ "First we give the definition of a convex set: A set $C$ in\n",
+ "$\\mathbb{R}^n$ is said to be convex if, for all $x$ and $y$ in $C$ and\n",
+ "all $t \\in (0,1)$ , the point $(1 − t)x + ty$ also belongs to\n",
+ "C. Geometrically this means that every point on the line segment\n",
+ "connecting $x$ and $y$ is in $C$ as discussed below.\n",
+ "\n",
+ "The convex subsets of $\\mathbb{R}$ are the intervals of\n",
+ "$\\mathbb{R}$. Examples of convex sets of $\\mathbb{R}^2$ are the\n",
+ "regular polygons (triangles, rectangles, pentagons, etc...)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f8ec331d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Convex function\n",
+ "\n",
+ "**Convex function**: Let $X \\subset \\mathbb{R}^n$ be a convex set. Assume that the function $f: X \\rightarrow \\mathbb{R}$ is continuous, then $f$ is said to be convex if $$f(tx_1 + (1-t)x_2) \\leq tf(x_1) + (1-t)f(x_2) $$ for all $x_1, x_2 \\in X$ and for all $t \\in [0,1]$. If $\\leq$ is replaced with a strict inequaltiy in the definition, we demand $x_1 \\neq x_2$ and $t\\in(0,1)$ then $f$ is said to be strictly convex. For a single variable function, convexity means that if you draw a straight line connecting $f(x_1)$ and $f(x_2)$, the value of the function on the interval $[x_1,x_2]$ is always below the line as illustrated below."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0b0d0c67",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Conditions on convex functions\n",
+ "\n",
+ "In the following we state first and second-order conditions which\n",
+ "ensures convexity of a function $f$. We write $D_f$ to denote the\n",
+ "domain of $f$, i.e the subset of $R^n$ where $f$ is defined. For more\n",
+ "details and proofs we refer to: [S. Boyd and L. Vandenberghe. Convex Optimization. Cambridge University Press](http://stanford.edu/boyd/cvxbook/, 2004).\n",
+ "\n",
+ "**First order condition.**\n",
+ "\n",
+ "Suppose $f$ is differentiable (i.e $\\nabla f(x)$ is well defined for\n",
+ "all $x$ in the domain of $f$). Then $f$ is convex if and only if $D_f$\n",
+ "is a convex set and $$f(y) \\geq f(x) + \\nabla f(x)^T (y-x) $$ holds\n",
+ "for all $x,y \\in D_f$. This condition means that for a convex function\n",
+ "the first order Taylor expansion (right hand side above) at any point\n",
+ "a global under estimator of the function. To convince yourself you can\n",
+ "make a drawing of $f(x) = x^2+1$ and draw the tangent line to $f(x)$ and\n",
+ "note that it is always below the graph.\n",
+ "\n",
+ "**Second order condition.**\n",
+ "\n",
+ "Assume that $f$ is twice\n",
+ "differentiable, i.e the Hessian matrix exists at each point in\n",
+ "$D_f$. Then $f$ is convex if and only if $D_f$ is a convex set and its\n",
+ "Hessian is positive semi-definite for all $x\\in D_f$. For a\n",
+ "single-variable function this reduces to $f''(x) \\geq 0$. Geometrically this means that $f$ has nonnegative curvature\n",
+ "everywhere.\n",
+ "\n",
+ "This condition is particularly useful since it gives us an procedure for determining if the function under consideration is convex, apart from using the definition."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "bdfac28b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## More on convex functions\n",
+ "\n",
+ "The next result is of great importance to us and the reason why we are\n",
+ "going on about convex functions. In machine learning we frequently\n",
+ "have to minimize a loss/cost function in order to find the best\n",
+ "parameters for the model we are considering. \n",
+ "\n",
+ "Ideally we want the\n",
+ "global minimum (for high-dimensional models it is hard to know\n",
+ "if we have local or global minimum). However, if the cost/loss function\n",
+ "is convex the following result provides invaluable information:\n",
+ "\n",
+ "**Any minimum is global for convex functions.**\n",
+ "\n",
+ "Consider the problem of finding $x \\in \\mathbb{R}^n$ such that $f(x)$\n",
+ "is minimal, where $f$ is convex and differentiable. Then, any point\n",
+ "$x^*$ that satisfies $\\nabla f(x^*) = 0$ is a global minimum.\n",
+ "\n",
+ "This result means that if we know that the cost/loss function is convex and we are able to find a minimum, we are guaranteed that it is a global minimum."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2032fb83",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Some simple problems\n",
+ "\n",
+ "1. Show that $f(x)=x^2$ is convex for $x \\in \\mathbb{R}$ using the definition of convexity. Hint: If you re-write the definition, $f$ is convex if the following holds for all $x,y \\in D_f$ and any $\\lambda \\in [0,1]$ $\\lambda f(x)+(1-\\lambda)f(y)-f(\\lambda x + (1-\\lambda) y ) \\geq 0$.\n",
+ "\n",
+ "2. Using the second order condition show that the following functions are convex on the specified domain.\n",
+ "\n",
+ " * $f(x) = e^x$ is convex for $x \\in \\mathbb{R}$.\n",
+ "\n",
+ " * $g(x) = -\\ln(x)$ is convex for $x \\in (0,\\infty)$.\n",
+ "\n",
+ "3. Let $f(x) = x^2$ and $g(x) = e^x$. Show that $f(g(x))$ and $g(f(x))$ is convex for $x \\in \\mathbb{R}$. Also show that if $f(x)$ is any convex function than $h(x) = e^{f(x)}$ is convex.\n",
+ "\n",
+ "4. A norm is any function that satisfy the following properties\n",
+ "\n",
+ " * $f(\\alpha x) = |\\alpha| f(x)$ for all $\\alpha \\in \\mathbb{R}$.\n",
+ "\n",
+ " * $f(x+y) \\leq f(x) + f(y)$\n",
+ "\n",
+ " * $f(x) \\leq 0$ for all $x \\in \\mathbb{R}^n$ with equality if and only if $x = 0$\n",
+ "\n",
+ "Using the definition of convexity, try to show that a function satisfying the properties above is convex (the third condition is not needed to show this)."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f5a00d18",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Revisiting Ordinary Least Squares\n",
+ "\n",
+ "We will use linear regression as a case study for the gradient descent\n",
+ "methods. Linear regression is a great test case for the gradient\n",
+ "descent methods discussed in the lectures since it has several\n",
+ "desirable properties such as:\n",
+ "\n",
+ "1. An analytical solution (recall homework sets for week 35).\n",
+ "\n",
+ "2. The gradient can be computed analytically.\n",
+ "\n",
+ "3. The cost function is convex which guarantees that gradient descent converges for small enough learning rates\n",
+ "\n",
+ "We revisit an example similar to what we had in the first homework set. We had a function of the type"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "id": "68f97538",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "x = 2*np.random.rand(m,1)\n",
+ "y = 4+3*x+np.random.randn(m,1)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a7fbe32f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with $x_i \\in [0,1] $ is chosen randomly using a uniform distribution. Additionally we have a stochastic noise chosen according to a normal distribution $\\cal {N}(0,1)$. \n",
+ "The linear regression model is given by"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1b64af25",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "h_\\theta(x) = \\boldsymbol{y} = \\theta_0 + \\theta_1 x,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ef56e132",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "such that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6d7f0c20",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{y}_i = \\theta_0 + \\theta_1 x_i.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3ac315d2",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Gradient descent example\n",
+ "\n",
+ "Let $\\mathbf{y} = (y_1,\\cdots,y_n)^T$, $\\mathbf{\\boldsymbol{y}} = (\\boldsymbol{y}_1,\\cdots,\\boldsymbol{y}_n)^T$ and $\\theta = (\\theta_0, \\theta_1)^T$\n",
+ "\n",
+ "It is convenient to write $\\mathbf{\\boldsymbol{y}} = X\\theta$ where $X \\in \\mathbb{R}^{100 \\times 2} $ is the design matrix given by (we keep the intercept here)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "040d030b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "X \\equiv \\begin{bmatrix}\n",
+ "1 & x_1 \\\\\n",
+ "\\vdots & \\vdots \\\\\n",
+ "1 & x_{100} & \\\\\n",
+ "\\end{bmatrix}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1cb9c213",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The cost/loss/risk function is given by ("
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7f6ab192",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\theta) = \\frac{1}{n}||X\\theta-\\mathbf{y}||_{2}^{2} = \\frac{1}{n}\\sum_{i=1}^{100}\\left[ (\\theta_0 + \\theta_1 x_i)^2 - 2 y_i (\\theta_0 + \\theta_1 x_i) + y_i^2\\right]\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "bc154729",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and we want to find $\\theta$ such that $C(\\theta)$ is minimized."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "cda14c18",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The derivative of the cost/loss function\n",
+ "\n",
+ "Computing $\\partial C(\\theta) / \\partial \\theta_0$ and $\\partial C(\\theta) / \\partial \\theta_1$ we can show that the gradient can be written as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ffc6db98",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\nabla_{\\theta} C(\\theta) = \\frac{2}{n}\\begin{bmatrix} \\sum_{i=1}^{100} \\left(\\theta_0+\\theta_1x_i-y_i\\right) \\\\\n",
+ "\\sum_{i=1}^{100}\\left( x_i (\\theta_0+\\theta_1x_i)-y_ix_i\\right) \\\\\n",
+ "\\end{bmatrix} = \\frac{2}{n}X^T(X\\theta - \\mathbf{y}),\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f5dd4f8d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where $X$ is the design matrix defined above."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "54cf8a09",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The Hessian matrix\n",
+ "The Hessian matrix of $C(\\theta)$ is given by"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c06fcb28",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{H} \\equiv \\begin{bmatrix}\n",
+ "\\frac{\\partial^2 C(\\theta)}{\\partial \\theta_0^2} & \\frac{\\partial^2 C(\\theta)}{\\partial \\theta_0 \\partial \\theta_1} \\\\\n",
+ "\\frac{\\partial^2 C(\\theta)}{\\partial \\theta_0 \\partial \\theta_1} & \\frac{\\partial^2 C(\\theta)}{\\partial \\theta_1^2} & \\\\\n",
+ "\\end{bmatrix} = \\frac{2}{n}X^T X.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "16b2e122",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "This result implies that $C(\\theta)$ is a convex function since the matrix $X^T X$ always is positive semi-definite."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9e48ac99",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Simple program\n",
+ "\n",
+ "We can now write a program that minimizes $C(\\theta)$ using the gradient descent method with a constant learning rate $\\gamma$ according to"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9a536e9c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\theta_{k+1} = \\theta_k - \\gamma \\nabla_\\theta C(\\theta_k), \\ k=0,1,\\cdots\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e9afa223",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We can use the expression we computed for the gradient and let use a\n",
+ "$\\theta_0$ be chosen randomly and let $\\gamma = 0.001$. Stop iterating\n",
+ "when $||\\nabla_\\theta C(\\theta_k) || \\leq \\epsilon = 10^{-8}$. **Note that the code below does not include the latter stop criterion**.\n",
+ "\n",
+ "And finally we can compare our solution for $\\theta$ with the analytic result given by \n",
+ "$\\theta= (X^TX)^{-1} X^T \\mathbf{y}$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f4f76d91",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Gradient Descent Example\n",
+ "\n",
+ "Here our simple example"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "id": "801ec4de",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "\n",
+ "# Importing various packages\n",
+ "from random import random, seed\n",
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt\n",
+ "from mpl_toolkits.mplot3d import Axes3D\n",
+ "from matplotlib import cm\n",
+ "from matplotlib.ticker import LinearLocator, FormatStrFormatter\n",
+ "import sys\n",
+ "\n",
+ "# the number of datapoints\n",
+ "n = 100\n",
+ "x = 2*np.random.rand(n,1)\n",
+ "y = 4+3*x+np.random.randn(n,1)\n",
+ "\n",
+ "X = np.c_[np.ones((n,1)), x]\n",
+ "# Hessian matrix\n",
+ "H = (2.0/n)* X.T @ X\n",
+ "# Get the eigenvalues\n",
+ "EigValues, EigVectors = np.linalg.eig(H)\n",
+ "print(f\"Eigenvalues of Hessian Matrix:{EigValues}\")\n",
+ "\n",
+ "theta_linreg = np.linalg.inv(X.T @ X) @ X.T @ y\n",
+ "print(theta_linreg)\n",
+ "theta = np.random.randn(2,1)\n",
+ "\n",
+ "eta = 1.0/np.max(EigValues)\n",
+ "Niterations = 1000\n",
+ "\n",
+ "for iter in range(Niterations):\n",
+ " gradient = (2.0/n)*X.T @ (X @ theta-y)\n",
+ " theta -= eta*gradient\n",
+ "\n",
+ "print(theta)\n",
+ "xnew = np.array([[0],[2]])\n",
+ "xbnew = np.c_[np.ones((2,1)), xnew]\n",
+ "ypredict = xbnew.dot(theta)\n",
+ "ypredict2 = xbnew.dot(theta_linreg)\n",
+ "plt.plot(xnew, ypredict, \"r-\")\n",
+ "plt.plot(xnew, ypredict2, \"b-\")\n",
+ "plt.plot(x, y ,'ro')\n",
+ "plt.axis([0,2.0,0, 15.0])\n",
+ "plt.xlabel(r'$x$')\n",
+ "plt.ylabel(r'$y$')\n",
+ "plt.title(r'Gradient descent example')\n",
+ "plt.show()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b6c4900e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## And a corresponding example using **scikit-learn**"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "id": "d2f662be",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "# Importing various packages\n",
+ "from random import random, seed\n",
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt\n",
+ "from sklearn.linear_model import SGDRegressor\n",
+ "\n",
+ "n = 100\n",
+ "x = 2*np.random.rand(n,1)\n",
+ "y = 4+3*x+np.random.randn(n,1)\n",
+ "\n",
+ "X = np.c_[np.ones((n,1)), x]\n",
+ "theta_linreg = np.linalg.inv(X.T @ X) @ (X.T @ y)\n",
+ "print(theta_linreg)\n",
+ "sgdreg = SGDRegressor(max_iter = 50, penalty=None, eta0=0.1)\n",
+ "sgdreg.fit(x,y.ravel())\n",
+ "print(sgdreg.intercept_, sgdreg.coef_)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "83bd5b44",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Gradient descent and Ridge\n",
+ "\n",
+ "We have also discussed Ridge regression where the loss function contains a regularized term given by the $L_2$ norm of $\\theta$,"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8c7ee80c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C_{\\text{ridge}}(\\theta) = \\frac{1}{n}||X\\theta -\\mathbf{y}||^2 + \\lambda ||\\theta||^2, \\ \\lambda \\geq 0.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7c70714f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "In order to minimize $C_{\\text{ridge}}(\\theta)$ using GD we adjust the gradient as follows"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e170727b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\nabla_\\theta C_{\\text{ridge}}(\\theta) = \\frac{2}{n}\\begin{bmatrix} \\sum_{i=1}^{100} \\left(\\theta_0+\\theta_1x_i-y_i\\right) \\\\\n",
+ "\\sum_{i=1}^{100}\\left( x_i (\\theta_0+\\theta_1x_i)-y_ix_i\\right) \\\\\n",
+ "\\end{bmatrix} + 2\\lambda\\begin{bmatrix} \\theta_0 \\\\ \\theta_1\\end{bmatrix} = 2 (\\frac{1}{n}X^T(X\\theta - \\mathbf{y})+\\lambda \\theta).\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b7b5d1ce",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We can easily extend our program to minimize $C_{\\text{ridge}}(\\theta)$ using gradient descent and compare with the analytical solution given by"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7e59753a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\theta_{\\text{ridge}} = \\left(X^T X + n\\lambda I_{2 \\times 2} \\right)^{-1} X^T \\mathbf{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d05de5f9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The Hessian matrix for Ridge Regression\n",
+ "The Hessian matrix of Ridge Regression for our simple example is given by"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e3a5c888",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{H} \\equiv \\begin{bmatrix}\n",
+ "\\frac{\\partial^2 C(\\theta)}{\\partial \\theta_0^2} & \\frac{\\partial^2 C(\\theta)}{\\partial \\theta_0 \\partial \\theta_1} \\\\\n",
+ "\\frac{\\partial^2 C(\\theta)}{\\partial \\theta_0 \\partial \\theta_1} & \\frac{\\partial^2 C(\\theta)}{\\partial \\theta_1^2} & \\\\\n",
+ "\\end{bmatrix} = \\frac{2}{n}X^T X+2\\lambda\\boldsymbol{I}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "52b009a7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "This implies that the Hessian matrix is positive definite, hence the stationary point is a\n",
+ "minimum.\n",
+ "Note that the Ridge cost function is convex being a sum of two convex\n",
+ "functions. Therefore, the stationary point is a global\n",
+ "minimum of this function."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "430d2418",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Program example for gradient descent with Ridge Regression"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "id": "b889c65e",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "from random import random, seed\n",
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt\n",
+ "from mpl_toolkits.mplot3d import Axes3D\n",
+ "from matplotlib import cm\n",
+ "from matplotlib.ticker import LinearLocator, FormatStrFormatter\n",
+ "import sys\n",
+ "\n",
+ "# the number of datapoints\n",
+ "n = 100\n",
+ "x = 2*np.random.rand(n,1)\n",
+ "y = 4+3*x+np.random.randn(n,1)\n",
+ "\n",
+ "X = np.c_[np.ones((n,1)), x]\n",
+ "XT_X = X.T @ X\n",
+ "\n",
+ "#Ridge parameter lambda\n",
+ "lmbda = 0.001\n",
+ "Id = n*lmbda* np.eye(XT_X.shape[0])\n",
+ "\n",
+ "# Hessian matrix\n",
+ "H = (2.0/n)* XT_X+2*lmbda* np.eye(XT_X.shape[0])\n",
+ "# Get the eigenvalues\n",
+ "EigValues, EigVectors = np.linalg.eig(H)\n",
+ "print(f\"Eigenvalues of Hessian Matrix:{EigValues}\")\n",
+ "\n",
+ "\n",
+ "theta_linreg = np.linalg.inv(XT_X+Id) @ X.T @ y\n",
+ "print(theta_linreg)\n",
+ "# Start plain gradient descent\n",
+ "theta = np.random.randn(2,1)\n",
+ "\n",
+ "eta = 1.0/np.max(EigValues)\n",
+ "Niterations = 100\n",
+ "\n",
+ "for iter in range(Niterations):\n",
+ " gradients = 2.0/n*X.T @ (X @ (theta)-y)+2*lmbda*theta\n",
+ " theta -= eta*gradients\n",
+ "\n",
+ "print(theta)\n",
+ "ypredict = X @ theta\n",
+ "ypredict2 = X @ theta_linreg\n",
+ "plt.plot(x, ypredict, \"r-\")\n",
+ "plt.plot(x, ypredict2, \"b-\")\n",
+ "plt.plot(x, y ,'ro')\n",
+ "plt.axis([0,2.0,0, 15.0])\n",
+ "plt.xlabel(r'$x$')\n",
+ "plt.ylabel(r'$y$')\n",
+ "plt.title(r'Gradient descent example for Ridge')\n",
+ "plt.show()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "21e20510",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Using gradient descent methods, limitations\n",
+ "\n",
+ "* **Gradient descent (GD) finds local minima of our function**. Since the GD algorithm is deterministic, if it converges, it will converge to a local minimum of our cost/loss/risk function. Because in ML we are often dealing with extremely rugged landscapes with many local minima, this can lead to poor performance.\n",
+ "\n",
+ "* **GD is sensitive to initial conditions**. One consequence of the local nature of GD is that initial conditions matter. Depending on where one starts, one will end up at a different local minima. Therefore, it is very important to think about how one initializes the training process. This is true for GD as well as more complicated variants of GD.\n",
+ "\n",
+ "* **Gradients are computationally expensive to calculate for large datasets**. In many cases in statistics and ML, the cost/loss/risk function is a sum of terms, with one term for each data point. For example, in linear regression, $E \\propto \\sum_{i=1}^n (y_i - \\mathbf{w}^T\\cdot\\mathbf{x}_i)^2$; for logistic regression, the square error is replaced by the cross entropy. To calculate the gradient we have to sum over *all* $n$ data points. Doing this at every GD step becomes extremely computationally expensive. An ingenious solution to this, is to calculate the gradients using small subsets of the data called \"mini batches\". This has the added benefit of introducing stochasticity into our algorithm.\n",
+ "\n",
+ "* **GD is very sensitive to choices of learning rates**. GD is extremely sensitive to the choice of learning rates. If the learning rate is very small, the training process take an extremely long time. For larger learning rates, GD can diverge and give poor results. Furthermore, depending on what the local landscape looks like, we have to modify the learning rates to ensure convergence. Ideally, we would *adaptively* choose the learning rates to match the landscape.\n",
+ "\n",
+ "* **GD treats all directions in parameter space uniformly.** Another major drawback of GD is that unlike Newton's method, the learning rate for GD is the same in all directions in parameter space. For this reason, the maximum learning rate is set by the behavior of the steepest direction and this can significantly slow down training. Ideally, we would like to take large steps in flat directions and small steps in steep directions. Since we are exploring rugged landscapes where curvatures change, this requires us to keep track of not only the gradient but second derivatives. The ideal scenario would be to calculate the Hessian but this proves to be too computationally expensive. \n",
+ "\n",
+ "* GD can take exponential time to escape saddle points, even with random initialization. As we mentioned, GD is extremely sensitive to initial condition since it determines the particular local minimum GD would eventually reach. However, even with a good initialization scheme, through the introduction of randomness, GD can still take exponential time to escape saddle points."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "59d61c18",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Material for lab sessions sessions Tuesday and Wednesday\n",
+ "\n",
+ "The material here contains a summary of the lecture on Monday and discussion of SVD, Ridge and Lasso regression with examples"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "19a3af8f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Linear Regression and the SVD\n",
+ "\n",
+ "We used the SVD to analyse the matrix to invert in ordinary lineat regression"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a0a91546",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{U}^T\\boldsymbol{U}\\boldsymbol{\\Sigma}\\boldsymbol{V}^T=\\boldsymbol{V}\\boldsymbol{\\Sigma}^T\\boldsymbol{\\Sigma}\\boldsymbol{V}^T.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4ddc3a0d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Since the matrices here have dimension $p\\times p$, with $p$ corresponding to the singular values, we defined last week the matrix"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2c51cc5b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\Sigma}^T\\boldsymbol{\\Sigma} = \\begin{bmatrix} \\tilde{\\boldsymbol{\\Sigma}} & \\boldsymbol{0}\\\\ \\end{bmatrix}\\begin{bmatrix} \\tilde{\\boldsymbol{\\Sigma}} \\\\ \\boldsymbol{0}\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "754dd1c2",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where the tilde-matrix $\\tilde{\\boldsymbol{\\Sigma}}$ is a matrix of dimension $p\\times p$ containing only the singular values $\\sigma_i$, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "37b8fcf8",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{\\boldsymbol{\\Sigma}}=\\begin{bmatrix} \\sigma_0 & 0 & 0 & \\dots & 0 & 0 \\\\\n",
+ " 0 & \\sigma_1 & 0 & \\dots & 0 & 0 \\\\\n",
+ "\t\t\t\t 0 & 0 & \\sigma_2 & \\dots & 0 & 0 \\\\\n",
+ "\t\t\t\t 0 & 0 & 0 & \\dots & \\sigma_{p-2} & 0 \\\\\n",
+ "\t\t\t\t 0 & 0 & 0 & \\dots & 0 & \\sigma_{p-1} \\\\\n",
+ "\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4103d318",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "meaning we can write"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "dae6c763",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=\\boldsymbol{V}\\tilde{\\boldsymbol{\\Sigma}}^2\\boldsymbol{V}^T.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b13a4b0d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Multiplying from the right with $\\boldsymbol{V}$ (using the orthogonality of $\\boldsymbol{V}$) we get"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0911661b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)\\boldsymbol{V}=\\boldsymbol{V}\\tilde{\\boldsymbol{\\Sigma}}^2.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9a4144ae",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## What does it mean?\n",
+ "\n",
+ "This means the vectors $\\boldsymbol{v}_i$ of the orthogonal matrix $\\boldsymbol{V}$\n",
+ "are the eigenvectors of the matrix $\\boldsymbol{X}^T\\boldsymbol{X}$ with eigenvalues\n",
+ "given by the singular values squared, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9dfc5f86",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)\\boldsymbol{v}_i=\\boldsymbol{v}_i\\sigma_i^2.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "73be1c56",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "In other words, each non-zero singular value of $\\boldsymbol{X}$ is a positive\n",
+ "square root of an eigenvalue of $\\boldsymbol{X}^T\\boldsymbol{X}$. It means also that\n",
+ "the columns of $\\boldsymbol{V}$ are the eigenvectors of\n",
+ "$\\boldsymbol{X}^T\\boldsymbol{X}$. Since we have ordered the singular values of\n",
+ "$\\boldsymbol{X}$ in a descending order, it means that the column vectors\n",
+ "$\\boldsymbol{v}_i$ are hierarchically ordered by how much correlation they\n",
+ "encode from the columns of $\\boldsymbol{X}$. \n",
+ "\n",
+ "Note that these are also the eigenvectors and eigenvalues of the\n",
+ "Hessian matrix."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9bd87051",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Ridge and LASSO Regression\n",
+ "\n",
+ "Let us remind ourselves about the expression for the standard Mean Squared Error (MSE) which we used to define our cost function and the equations for the ordinary least squares (OLS) method, that is \n",
+ "our optimization problem is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c720ad2b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in {\\mathbb{R}}^{p}}}\\frac{1}{n}\\left\\{\\left(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\right)^T\\left(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\right)\\right\\}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2bb60a91",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "or we can state it as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3a65ac27",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\sum_{i=0}^{n-1}\\left(y_i-\\tilde{y}_i\\right)^2=\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3dfeab84",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "where we have used the definition of a norm-2 vector, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6e8ad46c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\vert\\vert \\boldsymbol{x}\\vert\\vert_2 = \\sqrt{\\sum_i x_i^2}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "500a62cd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## From OLS to Ridge and Lasso\n",
+ "\n",
+ "By minimizing the above equation with respect to the parameters\n",
+ "$\\boldsymbol{\\theta}$ we could then obtain an analytical expression for the\n",
+ "parameters $\\boldsymbol{\\theta}$. We can add a regularization parameter $\\lambda$ by\n",
+ "defining a new cost function to be optimized, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "edf77f5d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_2^2\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9d308fc9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which leads to the Ridge regression minimization problem where we\n",
+ "require that $\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_2^2\\le t$, where $t$ is\n",
+ "a finite number larger than zero. We do not include such a constraints in the discussions here.\n",
+ "\n",
+ "By defining"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "fccb6caa",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{X},\\boldsymbol{\\theta})=\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_1,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f1fa209f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "we have a new optimization equation"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4ae99f60",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "{\\displaystyle \\min_{\\boldsymbol{\\theta}\\in\n",
+ "{\\mathbb{R}}^{p}}}\\frac{1}{n}\\vert\\vert \\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta}\\vert\\vert_2^2+\\lambda\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_1\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "36cbbd77",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which leads to Lasso regression. Lasso stands for least absolute shrinkage and selection operator. \n",
+ "\n",
+ "Here we have defined the norm-1 as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d2d67dee",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\vert\\vert \\boldsymbol{x}\\vert\\vert_1 = \\sum_i \\vert x_i\\vert.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c1e84f6b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Deriving the Ridge Regression Equations\n",
+ "\n",
+ "Using the matrix-vector expression for Ridge regression and dropping the parameter $1/n$ in front of the standard means squared error equation, we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d0806a88",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{X},\\boldsymbol{\\theta})=\\left\\{(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})^T(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})\\right\\}+\\lambda\\boldsymbol{\\theta}^T\\boldsymbol{\\theta},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5217eb80",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and \n",
+ "taking the derivatives with respect to $\\boldsymbol{\\theta}$ we obtain then\n",
+ "a slightly modified matrix inversion problem which for finite values\n",
+ "of $\\lambda$ does not suffer from singularity problems. We obtain\n",
+ "the optimal parameters"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "26476c82",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}_{\\mathrm{Ridge}} = \\left(\\boldsymbol{X}^T\\boldsymbol{X}+\\lambda\\boldsymbol{I}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "865ed23a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with $\\boldsymbol{I}$ being a $p\\times p$ identity matrix with the constraint that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "267f405a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\sum_{i=0}^{p-1} \\theta_i^2 \\leq t,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "128c8fe1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with $t$ a finite positive number."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "025774a5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Note on Scikit-Learn\n",
+ "\n",
+ "Note well that a library like **Scikit-Learn** does not include the $1/n$ factor in the expression for the mean-squared error. If you include it, the optimal parameter $\\theta$ becomes"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a3d2ecae",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}_{\\mathrm{Ridge}} = \\left(\\boldsymbol{X}^T\\boldsymbol{X}+n\\lambda\\boldsymbol{I}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7f619bb0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "In our codes where we compare our own codes with **Scikit-Learn**, we do thus not include the $1/n$ factor in the cost function."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "fa1c8647",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Comparison with OLS\n",
+ "When we compare this with the ordinary least squares result we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9f5a4138",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}_{\\mathrm{OLS}} = \\left(\\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "357000de",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which can lead to singular matrices. However, with the SVD, we can always compute the inverse of the matrix $\\boldsymbol{X}^T\\boldsymbol{X}$.\n",
+ "\n",
+ "We see that Ridge regression is nothing but the standard OLS with a\n",
+ "modified diagonal term added to $\\boldsymbol{X}^T\\boldsymbol{X}$. The consequences, in\n",
+ "particular for our discussion of the bias-variance tradeoff are rather\n",
+ "interesting. We will see that for specific values of $\\lambda$, we may\n",
+ "even reduce the variance of the optimal parameters $\\boldsymbol{\\theta}$. These topics and other related ones, will be discussed after the more linear algebra oriented analysis here."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2716f2d3",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## SVD analysis\n",
+ "\n",
+ "Using our insights about the SVD of the design matrix $\\boldsymbol{X}$ \n",
+ "We have already analyzed the OLS solutions in terms of the eigenvectors (the columns) of the right singular value matrix $\\boldsymbol{U}$ as"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9f1150a1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{\\boldsymbol{y}}_{\\mathrm{OLS}}=\\boldsymbol{X}\\boldsymbol{\\theta} =\\boldsymbol{U}\\boldsymbol{U}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d5ee456d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "For Ridge regression this becomes"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "50b60351",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\tilde{\\boldsymbol{y}}_{\\mathrm{Ridge}}=\\boldsymbol{X}\\boldsymbol{\\theta}_{\\mathrm{Ridge}} = \\boldsymbol{U\\Sigma V^T}\\left(\\boldsymbol{V}\\boldsymbol{\\Sigma}^2\\boldsymbol{V}^T+\\lambda\\boldsymbol{I} \\right)^{-1}(\\boldsymbol{U\\Sigma V^T})^T\\boldsymbol{y}=\\sum_{j=0}^{p-1}\\boldsymbol{u}_j\\boldsymbol{u}_j^T\\frac{\\sigma_j^2}{\\sigma_j^2+\\lambda}\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b349aa76",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "with the vectors $\\boldsymbol{u}_j$ being the columns of $\\boldsymbol{U}$ from the SVD of the matrix $\\boldsymbol{X}$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0cf92ff7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Interpreting the Ridge results\n",
+ "\n",
+ "Since $\\lambda \\geq 0$, it means that compared to OLS, we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "63ab8407",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{\\sigma_j^2}{\\sigma_j^2+\\lambda} \\leq 1.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c1c8b499",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Ridge regression finds the coordinates of $\\boldsymbol{y}$ with respect to the\n",
+ "orthonormal basis $\\boldsymbol{U}$, it then shrinks the coordinates by\n",
+ "$\\frac{\\sigma_j^2}{\\sigma_j^2+\\lambda}$. Recall that the SVD has\n",
+ "eigenvalues ordered in a descending way, that is $\\sigma_i \\geq\n",
+ "\\sigma_{i+1}$.\n",
+ "\n",
+ "For small eigenvalues $\\sigma_i$ it means that their contributions become less important, a fact which can be used to reduce the number of degrees of freedom."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "38a3cc6b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## More interpretations\n",
+ "\n",
+ "For the sake of simplicity, let us assume that the design matrix is orthonormal, that is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6c9a1e21",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}=(\\boldsymbol{X}^T\\boldsymbol{X})^{-1} =\\boldsymbol{I}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "77cebd55",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "In this case the standard OLS results in"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f3397dc1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\theta}^{\\mathrm{OLS}} = \\boldsymbol{X}^T\\boldsymbol{y}=\\sum_{i=0}^{n-1}\\boldsymbol{u}_i\\boldsymbol{u}_i^T\\boldsymbol{y},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8b36e38d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1c6262cc",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{\\theta}^{\\mathrm{Ridge}} = \\left(\\boldsymbol{I}+\\lambda\\boldsymbol{I}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}=\\left(1+\\lambda\\right)^{-1}\\boldsymbol{\\theta}^{\\mathrm{OLS}},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "18a58f70",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "that is the Ridge estimator scales the OLS estimator by the inverse of a factor $1+\\lambda$, and\n",
+ "the Ridge estimator converges to zero when the hyperparameter goes to\n",
+ "infinity.\n",
+ "\n",
+ "We will come back to more interpreations after we have gone through some of the statistical analysis part. \n",
+ "\n",
+ "For more discussions of Ridge and Lasso regression, [Wessel van Wieringen's](https://arxiv.org/abs/1509.09169) article is highly recommended.\n",
+ "Similarly, [Mehta et al's article](https://arxiv.org/abs/1803.08823) is also recommended."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "bdadc0f1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Deriving the Lasso Regression Equations\n",
+ "\n",
+ "Using the matrix-vector expression for Lasso regression, we have the following **cost** function"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a482e79b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{X},\\boldsymbol{\\theta})=\\frac{1}{n}\\left\\{(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})^T(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})\\right\\}+\\lambda\\vert\\vert\\boldsymbol{\\theta}\\vert\\vert_1,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "1c1f3504",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Taking the derivative with respect to $\\boldsymbol{\\theta}$ and recalling that the derivative of the absolute value is (we drop the boldfaced vector symbol for simplicity)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c7ff16c0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{d \\vert \\theta\\vert}{d \\theta}=\\mathrm{sgn}(\\theta)=\\left\\{\\begin{array}{cc} 1 & \\theta > 0 \\\\-1 & \\theta < 0, \\end{array}\\right.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "df7b2ee6",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "we have that the derivative of the cost function is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "768d2256",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{\\partial C(\\boldsymbol{X},\\boldsymbol{\\theta})}{\\partial \\boldsymbol{\\theta}}=-\\frac{2}{n}\\boldsymbol{X}^T(\\boldsymbol{y}-\\boldsymbol{X}\\boldsymbol{\\theta})+\\lambda sgn(\\boldsymbol{\\theta})=0,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f0d5cbe4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and reordering we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5403622a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}^T\\boldsymbol{X}\\boldsymbol{\\theta}+\\lambda sgn(\\boldsymbol{\\theta})=\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "75c85a12",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "This equation does not lead to a nice analytical equation as in Ridge regression or ordinary least squares. We have absorbed the factor $2/n$ in a redefinition of the parameter $\\lambda$. We will solve this type of problems using libraries like **scikit-learn** and using our own gradient descent code in project 1."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4591459d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Simple example to illustrate Ordinary Least Squares, Ridge and Lasso Regression\n",
+ "\n",
+ "Let us assume that our design matrix is given by unit (identity) matrix, that is a square diagonal matrix with ones only along the\n",
+ "diagonal. In this case we have an equal number of rows and columns $n=p$.\n",
+ "\n",
+ "Our model approximation is just $\\tilde{\\boldsymbol{y}}=\\boldsymbol{\\theta}$ and the mean squared error and thereby the cost function for ordinary least sqquares (OLS) is then (we drop the term $1/n$)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "24cc16cd",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{\\theta})=\\sum_{i=0}^{p-1}(y_i-\\theta_i)^2,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "86889b7d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and minimizing we have that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "965e8e09",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\theta}_i^{\\mathrm{OLS}} = y_i.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "5cffcb19",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Ridge Regression\n",
+ "\n",
+ "For Ridge regression our cost function is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6671e517",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{\\theta})=\\sum_{i=0}^{p-1}(y_i-\\theta_i)^2+\\lambda\\sum_{i=0}^{p-1}\\theta_i^2,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "252e152e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and minimizing we have that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "26d20ede",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\theta}_i^{\\mathrm{Ridge}} = \\frac{y_i}{1+\\lambda}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c25ce321",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Lasso Regression\n",
+ "\n",
+ "For Lasso regression our cost function is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "c036a923",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{\\theta})=\\sum_{i=0}^{p-1}(y_i-\\theta_i)^2+\\lambda\\sum_{i=0}^{p-1}\\vert\\theta_i\\vert=\\sum_{i=0}^{p-1}(y_i-\\theta_i)^2+\\lambda\\sum_{i=0}^{p-1}\\sqrt{\\theta_i^2},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6f10942f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and minimizing we have that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8c175b28",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "-2\\sum_{i=0}^{p-1}(y_i-\\theta_i)+\\lambda \\sum_{i=0}^{p-1}\\frac{(\\theta_i)}{\\vert\\theta_i\\vert}=0,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "cb7d2fa1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which leads to"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "352e9f9a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}_i^{\\mathrm{Lasso}} = \\left\\{\\begin{array}{ccc}y_i-\\frac{\\lambda}{2} &\\mathrm{if} & y_i> \\frac{\\lambda}{2}\\\\\n",
+ " y_i+\\frac{\\lambda}{2} &\\mathrm{if} & y_i< -\\frac{\\lambda}{2}\\\\\n",
+ "\t\t\t\t\t\t\t 0 &\\mathrm{if} & \\vert y_i\\vert\\le \\frac{\\lambda}{2}\\end{array}\\right.\\\\.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2d627bc4",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Plotting these results shows clearly that Lasso regression suppresses (sets to zero) values of $\\theta_i$ for specific values of $\\lambda$. Ridge regression reduces on the other hand the values of $\\theta_i$ as function of $\\lambda$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "e0d9b39f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Yet another Example\n",
+ "\n",
+ "Let us assume we have a data set with outputs/targets given by the vector"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f84e1a77",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{y}=\\begin{bmatrix}4 \\\\ 2 \\\\3\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7845b77c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and our inputs as a $3\\times 2$ design matrix"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "da3ca301",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}=\\begin{bmatrix}2 & 0\\\\ 0 & 1 \\\\ 0 & 0\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ac98fa0a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "meaning that we have two features and two unknown parameters $\\theta_0$ and $\\theta_1$ to be determined either by ordinary least squares, Ridge or Lasso regression."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "26e6c40d",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The OLS case\n",
+ "\n",
+ "For ordinary least squares (OLS) we know that the optimal solution is"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "aa9e70a1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}^{\\mathrm{OLS}}=\\left( \\boldsymbol{X}^T\\boldsymbol{X}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a1a46c84",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Inserting the above values we obtain that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f14d9318",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}^{\\mathrm{OLS}}=\\begin{bmatrix}2 \\\\ 2\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "b71a9481",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "The code which implements this simpler case is presented after the discussion of Ridge and Lasso."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "57629d3b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The Ridge case\n",
+ "\n",
+ "For Ridge regression we have"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3062396e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}^{\\mathrm{Ridge}}=\\left( \\boldsymbol{X}^T\\boldsymbol{X}+\\lambda\\boldsymbol{I}\\right)^{-1}\\boldsymbol{X}^T\\boldsymbol{y}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2879fd54",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Inserting the above values we obtain that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "10e94837",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\hat{\\boldsymbol{\\theta}}^{\\mathrm{Ridge}}=\\begin{bmatrix}\\frac{8}{4+\\lambda} \\\\ \\frac{2}{1+\\lambda}\\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d449327b",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "There is normally a constraint on the value of $\\vert\\vert \\boldsymbol{\\theta}\\vert\\vert_2$ via the parameter $\\lambda$.\n",
+ "Let us for simplicity assume that $\\theta_0^2+\\theta_1^2=1$ as constraint. This will allow us to find an expression for the optimal values of $\\theta$ and $\\lambda$.\n",
+ "\n",
+ "To see this, let us write the cost function for Ridge regression."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "52e8baa1",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Writing the Cost Function\n",
+ "\n",
+ "We define the MSE without the $1/n$ factor and have then, using that"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ea867985",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\boldsymbol{X}\\boldsymbol{\\theta}=\\begin{bmatrix} 2\\theta_0 \\\\ \\theta_1 \\\\0 \\end{bmatrix},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "864b48cf",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{\\theta})=(4-2\\theta_0)^2+(2-\\theta_1)^2+\\lambda(\\theta_0^2+\\theta_1^2),\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7f7ed5ba",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and taking the derivative with respect to $\\theta_0$ we get"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d607e924",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\theta_0=\\frac{8}{4+\\lambda},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "3bd4f95f",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and for $\\theta_1$ we obtain"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "f8940052",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\theta_1=\\frac{2}{1+\\lambda},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "81bbbb0e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Using the constraint for $\\theta_0^2+\\theta_1^2=1$ we can constrain $\\lambda$ by solving"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "ca83ff01",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\left(\\frac{8}{4+\\lambda}\\right)^2+\\left(\\frac{2}{1+\\lambda}\\right)^2=1,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0b5ac9e9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which gives $\\lambda=4.571$ and $\\theta_0=0.933$ and $\\theta_1=0.359$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "19ab9b33",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Lasso case\n",
+ "\n",
+ "For Lasso we need now, keeping a constraint on $\\vert\\theta_0\\vert+\\vert\\theta_1\\vert=1$, to take the derivative of the absolute values of $\\theta_0$\n",
+ "and $\\theta_1$. This gives us the following derivatives of the cost function"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "59135778",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "C(\\boldsymbol{\\theta})=(4-2\\theta_0)^2+(2-\\theta_1)^2+\\lambda(\\vert\\theta_0\\vert+\\vert\\theta_1\\vert),\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8d40d8ab",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{\\partial C(\\boldsymbol{\\theta})}{\\partial \\theta_0}=-4(4-2\\theta_0)+\\lambda\\mathrm{sgn}(\\theta_0)=0,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "9c0401f9",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "aa075ce0",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\frac{\\partial C(\\boldsymbol{\\theta})}{\\partial \\theta_1}=-2(2-\\theta_1)+\\lambda\\mathrm{sgn}(\\theta_1)=0.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4e465dee",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We have now four cases to solve besides the trivial cases $\\theta_0$ and/or $\\theta_1$ are zero, namely\n",
+ "1. $\\theta_0 > 0$ and $\\theta_1 > 0$,\n",
+ "\n",
+ "2. $\\theta_0 > 0$ and $\\theta_1 < 0$,\n",
+ "\n",
+ "3. $\\theta_0 < 0$ and $\\theta_1 > 0$,\n",
+ "\n",
+ "4. $\\theta_0 < 0$ and $\\theta_1 < 0$."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "7af63418",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## The first Case\n",
+ "\n",
+ "If we consider the first case, we have then"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "0fff0234",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "-4(4-2\\theta_0)+\\lambda=0,\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "32328a87",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "6b6403d7",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "-2(2-\\theta_1)+\\lambda=0.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "8823b897",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "which yields"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "319984ba",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\theta_0=\\frac{16+\\lambda}{8},\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "2382a622",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "and"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "24b75d16",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "$$\n",
+ "\\theta_1=\\frac{4+\\lambda}{2}.\n",
+ "$$"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "4ba2f29c",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "Using the constraint on $\\theta_0$ and $\\theta_1$ we can then find the optimal value of $\\lambda$ for the different cases. We leave this as an exercise to you."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "dd65fa2e",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Simple code for solving the above problem\n",
+ "\n",
+ "Here we set up the OLS, Ridge and Lasso functionality in order to study the above example. Note that here we have opted for a set of values of $\\lambda$, meaning that we need to perform a search in order to find the optimal values.\n",
+ "\n",
+ "First we study and compare the OLS and Ridge results. The next code compares all three methods."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "id": "6f044cbb",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "import os\n",
+ "import numpy as np\n",
+ "import pandas as pd\n",
+ "import matplotlib.pyplot as plt\n",
+ "\n",
+ "def R2(y_data, y_model):\n",
+ " return 1 - np.sum((y_data - y_model) ** 2) / np.sum((y_data - np.mean(y_data)) ** 2)\n",
+ "def MSE(y_data,y_model):\n",
+ " n = np.size(y_model)\n",
+ " return np.sum((y_data-y_model)**2)/n\n",
+ "\n",
+ "\n",
+ "# A seed just to ensure that the random numbers are the same for every run.\n",
+ "# Useful for eventual debugging.\n",
+ "\n",
+ "X = np.array( [ [ 2, 0], [0, 1], [0,0]])\n",
+ "y = np.array( [4, 2, 3])\n",
+ "\n",
+ "\n",
+ "# matrix inversion to find beta\n",
+ "OLSbeta = np.linalg.inv(X.T @ X) @ X.T @ y\n",
+ "print(OLSbeta)\n",
+ "# and then make the prediction\n",
+ "ytildeOLS = X @ OLSbeta\n",
+ "print(\"Training MSE for OLS\")\n",
+ "print(MSE(y,ytildeOLS))\n",
+ "ypredictOLS = X @ OLSbeta\n",
+ "\n",
+ "# Repeat now for Ridge regression and various values of the regularization parameter\n",
+ "I = np.eye(2,2)\n",
+ "# Decide which values of lambda to use\n",
+ "nlambdas = 100\n",
+ "MSEPredict = np.zeros(nlambdas)\n",
+ "lambdas = np.logspace(-4, 4, nlambdas)\n",
+ "for i in range(nlambdas):\n",
+ " lmb = lambdas[i]\n",
+ " Ridgebeta = np.linalg.inv(X.T @ X+lmb*I) @ X.T @ y\n",
+ "# print(Ridgebeta)\n",
+ " # and then make the prediction\n",
+ " ypredictRidge = X @ Ridgebeta\n",
+ " MSEPredict[i] = MSE(y,ypredictRidge)\n",
+ "# print(MSEPredict[i])\n",
+ " # Now plot the results\n",
+ "plt.figure()\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",
+ "plt.show()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "d69f7030",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "We see here that we reach a plateau. What is actually happening?"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "a8f9315a",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## With Lasso Regression"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "id": "041fe053",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "import os\n",
+ "import numpy as np\n",
+ "import pandas as pd\n",
+ "import matplotlib.pyplot as plt\n",
+ "from sklearn import linear_model\n",
+ "\n",
+ "def R2(y_data, y_model):\n",
+ " return 1 - np.sum((y_data - y_model) ** 2) / np.sum((y_data - np.mean(y_data)) ** 2)\n",
+ "def MSE(y_data,y_model):\n",
+ " n = np.size(y_model)\n",
+ " return np.sum((y_data-y_model)**2)/n\n",
+ "\n",
+ "\n",
+ "# A seed just to ensure that the random numbers are the same for every run.\n",
+ "# Useful for eventual debugging.\n",
+ "\n",
+ "X = np.array( [ [ 2, 0], [0, 1], [0,0]])\n",
+ "y = np.array( [4, 2, 3])\n",
+ "\n",
+ "\n",
+ "# matrix inversion to find beta\n",
+ "OLSbeta = np.linalg.inv(X.T @ X) @ X.T @ y\n",
+ "print(OLSbeta)\n",
+ "# and then make the prediction\n",
+ "ytildeOLS = X @ OLSbeta\n",
+ "print(\"Training MSE for OLS\")\n",
+ "print(MSE(y,ytildeOLS))\n",
+ "ypredictOLS = X @ OLSbeta\n",
+ "\n",
+ "# Repeat now for Ridge regression and various values of the regularization parameter\n",
+ "I = np.eye(2,2)\n",
+ "# Decide which values of lambda to use\n",
+ "nlambdas = 100\n",
+ "MSERidgePredict = np.zeros(nlambdas)\n",
+ "MSELassoPredict = np.zeros(nlambdas)\n",
+ "lambdas = np.logspace(-4, 4, nlambdas)\n",
+ "for i in range(nlambdas):\n",
+ " lmb = lambdas[i]\n",
+ " Ridgebeta = np.linalg.inv(X.T @ X+lmb*I) @ X.T @ y\n",
+ " print(Ridgebeta)\n",
+ " # and then make the prediction\n",
+ " ypredictRidge = X @ Ridgebeta\n",
+ " MSERidgePredict[i] = MSE(y,ypredictRidge)\n",
+ " RegLasso = linear_model.Lasso(lmb,fit_intercept=False)\n",
+ " RegLasso.fit(X,y)\n",
+ " ypredictLasso = RegLasso.predict(X)\n",
+ " print(RegLasso.coef_)\n",
+ " MSELassoPredict[i] = MSE(y,ypredictLasso)\n",
+ "# Now plot the results\n",
+ "plt.figure()\n",
+ "plt.plot(np.log10(lambdas), MSERidgePredict, 'r--', label = 'MSE Ridge Train')\n",
+ "plt.plot(np.log10(lambdas), MSELassoPredict, 'r--', label = 'MSE Lasso Train')\n",
+ "plt.xlabel('log10(lambda)')\n",
+ "plt.ylabel('MSE')\n",
+ "plt.legend()\n",
+ "plt.show()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "47db85e5",
+ "metadata": {
+ "editable": true
+ },
+ "source": [
+ "## Another Example, now with a polynomial fit"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "id": "400b4a2a",
+ "metadata": {
+ "collapsed": false,
+ "editable": true
+ },
+ "outputs": [],
+ "source": [
+ "import os\n",
+ "import numpy as np\n",
+ "import pandas as pd\n",
+ "import matplotlib.pyplot as plt\n",
+ "from sklearn.model_selection import train_test_split\n",
+ "from sklearn import linear_model\n",
+ "\n",
+ "def R2(y_data, y_model):\n",
+ " return 1 - np.sum((y_data - y_model) ** 2) / np.sum((y_data - np.mean(y_data)) ** 2)\n",
+ "def MSE(y_data,y_model):\n",
+ " n = np.size(y_model)\n",
+ " return np.sum((y_data-y_model)**2)/n\n",
+ "\n",
+ "\n",
+ "# A seed just to ensure that the random numbers are the same for every run.\n",
+ "# Useful for eventual debugging.\n",
+ "np.random.seed(3155)\n",
+ "\n",
+ "x = np.random.rand(100)\n",
+ "y = 2.0+5*x*x+0.1*np.random.randn(100)\n",
+ "\n",
+ "# number of features p (here degree of polynomial\n",
+ "p = 3\n",
+ "# The design matrix now as function of a given polynomial\n",
+ "X = np.zeros((len(x),p))\n",
+ "X[:,0] = 1.0\n",
+ "X[:,1] = x\n",
+ "X[:,2] = x*x\n",
+ "# We split the data in test and training data\n",
+ "X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)\n",
+ "\n",
+ "# matrix inversion to find beta\n",
+ "OLSbeta = np.linalg.inv(X_train.T @ X_train) @ X_train.T @ y_train\n",
+ "print(OLSbeta)\n",
+ "# and then make the prediction\n",
+ "ytildeOLS = X_train @ OLSbeta\n",
+ "print(\"Training MSE for OLS\")\n",
+ "print(MSE(y_train,ytildeOLS))\n",
+ "ypredictOLS = X_test @ OLSbeta\n",
+ "print(\"Test MSE OLS\")\n",
+ "print(MSE(y_test,ypredictOLS))\n",
+ "\n",
+ "# Repeat now for Lasso and Ridge regression and various values of the regularization parameter\n",
+ "I = np.eye(p,p)\n",
+ "# Decide which values of lambda to use\n",
+ "nlambdas = 100\n",
+ "MSEPredict = np.zeros(nlambdas)\n",
+ "MSETrain = np.zeros(nlambdas)\n",
+ "MSELassoPredict = np.zeros(nlambdas)\n",
+ "MSELassoTrain = np.zeros(nlambdas)\n",
+ "lambdas = np.logspace(-4, 4, nlambdas)\n",
+ "for i in range(nlambdas):\n",
+ " lmb = lambdas[i]\n",
+ " Ridgebeta = np.linalg.inv(X_train.T @ X_train+lmb*I) @ X_train.T @ y_train\n",
+ " # include lasso using Scikit-Learn\n",
+ " RegLasso = linear_model.Lasso(lmb,fit_intercept=False)\n",
+ " RegLasso.fit(X_train,y_train)\n",
+ " # and then make the prediction\n",
+ " ytildeRidge = X_train @ Ridgebeta\n",
+ " ypredictRidge = X_test @ Ridgebeta\n",
+ " ytildeLasso = RegLasso.predict(X_train)\n",
+ " ypredictLasso = RegLasso.predict(X_test)\n",
+ " MSEPredict[i] = MSE(y_test,ypredictRidge)\n",
+ " MSETrain[i] = MSE(y_train,ytildeRidge)\n",
+ " MSELassoPredict[i] = MSE(y_test,ypredictLasso)\n",
+ " MSELassoTrain[i] = MSE(y_train,ytildeLasso)\n",
+ "\n",
+ "# Now plot the results\n",
+ "plt.figure()\n",
+ "plt.plot(np.log10(lambdas), MSETrain, label = 'MSE Ridge train')\n",
+ "plt.plot(np.log10(lambdas), MSEPredict, 'r--', label = 'MSE Ridge Test')\n",
+ "plt.plot(np.log10(lambdas), MSELassoTrain, label = 'MSE Lasso train')\n",
+ "plt.plot(np.log10(lambdas), MSELassoPredict, 'r--', label = 'MSE Lasso Test')\n",
+ "\n",
+ "plt.xlabel('log10(lambda)')\n",
+ "plt.ylabel('MSE')\n",
+ "plt.legend()\n",
+ "plt.show()"
+ ]
+ }
+ ],
+ "metadata": {},
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/doc/LectureNotes/_build/html/chapter1.html b/doc/LectureNotes/_build/html/chapter1.html
index 1c6e8127b..85c4fc52c 100644
--- a/doc/LectureNotes/_build/html/chapter1.html
+++ b/doc/LectureNotes/_build/html/chapter1.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter10.html b/doc/LectureNotes/_build/html/chapter10.html
index f76ec3c87..724a78404 100644
--- a/doc/LectureNotes/_build/html/chapter10.html
+++ b/doc/LectureNotes/_build/html/chapter10.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter11.html b/doc/LectureNotes/_build/html/chapter11.html
index 8a5899334..9b3fc086a 100644
--- a/doc/LectureNotes/_build/html/chapter11.html
+++ b/doc/LectureNotes/_build/html/chapter11.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter12.html b/doc/LectureNotes/_build/html/chapter12.html
index 48825faa5..f8cc5dffb 100644
--- a/doc/LectureNotes/_build/html/chapter12.html
+++ b/doc/LectureNotes/_build/html/chapter12.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter13.html b/doc/LectureNotes/_build/html/chapter13.html
index 6a7e9ee88..aa0a73331 100644
--- a/doc/LectureNotes/_build/html/chapter13.html
+++ b/doc/LectureNotes/_build/html/chapter13.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter2.html b/doc/LectureNotes/_build/html/chapter2.html
index 1f49ed2ed..46a4fc113 100644
--- a/doc/LectureNotes/_build/html/chapter2.html
+++ b/doc/LectureNotes/_build/html/chapter2.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter3.html b/doc/LectureNotes/_build/html/chapter3.html
index a62ed51e1..1d03fc9a8 100644
--- a/doc/LectureNotes/_build/html/chapter3.html
+++ b/doc/LectureNotes/_build/html/chapter3.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter4.html b/doc/LectureNotes/_build/html/chapter4.html
index 98bf87d2b..9c7aacfee 100644
--- a/doc/LectureNotes/_build/html/chapter4.html
+++ b/doc/LectureNotes/_build/html/chapter4.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter5.html b/doc/LectureNotes/_build/html/chapter5.html
index 34b88addc..262c0d8aa 100644
--- a/doc/LectureNotes/_build/html/chapter5.html
+++ b/doc/LectureNotes/_build/html/chapter5.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter6.html b/doc/LectureNotes/_build/html/chapter6.html
index 52b50b7bc..9878ab639 100644
--- a/doc/LectureNotes/_build/html/chapter6.html
+++ b/doc/LectureNotes/_build/html/chapter6.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter7.html b/doc/LectureNotes/_build/html/chapter7.html
index 3fbd87b73..dc38a32fb 100644
--- a/doc/LectureNotes/_build/html/chapter7.html
+++ b/doc/LectureNotes/_build/html/chapter7.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter8.html b/doc/LectureNotes/_build/html/chapter8.html
index 5ac5a62e4..aa739c5de 100644
--- a/doc/LectureNotes/_build/html/chapter8.html
+++ b/doc/LectureNotes/_build/html/chapter8.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapter9.html b/doc/LectureNotes/_build/html/chapter9.html
index ba2c6b1bd..071e71971 100644
--- a/doc/LectureNotes/_build/html/chapter9.html
+++ b/doc/LectureNotes/_build/html/chapter9.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/chapteroptimization.html b/doc/LectureNotes/_build/html/chapteroptimization.html
index 360a9bae7..210675f5f 100644
--- a/doc/LectureNotes/_build/html/chapteroptimization.html
+++ b/doc/LectureNotes/_build/html/chapteroptimization.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/clustering.html b/doc/LectureNotes/_build/html/clustering.html
index fa619541b..657e6476b 100644
--- a/doc/LectureNotes/_build/html/clustering.html
+++ b/doc/LectureNotes/_build/html/clustering.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/exercisesweek34.html b/doc/LectureNotes/_build/html/exercisesweek34.html
index 0d4d5b847..4965826fe 100644
--- a/doc/LectureNotes/_build/html/exercisesweek34.html
+++ b/doc/LectureNotes/_build/html/exercisesweek34.html
@@ -226,6 +226,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/exercisesweek35.html b/doc/LectureNotes/_build/html/exercisesweek35.html
index 92d314aa4..176d30d91 100644
--- a/doc/LectureNotes/_build/html/exercisesweek35.html
+++ b/doc/LectureNotes/_build/html/exercisesweek35.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/exercisesweek36.html b/doc/LectureNotes/_build/html/exercisesweek36.html
index 44f51b416..c1c26af8f 100644
--- a/doc/LectureNotes/_build/html/exercisesweek36.html
+++ b/doc/LectureNotes/_build/html/exercisesweek36.html
@@ -62,6 +62,7 @@
+
@@ -227,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
@@ -608,6 +610,15 @@ defining a new cost function to be optimized, that is
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
+
+
+
next
+
Week 36: Linear Regression and Gradient descent
+
+
+
diff --git a/doc/LectureNotes/_build/html/genindex.html b/doc/LectureNotes/_build/html/genindex.html
index 19d3e5531..e63762273 100644
--- a/doc/LectureNotes/_build/html/genindex.html
+++ b/doc/LectureNotes/_build/html/genindex.html
@@ -225,6 +225,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/intro.html b/doc/LectureNotes/_build/html/intro.html
index f04c85faf..9ecac1d90 100644
--- a/doc/LectureNotes/_build/html/intro.html
+++ b/doc/LectureNotes/_build/html/intro.html
@@ -229,6 +229,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/linalg.html b/doc/LectureNotes/_build/html/linalg.html
index 96a49cb47..b3e1e2f17 100644
--- a/doc/LectureNotes/_build/html/linalg.html
+++ b/doc/LectureNotes/_build/html/linalg.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/objects.inv b/doc/LectureNotes/_build/html/objects.inv
index 7f0ca85c8..f75cf13d5 100644
Binary files a/doc/LectureNotes/_build/html/objects.inv and b/doc/LectureNotes/_build/html/objects.inv differ
diff --git a/doc/LectureNotes/_build/html/schedule.html b/doc/LectureNotes/_build/html/schedule.html
index 561dd8505..bd9565f1f 100644
--- a/doc/LectureNotes/_build/html/schedule.html
+++ b/doc/LectureNotes/_build/html/schedule.html
@@ -226,6 +226,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/search.html b/doc/LectureNotes/_build/html/search.html
index 6baaf29b3..79fd443f1 100644
--- a/doc/LectureNotes/_build/html/search.html
+++ b/doc/LectureNotes/_build/html/search.html
@@ -227,6 +227,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/searchindex.js b/doc/LectureNotes/_build/html/searchindex.js
index 3a116b42e..7bcfa3374 100644
--- a/doc/LectureNotes/_build/html/searchindex.js
+++ b/doc/LectureNotes/_build/html/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"alltitles": {"A Classification Tree": [[9, "a-classification-tree"]], "A Frequentist approach to data analysis": [[0, "a-frequentist-approach-to-data-analysis"], [24, "a-frequentist-approach-to-data-analysis"]], "A better approach": [[8, "a-better-approach"]], "A first summary": [[24, "a-first-summary"]], "A quick Reminder on Lagrangian Multipliers": [[8, "a-quick-reminder-on-lagrangian-multipliers"]], "A simple example": [[4, "a-simple-example"]], "A soft classifier": [[8, "a-soft-classifier"]], "A top-down perspective on Neural networks": [[1, "a-top-down-perspective-on-neural-networks"]], "ADAM optimizer": [[13, "adam-optimizer"]], "Activation functions": [[12, "activation-functions"]], "Adaptive boosting: AdaBoost, Basic Algorithm": [[10, "adaptive-boosting-adaboost-basic-algorithm"]], "Adding error analysis and training set up": [[24, "adding-error-analysis-and-training-set-up"], [25, "adding-error-analysis-and-training-set-up"]], "Adjust hyperparameters": [[1, "adjust-hyperparameters"]], "Algorithms for Setting up Decision Trees": [[9, "algorithms-for-setting-up-decision-trees"]], "An Overview of Ensemble Methods": [[10, "an-overview-of-ensemble-methods"]], "An extrapolation example": [[4, "an-extrapolation-example"]], "An optimization/minimization problem": [[24, "an-optimization-minimization-problem"]], "And finally \\boldsymbol{X}\\boldsymbol{X}^T": [[25, "and-finally-boldsymbol-x-boldsymbol-x-t"]], "And what about using neural networks?": [[24, "and-what-about-using-neural-networks"]], "Another example, the moons again": [[9, "another-example-the-moons-again"]], "Applied Data Analysis and Machine Learning": [[18, null]], "Autocorrelation function": [[21, "autocorrelation-function"]], "Automatic differentiation": [[13, "automatic-differentiation"]], "Back to Ridge and LASSO Regression": [[25, "back-to-ridge-and-lasso-regression"]], "Back to the Cancer Data": [[11, "back-to-the-cancer-data"]], "Bagging": [[10, "bagging"]], "Bagging Examples": [[10, "bagging-examples"]], "Basic Matrix Features": [[19, "basic-matrix-features"]], "Basic ideas of the Principal Component Analysis (PCA)": [[11, null]], "Basic math of the SVD": [[5, "basic-math-of-the-svd"], [25, "basic-math-of-the-svd"]], "Basics": [[7, "basics"]], "Basics of a tree": [[9, "basics-of-a-tree"]], "Batch Normalization": [[1, "batch-normalization"]], "Bayes\u2019 Theorem and Ridge and Lasso Regression": [[5, "bayes-theorem-and-ridge-and-lasso-regression"]], "Boosting, a Bird\u2019s Eye View": [[10, "boosting-a-bird-s-eye-view"]], "Bootstrap": [[6, "bootstrap"]], "Bringing it together, first back propagation equation": [[12, "bringing-it-together-first-back-propagation-equation"]], "Building a Feed Forward Neural Network": [[1, null]], "Building a tree, regression": [[9, "building-a-tree-regression"]], "Building neural networks in Tensorflow and Keras": [[1, "building-neural-networks-in-tensorflow-and-keras"]], "CNNs in more detail, building convolutional neural networks in Tensorflow and Keras": [[3, "cnns-in-more-detail-building-convolutional-neural-networks-in-tensorflow-and-keras"]], "Cancer Data again now with Decision Trees and other Methods": [[9, "cancer-data-again-now-with-decision-trees-and-other-methods"]], "Choose cost function and optimizer": [[1, "choose-cost-function-and-optimizer"]], "Classical PCA Theorem": [[11, "classical-pca-theorem"]], "Clustering and Unsupervised Learning": [[14, null]], "Code for SVD and Inversion of Matrices": [[5, "code-for-svd-and-inversion-of-matrices"]], "Codes and Approaches": [[14, "codes-and-approaches"]], "Codes for the SVD": [[5, "codes-for-the-svd"], [25, "codes-for-the-svd"]], "Coding Setup and Linear Regression": [[15, "coding-setup-and-linear-regression"]], "Collect and pre-process data": [[1, "collect-and-pre-process-data"]], "Communication channels": [[24, "communication-channels"]], "Compare Bagging on Trees with Random Forests": [[10, "compare-bagging-on-trees-with-random-forests"]], "Comparing with a numerical scheme": [[2, "comparing-with-a-numerical-scheme"]], "Computing the Gini index": [[9, "computing-the-gini-index"]], "Conjugate gradient method": [[13, "conjugate-gradient-method"]], "Convex functions": [[13, "convex-functions"]], "Convolution Examples: Polynomial multiplication": [[3, "convolution-examples-polynomial-multiplication"]], "Convolution Examples: Principle of Superposition and Periodic Forces (Fourier Transforms)": [[3, "convolution-examples-principle-of-superposition-and-periodic-forces-fourier-transforms"]], "Convolutional Neural Network": [[12, "convolutional-neural-network"]], "Convolutional Neural Networks": [[3, null]], "Correlation Function and Design/Feature Matrix": [[25, "correlation-function-and-design-feature-matrix"]], "Correlation Matrix": [[11, "correlation-matrix"], [25, "correlation-matrix"]], "Correlation Matrix with Pandas": [[25, "correlation-matrix-with-pandas"]], "Course Format": [[24, "course-format"]], "Course setting": [[20, null]], "Covariance Matrix Examples": [[25, "covariance-matrix-examples"]], "Covariance and Correlation Matrix": [[25, "covariance-and-correlation-matrix"]], "Cross-validation": [[6, "cross-validation"]], "Deadlines for projects (tentative)": [[24, "deadlines-for-projects-tentative"]], "Decision trees, overarching aims": [[9, null]], "Deep learning methods": [[24, "deep-learning-methods"]], "Define model and architecture": [[1, "define-model-and-architecture"]], "Defining the cost function": [[1, "defining-the-cost-function"]], "Deliverables": [[15, "deliverables"], [16, "deliverables"]], "Derivatives and the chain rule": [[12, "derivatives-and-the-chain-rule"]], "Derivatives, example 1": [[25, "derivatives-example-1"]], "Deriving OLS from a probability distribution": [[5, "deriving-ols-from-a-probability-distribution"]], "Deriving and Implementing Ordinary Least Squares": [[16, "deriving-and-implementing-ordinary-least-squares"]], "Deriving and Implementing Ridge Regression": [[17, "deriving-and-implementing-ridge-regression"]], "Deriving the Lasso Regression Equations": [[25, "deriving-the-lasso-regression-equations"]], "Deriving the Ridge Regression Equations": [[25, "deriving-the-ridge-regression-equations"]], "Deriving the back propagation code for a multilayer perceptron model": [[12, "deriving-the-back-propagation-code-for-a-multilayer-perceptron-model"]], "Developing a code for doing neural networks with back propagation": [[1, "developing-a-code-for-doing-neural-networks-with-back-propagation"]], "Diagonalize the sample covariance matrix to obtain the principal components": [[11, "diagonalize-the-sample-covariance-matrix-to-obtain-the-principal-components"]], "Different kernels and Mercer\u2019s theorem": [[8, "different-kernels-and-mercer-s-theorem"]], "Disadvantages": [[9, "disadvantages"]], "Discriminative Modeling": [[24, "discriminative-modeling"]], "Domains and probabilities": [[21, "domains-and-probabilities"]], "Dropout": [[1, "dropout"]], "Economy-size SVD": [[25, "economy-size-svd"]], "Elements of Probability Theory and Statistical Data Analysis": [[21, null]], "Ensemble Methods: From a Single Tree to Many Trees and Extreme Boosting, Meet the Jungle of Methods": [[10, null]], "Entropy and the ID3 algorithm": [[9, "entropy-and-the-id3-algorithm"]], "Essential elements of ML": [[24, "essential-elements-of-ml"]], "Evaluate model performance on test data": [[1, "evaluate-model-performance-on-test-data"]], "Example 2": [[25, "example-2"]], "Example 3": [[25, "example-3"]], "Example 4": [[25, "example-4"]], "Example Matrix": [[25, "example-matrix"]], "Example of discriminative modeling, taken from Generative Deep Learning by David Foster": [[24, "example-of-discriminative-modeling-taken-from-generative-deep-learning-by-david-foster"]], "Example of generative modeling, taken from Generative Deep Learning by David Foster": [[24, "example-of-generative-modeling-taken-from-generative-deep-learning-by-david-foster"]], "Example of own Standard scaling": [[25, "example-of-own-standard-scaling"]], "Example relevant for the exercises": [[25, "example-relevant-for-the-exercises"]], "Example: Exponential decay": [[2, "example-exponential-decay"]], "Example: Population growth": [[2, "example-population-growth"]], "Example: The diffusion equation": [[2, "example-the-diffusion-equation"]], "Example: binary classification problem": [[1, "example-binary-classification-problem"]], "Examples": [[24, "examples"]], "Examples of likelihood functions used in logistic regression and neural networks": [[7, "examples-of-likelihood-functions-used-in-logistic-regression-and-neural-networks"]], "Exercise 1 - Choice of model and degrees of freedom": [[17, "exercise-1-choice-of-model-and-degrees-of-freedom"]], "Exercise 1 - Finding the derivative of Matrix-Vector expressions": [[16, "exercise-1-finding-the-derivative-of-matrix-vector-expressions"]], "Exercise 1 - Github Setup": [[15, "exercise-1-github-setup"]], "Exercise 1: Setting up various Python environments": [[0, "exercise-1-setting-up-various-python-environments"]], "Exercise 2 - Deriving the expression for OLS": [[16, "exercise-2-deriving-the-expression-for-ols"]], "Exercise 2 - Deriving the expression for Ridge Regression": [[17, "exercise-2-deriving-the-expression-for-ridge-regression"]], "Exercise 2 - Setting up a Github repository": [[15, "exercise-2-setting-up-a-github-repository"]], "Exercise 2: making your own data and exploring scikit-learn": [[0, "exercise-2-making-your-own-data-and-exploring-scikit-learn"]], "Exercise 3 - Creating feature matrix and implementing OLS using the analytical expression": [[16, "exercise-3-creating-feature-matrix-and-implementing-ols-using-the-analytical-expression"]], "Exercise 3 - Fitting an OLS model to data": [[15, "exercise-3-fitting-an-ols-model-to-data"]], "Exercise 3 - Scaling data": [[17, "exercise-3-scaling-data"]], "Exercise 3 - Setting up a Python virtual environment": [[15, "exercise-3-setting-up-a-python-virtual-environment"]], "Exercise 3: Normalizing our data": [[0, "exercise-3-normalizing-our-data"]], "Exercise 4 - Fitting a polynomial": [[16, "exercise-4-fitting-a-polynomial"]], "Exercise 4 - Implementing Ridge Regression": [[17, "exercise-4-implementing-ridge-regression"]], "Exercise 4 - Testing multiple hyperparameters": [[17, "exercise-4-testing-multiple-hyperparameters"]], "Exercise 4 - The train-test split": [[15, "exercise-4-the-train-test-split"]], "Exercise 4: Adding Ridge Regression": [[0, "exercise-4-adding-ridge-regression"]], "Exercise 5 - Comparing your code with sklearn": [[16, "exercise-5-comparing-your-code-with-sklearn"]], "Exercise 5: Analytical exercises": [[0, "exercise-5-analytical-exercises"]], "Exercise: Cross-validation as resampling techniques, adding more complexity": [[6, "exercise-cross-validation-as-resampling-techniques-adding-more-complexity"]], "Exercise: Analysis of real data": [[6, "exercise-analysis-of-real-data"]], "Exercise: Bias-variance trade-off and resampling techniques": [[6, "exercise-bias-variance-trade-off-and-resampling-techniques"]], "Exercise: Lasso Regression on the Franke function with resampling": [[6, "exercise-lasso-regression-on-the-franke-function-with-resampling"]], "Exercise: Ordinary Least Square (OLS) on the Franke function": [[6, "exercise-ordinary-least-square-ols-on-the-franke-function"]], "Exercise: Ridge Regression on the Franke function with resampling": [[6, "exercise-ridge-regression-on-the-franke-function-with-resampling"]], "Exercises": [[0, "exercises"]], "Exercises and Projects": [[6, "exercises-and-projects"]], "Exercises week 34": [[15, null]], "Exercises week 35": [[16, null]], "Exercises week 36": [[17, null]], "Expectation values": [[21, "expectation-values"]], "Extremely useful tools, strongly recommended": [[24, "extremely-useful-tools-strongly-recommended"]], "Feed-forward neural networks": [[12, "feed-forward-neural-networks"]], "Feed-forward pass": [[1, "feed-forward-pass"]], "Final back propagating equation": [[12, "final-back-propagating-equation"]], "Fine-tuning neural network hyperparameters": [[1, "fine-tuning-neural-network-hyperparameters"]], "Fitting an Equation of State for Dense Nuclear Matter": [[0, "fitting-an-equation-of-state-for-dense-nuclear-matter"]], "Fixing the singularity": [[25, "fixing-the-singularity"]], "Frequently used scaling functions": [[25, "frequently-used-scaling-functions"]], "From one to many layers, the universal approximation theorem": [[12, "from-one-to-many-layers-the-universal-approximation-theorem"]], "Functionality in Scikit-Learn": [[25, "functionality-in-scikit-learn"]], "Further Dimensionality Remarks": [[3, "further-dimensionality-remarks"]], "Further properties (important for our analyses later)": [[5, "further-properties-important-for-our-analyses-later"], [25, "further-properties-important-for-our-analyses-later"]], "Gaussian Elimination": [[19, "gaussian-elimination"]], "General Features": [[9, "general-features"]], "General linear models and linear algebra": [[24, "general-linear-models-and-linear-algebra"]], "Generalizing the fitting procedure as a linear algebra problem": [[24, "generalizing-the-fitting-procedure-as-a-linear-algebra-problem"], [24, "id1"]], "Generative Adversarial Networks": [[4, "generative-adversarial-networks"]], "Generative Models": [[4, "generative-models"]], "Generative Versus Discriminative Modeling": [[24, "generative-versus-discriminative-modeling"]], "Geometric Interpretation and link with Singular Value Decomposition": [[11, "geometric-interpretation-and-link-with-singular-value-decomposition"]], "Gradient Boosting, Classification Example": [[10, "gradient-boosting-classification-example"]], "Gradient Boosting, Examples of Regression": [[10, "gradient-boosting-examples-of-regression"]], "Gradient Clipping": [[1, "gradient-clipping"]], "Gradient boosting: Basics with Steepest Descent/Functional Gradient Descent": [[10, "gradient-boosting-basics-with-steepest-descent-functional-gradient-descent"]], "Gradient descent": [[2, "gradient-descent"]], "Grading": [[22, "grading"], [22, "id2"], [24, "grading"]], "How to take derivatives of Matrix-Vector expressions": [[16, "how-to-take-derivatives-of-matrix-vector-expressions"]], "Hyperplanes and all that": [[8, "hyperplanes-and-all-that"]], "Important Matrix and vector handling packages": [[19, "important-matrix-and-vector-handling-packages"]], "Important technicalities: More on Rescaling data": [[25, "important-technicalities-more-on-rescaling-data"]], "Improving performance": [[1, "improving-performance"]], "In summary": [[22, "in-summary"]], "Including Stochastic Gradient Descent with Autograd": [[13, "including-stochastic-gradient-descent-with-autograd"]], "Incremental PCA": [[11, "incremental-pca"]], "Installing R, C++, cython or Julia": [[24, "installing-r-c-cython-or-julia"]], "Installing R, C++, cython, Numba etc": [[24, "installing-r-c-cython-numba-etc"]], "Instructor information": [[22, "instructor-information"]], "Interpretations and optimizing our parameters": [[24, "interpretations-and-optimizing-our-parameters"], [24, "id2"], [24, "id3"], [25, "interpretations-and-optimizing-our-parameters"], [25, "id1"], [25, "id2"]], "Interpreting the Ridge results": [[25, "interpreting-the-ridge-results"]], "Introducing JAX": [[13, "introducing-jax"]], "Introducing the Covariance and Correlation functions": [[11, "introducing-the-covariance-and-correlation-functions"], [25, "introducing-the-covariance-and-correlation-functions"]], "Introduction": [[0, "introduction"], [6, "introduction"], [18, "introduction"], [19, "introduction"]], "Iterative Fitting, Classification and AdaBoost": [[10, "iterative-fitting-classification-and-adaboost"]], "Iterative Fitting, Regression and Squared-error Cost Function": [[10, "iterative-fitting-regression-and-squared-error-cost-function"]], "Kernel PCA": [[11, "kernel-pca"]], "Kernels and non-linearity": [[8, "kernels-and-non-linearity"]], "LU Decomposition, the inverse of a matrix": [[19, "lu-decomposition-the-inverse-of-a-matrix"]], "Layers": [[1, "layers"]], "Layers used to build CNNs": [[3, "layers-used-to-build-cnns"]], "Learning goals": [[15, "learning-goals"], [16, "learning-goals"], [17, "learning-goals"]], "Learning outcomes": [[18, "learning-outcomes"], [24, "learning-outcomes"]], "Lectures and ComputerLab": [[24, "lectures-and-computerlab"]], "Limitations of supervised learning with deep networks": [[1, "limitations-of-supervised-learning-with-deep-networks"]], "Linear Algebra, Handling of Arrays and more Python Features": [[19, null]], "Linear Regression": [[0, null]], "Linear Regression Problems": [[25, "linear-regression-problems"]], "Linear Regression, basic elements": [[0, "linear-regression-basic-elements"]], "Linking Bayes\u2019 Theorem with Ridge and Lasso Regression": [[5, "linking-bayes-theorem-with-ridge-and-lasso-regression"]], "Linking the regression analysis with a statistical interpretation": [[5, "linking-the-regression-analysis-with-a-statistical-interpretation"]], "Linking with the SVD": [[5, "linking-with-the-svd"], [25, "linking-with-the-svd"]], "Links to relevant courses at the University of Oslo": [[23, "links-to-relevant-courses-at-the-university-of-oslo"]], "Logistic Regression": [[7, null], [7, "id1"]], "MNIST and GANs": [[4, "mnist-and-gans"]], "Machine Learning": [[24, "machine-learning"]], "Machine learning": [[18, "machine-learning"]], "Main textbooks": [[24, "main-textbooks"]], "Making a tree": [[9, "making-a-tree"]], "Making your own Bootstrap: Changing the Level of the Decision Tree": [[10, "making-your-own-bootstrap-changing-the-level-of-the-decision-tree"]], "Making your own test-train splitting": [[25, "making-your-own-test-train-splitting"]], "Material for exercises week 35": [[25, "material-for-exercises-week-35"]], "Mathematical Interpretation of Ordinary Least Squares": [[5, "mathematical-interpretation-of-ordinary-least-squares"], [25, "mathematical-interpretation-of-ordinary-least-squares"]], "Mathematical optimization of convex functions": [[8, "mathematical-optimization-of-convex-functions"]], "Mathematics of CNNs": [[3, "mathematics-of-cnns"]], "Mathematics of the SVD and implications": [[5, "mathematics-of-the-svd-and-implications"], [25, "mathematics-of-the-svd-and-implications"]], "Matrices in Python": [[24, "matrices-in-python"]], "Matrix multiplication": [[1, "matrix-multiplication"]], "Matrix-vector notation and activation": [[12, "matrix-vector-notation-and-activation"]], "Meet the covariance!": [[21, "meet-the-covariance"]], "Meet the Covariance Matrix": [[5, "meet-the-covariance-matrix"], [25, "meet-the-covariance-matrix"]], "Meet the Hessian Matrix": [[25, "meet-the-hessian-matrix"]], "Meet the Pandas": [[24, "meet-the-pandas"]], "Min-Max Scaling": [[25, "min-max-scaling"]], "Momentum based GD": [[13, "momentum-based-gd"]], "More complicated Example: The Ising model": [[6, "more-complicated-example-the-ising-model"]], "More interpretations": [[25, "more-interpretations"]], "More on Dimensionalities": [[3, "more-on-dimensionalities"]], "More on Rescaling data": [[6, "more-on-rescaling-data"]], "More preprocessing": [[25, "more-preprocessing"]], "Multilayer perceptrons": [[12, "multilayer-perceptrons"]], "Network requirements": [[2, "network-requirements"]], "Neural Networks vs CNNs": [[3, "neural-networks-vs-cnns"]], "Neural networks": [[12, null]], "Note about SVD Calculations": [[25, "note-about-svd-calculations"]], "Numerical experiments and the covariance, central limit theorem": [[21, "numerical-experiments-and-the-covariance-central-limit-theorem"]], "Numpy and arrays": [[19, "numpy-and-arrays"], [24, "numpy-and-arrays"]], "Numpy examples and Important Matrix and vector handling packages": [[24, "numpy-examples-and-important-matrix-and-vector-handling-packages"]], "Optimization, the central part of any Machine Learning algortithm": [[13, null]], "Optimizing our parameters": [[24, "optimizing-our-parameters"]], "Optimizing our parameters, more details": [[24, "optimizing-our-parameters-more-details"]], "Optimizing the cost function": [[1, "optimizing-the-cost-function"]], "Organizing our data": [[0, "organizing-our-data"], [24, "organizing-our-data"]], "Other Matrix and Vector Operations": [[19, "other-matrix-and-vector-operations"]], "Other Types of Recurrent Neural Networks": [[4, "other-types-of-recurrent-neural-networks"]], "Other courses on Data science and Machine Learning at UiO": [[24, "other-courses-on-data-science-and-machine-learning-at-uio"]], "Other courses on Data science and Machine Learning at UiO, contn": [[24, "other-courses-on-data-science-and-machine-learning-at-uio-contn"]], "Other popular texts": [[24, "other-popular-texts"]], "Other techniques": [[11, "other-techniques"]], "Other types of networks": [[12, "other-types-of-networks"]], "Other ways of visualizing the trees": [[9, "other-ways-of-visualizing-the-trees"]], "Our model for the nuclear binding energies": [[24, "our-model-for-the-nuclear-binding-energies"]], "Overview of first week": [[24, "overview-of-first-week"]], "Own code for Ordinary Least Squares": [[24, "own-code-for-ordinary-least-squares"], [25, "own-code-for-ordinary-least-squares"]], "PCA and scikit-learn": [[11, "pca-and-scikit-learn"]], "Pandas AI": [[24, "pandas-ai"]], "Partial Differential Equations": [[2, "partial-differential-equations"]], "Plans for week 35": [[25, "plans-for-week-35"]], "Practical tips": [[13, "practical-tips"]], "Practicalities": [[22, "practicalities"], [22, "id1"]], "Predicting New Points With A Trained Recurrent Neural Network": [[4, "predicting-new-points-with-a-trained-recurrent-neural-network"]], "Preprocessing our data": [[25, "preprocessing-our-data"]], "Prerequisites": [[24, "prerequisites"]], "Prerequisites and background": [[18, "prerequisites-and-background"]], "Prerequisites: Collect and pre-process data": [[3, "prerequisites-collect-and-pre-process-data"]], "Probability Distribution Functions": [[21, "probability-distribution-functions"]], "Program for stochastic gradient": [[13, "program-for-stochastic-gradient"]], "Properties of PDFs": [[21, "properties-of-pdfs"]], "Pros and cons of trees, pros": [[9, "pros-and-cons-of-trees-pros"]], "Python installers": [[18, "python-installers"], [24, "python-installers"]], "RMS prop": [[13, "rms-prop"]], "Random Numbers": [[21, "random-numbers"]], "Random forests": [[10, "random-forests"]], "Randomized PCA": [[11, "randomized-pca"]], "Reading material": [[24, "reading-material"]], "Reading recommendations:": [[25, "reading-recommendations"]], "Reading suggestions week 34": [[24, "reading-suggestions-week-34"]], "Recurrent neural networks": [[12, "recurrent-neural-networks"]], "Recurrent neural networks: Overarching view": [[4, null]], "Reducing the number of degrees of freedom, overarching view": [[0, "reducing-the-number-of-degrees-of-freedom-overarching-view"], [25, "reducing-the-number-of-degrees-of-freedom-overarching-view"]], "Reformulating the problem": [[2, "reformulating-the-problem"]], "Regression Case": [[10, "regression-case"]], "Regression analysis, overarching aims": [[24, "regression-analysis-overarching-aims"]], "Regression analysis, overarching aims II": [[24, "regression-analysis-overarching-aims-ii"]], "Regularization": [[1, "regularization"]], "Reminder from last week": [[25, "reminder-from-last-week"]], "Reminder on Statistics": [[6, "reminder-on-statistics"]], "Replace or not": [[13, "replace-or-not"]], "Required Technologies": [[18, "required-technologies"]], "Resampling Methods": [[6, null]], "Resampling methods": [[6, "id1"]], "Residual Error": [[25, "residual-error"]], "Resources on differential equations and deep learning": [[2, "resources-on-differential-equations-and-deep-learning"]], "Revisiting our Linear Regression Solvers": [[13, "revisiting-our-linear-regression-solvers"]], "Rewriting the Covariance and/or Correlation Matrix": [[25, "rewriting-the-covariance-and-or-correlation-matrix"]], "Rewriting the fitting procedure as a linear algebra problem": [[24, "rewriting-the-fitting-procedure-as-a-linear-algebra-problem"]], "Rewriting the fitting procedure as a linear algebra problem, more details": [[24, "rewriting-the-fitting-procedure-as-a-linear-algebra-problem-more-details"]], "Ridge and LASSO Regression": [[25, "ridge-and-lasso-regression"]], "Ridge and Lasso Regression": [[5, null], [5, "id1"]], "Same code but now with momentum gradient descent": [[13, "same-code-but-now-with-momentum-gradient-descent"]], "Schedule first week": [[24, "schedule-first-week"]], "Schematic Regression Procedure": [[9, "schematic-regression-procedure"]], "Setting up the Back propagation algorithm": [[12, "setting-up-the-back-propagation-algorithm"]], "Setting up the Matrix to be inverted": [[25, "setting-up-the-matrix-to-be-inverted"]], "Setting up the network using Autograd; The full program": [[2, "setting-up-the-network-using-autograd-the-full-program"]], "Similar (second order function now) problem but now with AdaGrad": [[13, "similar-second-order-function-now-problem-but-now-with-adagrad"]], "Simple Python Code to read in Data and perform Classification": [[9, "simple-python-code-to-read-in-data-and-perform-classification"]], "Simple case": [[25, "simple-case"]], "Simple linear regression model using scikit-learn": [[0, "simple-linear-regression-model-using-scikit-learn"], [24, "simple-linear-regression-model-using-scikit-learn"]], "Software and needed installations": [[24, "software-and-needed-installations"]], "Solving Differential Equations with Deep Learning": [[2, null]], "Solving the one dimensional Poisson equation": [[2, "solving-the-one-dimensional-poisson-equation"]], "Solving the wave equation with Neural Networks": [[2, "solving-the-wave-equation-with-neural-networks"]], "Some famous Matrices": [[19, "some-famous-matrices"]], "Some simple problems": [[13, "some-simple-problems"]], "Some useful matrix and vector expressions": [[25, "some-useful-matrix-and-vector-expressions"]], "Splitting our Data in Training and Test data": [[0, "splitting-our-data-in-training-and-test-data"], [25, "splitting-our-data-in-training-and-test-data"]], "Standard steepest descent": [[13, "standard-steepest-descent"]], "Statistical analysis and optimization of data": [[18, "statistical-analysis-and-optimization-of-data"], [24, "statistical-analysis-and-optimization-of-data"]], "Steepest descent": [[13, "steepest-descent"]], "Stochastic Gradient Descent (SGD)": [[13, "stochastic-gradient-descent-sgd"]], "Stochastic variables and the main concepts, the discrete case": [[21, "stochastic-variables-and-the-main-concepts-the-discrete-case"]], "Support Vector Machines, overarching aims": [[8, null]], "Systematic reduction": [[3, "systematic-reduction"]], "Teachers": [[24, "teachers"]], "Teachers and Grading": [[22, null]], "Teaching Assistants Fall semester 2023": [[22, "teaching-assistants-fall-semester-2023"]], "Tentative deadllines for projects": [[22, "tentative-deadllines-for-projects"]], "Testing the Means Squared Error as function of Complexity": [[0, "testing-the-means-squared-error-as-function-of-complexity"], [25, "testing-the-means-squared-error-as-function-of-complexity"]], "Textbooks": [[23, null]], "The Algorithm before theorem": [[11, "the-algorithm-before-theorem"]], "The Breast Cancer Data, now with Keras": [[1, "the-breast-cancer-data-now-with-keras"]], "The CART algorithm for Classification": [[9, "the-cart-algorithm-for-classification"]], "The CART algorithm for Regression": [[9, "the-cart-algorithm-for-regression"]], "The CIFAR01 data set": [[3, "the-cifar01-data-set"]], "The Jacobian": [[25, "the-jacobian"]], "The MNIST dataset again": [[3, "the-mnist-dataset-again"]], "The RELU function family": [[1, "the-relu-function-family"]], "The SVD, a Fantastic Algorithm": [[25, "the-svd-a-fantastic-algorithm"]], "The Softmax function": [[1, "the-softmax-function"]], "The \\chi^2 function": [[0, "the-chi-2-function"], [24, "the-chi-2-function"], [24, "id4"], [24, "id5"], [24, "id6"], [24, "id7"], [24, "id8"]], "The bias-variance tradeoff": [[6, "the-bias-variance-tradeoff"]], "The code for solving the ODE": [[2, "the-code-for-solving-the-ode"]], "The complete code with a simple data set": [[25, "the-complete-code-with-a-simple-data-set"]], "The cost/loss function": [[25, "the-cost-loss-function"]], "The course has two central parts": [[18, "the-course-has-two-central-parts"]], "The equations for ordinary least squares": [[25, "the-equations-for-ordinary-least-squares"]], "The logistic function": [[7, "the-logistic-function"]], "The mean squared error and its derivative": [[25, "the-mean-squared-error-and-its-derivative"]], "The moons example": [[8, "the-moons-example"]], "The multilayer perceptron (MLP)": [[12, "the-multilayer-perceptron-mlp"]], "The network with one input layer, specified number of hidden layers, and one output layer": [[2, "the-network-with-one-input-layer-specified-number-of-hidden-layers-and-one-output-layer"]], "The plethora of machine learning algorithms/methods": [[24, "the-plethora-of-machine-learning-algorithms-methods"]], "The singular value decomposition": [[5, "the-singular-value-decomposition"], [25, "the-singular-value-decomposition"]], "The two-dimensional case": [[8, "the-two-dimensional-case"]], "To our real data: nuclear binding energies. Brief reminder on masses and binding energies": [[24, "to-our-real-data-nuclear-binding-energies-brief-reminder-on-masses-and-binding-energies"]], "Topics covered in this course: Statistical analysis and optimization of data": [[24, "topics-covered-in-this-course-statistical-analysis-and-optimization-of-data"]], "Towards the PCA theorem": [[11, "towards-the-pca-theorem"]], "Train and test datasets": [[1, "train-and-test-datasets"]], "Two-dimensional Objects": [[3, "two-dimensional-objects"]], "Type of problem": [[2, "type-of-problem"]], "Types of Machine Learning": [[24, "types-of-machine-learning"]], "Useful Python libraries": [[18, "useful-python-libraries"], [24, "useful-python-libraries"]], "Using Autograd": [[13, "using-autograd"]], "Using forward Euler to solve the ODE": [[2, "using-forward-euler-to-solve-the-ode"]], "Using gradient descent methods, limitations": [[13, "using-gradient-descent-methods-limitations"]], "Visualization": [[1, "visualization"], [1, "id1"]], "Visualizing the Tree, Classification": [[9, "visualizing-the-tree-classification"]], "Week 34: Introduction to the course, Logistics and Practicalities": [[24, null]], "Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression": [[25, null]], "What Is Generative Modeling?": [[24, "what-is-generative-modeling"]], "What does it mean?": [[25, "what-does-it-mean"]], "What is Machine Learning?": [[0, "what-is-machine-learning"]], "What is a good model?": [[0, "what-is-a-good-model"], [24, "what-is-a-good-model"]], "What is a good model? Can we define it?": [[24, "what-is-a-good-model-can-we-define-it"]], "Which activation function should I use?": [[1, "which-activation-function-should-i-use"]], "Why Linear Regression (aka Ordinary Least Squares and family)": [[24, "why-linear-regression-aka-ordinary-least-squares-and-family"]], "Wisconsin Cancer Data": [[7, "wisconsin-cancer-data"]], "Writing Our First Generative Adversarial Network": [[4, "writing-our-first-generative-adversarial-network"]], "Writing our own PCA code": [[11, "writing-our-own-pca-code"]], "XGBoost: Extreme Gradient Boosting": [[10, "xgboost-extreme-gradient-boosting"]], "a) Expression for Ridge regression": [[17, "a-expression-for-ridge-regression"]], "scikit-learn implementation": [[1, "scikit-learn-implementation"]]}, "docnames": ["chapter1", "chapter10", "chapter11", "chapter12", "chapter13", "chapter2", "chapter3", "chapter4", "chapter5", "chapter6", "chapter7", "chapter8", "chapter9", "chapteroptimization", "clustering", "exercisesweek34", "exercisesweek35", "exercisesweek36", "intro", "linalg", "schedule", "statistics", "teachers", "textbooks", "week34", "week35"], "envversion": {"sphinx": 62, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1}, "filenames": ["chapter1.ipynb", "chapter10.ipynb", "chapter11.ipynb", "chapter12.ipynb", "chapter13.ipynb", "chapter2.ipynb", "chapter3.ipynb", "chapter4.ipynb", "chapter5.ipynb", "chapter6.ipynb", "chapter7.ipynb", "chapter8.ipynb", "chapter9.ipynb", "chapteroptimization.ipynb", "clustering.ipynb", "exercisesweek34.ipynb", "exercisesweek35.ipynb", "exercisesweek36.ipynb", "intro.md", "linalg.ipynb", "schedule.md", "statistics.ipynb", "teachers.md", "textbooks.md", "week34.ipynb", "week35.ipynb"], "indexentries": {}, "objects": {}, "objnames": {}, "objtypes": {}, "terms": {"": [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 13, 15, 16, 17, 18, 19, 21, 22, 24, 25], "0": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25], "00": [0, 1, 5, 11, 24, 25], "000": [1, 3], "00000000e": [], "001": [2, 8, 13], "004": 5, "00727646693": [0, 24], "0086649156": [0, 24], "01": [0, 1, 2, 5, 9, 11, 13, 17, 23, 24, 25], "0110": 21, "01719003e": [], "02": [0, 4, 7, 12, 24], "02334824": [], "02857": 4, "02f": 6, "03077640549": 4, "03097597e": [], "031": 5, "04": 11, "0458": 9, "05": [4, 6], "062292565": 4, "062435": [], "06730814": [], "07": [], "0713": [0, 24], "07285": 3, "08": 21, "08078025e": [], "08336233266": 4, "0917": 9, "0n": [0, 24], "0x113e21950": 17, "1": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 20, 21, 22, 23, 24], "10": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 19, 20, 21, 22, 24, 25], "100": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25], "1000": [0, 1, 2, 4, 5, 8, 11, 13, 14, 18, 21, 24], "10000": [2, 5, 6, 10, 11, 13, 21], "100000": 8, "10001": 10, "1001": 21, "1002": 21, "1003": 21, "1005": 21, "1009": 21, "101": 16, "1011": 21, "1013": 21, "1013904243": 21, "1015": 21, "102": 16, "1023": 21, "1024": 3, "1026": 21, "1027": 21, "103": 1, "1030": 21, "1037": 21, "1038": 21, "1040": 21, "1047": 21, "107": 16, "108": [], "10th": 9, "10x": [0, 24], "11": [0, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19, 21, 23, 24, 25], "110": [], "1100": 21, "1101": 21, "111": [1, 7, 12], "112": 16, "11340253": [], "11590451": [], "116": 16, "117": 16, "118": 16, "12": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 19, 21, 23, 24, 25], "120": 3, "121": [8, 9, 10, 16], "1215pm": [22, 24], "122": [8, 9, 10], "124": [0, 24], "125": 16, "127": [4, 16], "128": [3, 4, 13], "129": 16, "1298": 9, "12pm": [22, 24], "13": [0, 2, 9, 12, 19, 21, 24], "131": 16, "133": 7, "135": 16, "136": 16, "14": [0, 2, 4, 6, 8, 9, 10, 12, 19, 21, 23, 25], "141": 16, "143": 16, "1446729567": 4, "149": 16, "14g": 6, "15": [0, 2, 4, 6, 7, 8, 9, 12, 13, 21, 24], "150": [4, 8], "152": 16, "153760": [], "156": 16, "157": [], "158": [], "159": 16, "15g": 6, "15pm": 24, "16": [1, 2, 3, 4, 5, 8, 9, 10, 21, 24], "160": 16, "1603": 3, "161": 16, "162": 16, "16231451": 4, "163": 16, "16384": 3, "164": 16, "167": 16, "17": [1, 2, 8, 21], "172": 16, "173": 16, "176": 16, "178": 16, "179": 16, "1797": 1, "18": [2, 6, 7, 8, 9, 10, 21, 24], "1807": 4, "18392847": [], "19": [2, 21, 24], "1940": [], "1943": 12, "1970": [19, 24], "1973": 9, "1979": 6, "1_1": 12, "1_2": 12, "1_3": 12, "1cm": [0, 8, 10, 21, 24], "1d": [1, 2, 3], "1e": [2, 4, 13, 14], "1e10": 14, "1e4": 6, "1f": 1, "1k": 19, "1n": [0, 24], "1x": [0, 24], "2": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 23], "20": [0, 1, 2, 6, 7, 8, 16, 17, 21, 22, 24, 25], "200": [0, 2, 3, 4, 8, 9, 10], "2000": [0, 25], "2004": 13, "2006": 23, "20072279": [], "2008": 24, "2010": 1, "2011": 1, "2014": 4, "2015": 1, "2016": [0, 24], "2018": [0, 6, 25], "2021": [6, 14, 25], "2022": 24, "2025": [24, 25], "21": [0, 1, 5, 7, 9, 12, 19, 24, 25], "2116753732": 4, "215pm": [22, 24], "2167072": [], "22": [0, 1, 5, 12, 13, 19, 24, 25], "221": 8, "225": 4, "22948497": [], "23": [1, 12, 19], "24": [0, 1, 19, 24], "25": [2, 3, 4, 5, 6, 8, 9, 11, 25], "250": [2, 4, 7, 9], "25000": [], "250154": [], "253775": [], "255": 3, "256": 4, "26": [], "26303845": [], "264": [], "265": [], "265109911": 4, "266": [], "269": [], "27": 1, "270": [], "27n_": 21, "28": [1, 3, 4], "2830637392": 4, "2861": 21, "2873": 9, "2882": 21, "2886": 21, "2890": [0, 24], "2892": 21, "29": 25, "2915": 21, "2931": 24, "29364655": [], "294399745619595": [], "296247": [], "2968": 24, "2980": 24, "298273": [], "298375": [], "2990": 24, "2_": 12, "2_1": 12, "2_2": 12, "2_3": 12, "2_i": 12, "2_m": [6, 21], "2_t": 13, "2_x": 21, "2a": 17, "2b": 21, "2cm": 8, "2d": [1, 3, 11, 12, 18, 24], "2e": 6, "2f": [0, 7, 9, 10, 11, 12, 24], "2g": 2, "2g_i": 2, "2k": 3, "2m": 6, "2mvizaqfst8": 25, "2n": [0, 2, 3, 24, 25], "2nd": 9, "2p": 21, "2pt": 4, "2x": [0, 3, 8, 13, 24], "2x_ix_jy_iy_j": 8, "2x_j": 8, "2y_i": 10, "2y_j": 8, "3": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 20, 21, 22, 24], "30": [0, 1, 4, 6, 7, 10, 13, 22], "30000": [0, 24], "3072": 3, "31": [12, 19, 21], "315": [6, 25], "3155": [0, 5, 6, 25], "32": [3, 4, 6, 12, 13, 19, 21], "3200": 1, "3250": 1, "3297": [], "33": [12, 19, 22], "3303": [], "3310": [], "332331": [], "333": 7, "3331": [], "3337": [], "34": 19, "3436": [0, 24], "3437": [0, 24], "35": [0, 6, 24], "3581341341": 4, "359": 5, "36": [0, 5, 6, 21], "370782966": 4, "38": 21, "39": [0, 22, 24], "3d": [2, 3, 4, 6, 13, 16], "3f": [1, 3, 9], "3n": 19, "3x": [2, 8], "3x_i": 2, "3y": 8, "4": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24], "40": [1, 6, 22, 24], "400": 4, "4000": 24, "4050": [23, 24], "41": 19, "4155": [2, 15], "41589548": [], "42": [1, 4, 8, 9, 10, 19], "43": [0, 7, 19], "4310": 24, "436462435": 4, "44": [0, 19], "45": [22, 24], "46": [22, 24], "462": 7, "47": [22, 24], "479465113": 4, "47958494": [], "48": [], "48257387": [22, 24], "49": [5, 6, 11], "49152": 3, "4940954": [0, 24], "4990": 21, "4992": 21, "4997": 21, "4c4c7f": [9, 10], "4d": 3, "4f": 6, "4pm": [22, 24], "4y": 8, "4y_i": 10, "5": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25], "50": [1, 2, 3, 4, 6, 7, 8, 10, 13, 24, 25], "500": [1, 3, 4, 6, 9, 10, 13], "5018": 21, "506": [], "507d50": [9, 10], "50j": 13, "50x10": 1, "51": 10, "510": 1, "512132": [], "5177783846": 4, "53": 9, "54": [6, 21], "5411205": [], "54894451": [], "55": 1, "56": 1, "56536": [0, 24], "569": 1, "57": [0, 8, 22, 24], "571": 5, "58": [10, 22, 24], "591317992": 4, "5cm": 21, "5f": 8, "5x": 8, "5y": 8, "6": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 19, 21, 22, 24, 25], "60": [1, 3], "60000": 4, "6019067271": 4, "606439": [], "625": 7, "63": 1, "64": [1, 3, 4, 13, 19, 24], "64x50": 1, "65": [1, 8, 9], "6887363571": 4, "69": [16, 21], "69069n_": 21, "691": [], "6n_": 21, "7": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 19, 21, 23, 24, 25], "70": [1, 7], "70653767": 4, "71": 1, "724": 3, "73": [], "7304881": [], "75": [5, 6, 8, 11], "76": [22, 24], "765": 7, "77": [22, 24], "7718": 9, "7782028952": 4, "77893972": [], "78": [], "7d7d58": [9, 10], "8": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 19, 21, 22, 24], "80": [0, 1, 5, 8, 17, 25], "800": [4, 7], "81": 1, "815am": [22, 24], "85": 1, "8702784034": 4, "88": 24, "8f": 6, "8g": 6, "8n": 19, "8x8": 1, "9": [0, 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 19, 21, 24], "90": 1, "9040": 9, "91": [22, 24], "92": [22, 24], "93": 16, "931": [0, 24], "933": 5, "937": 21, "938": 21, "939": [0, 21, 24], "94": 21, "95": [1, 11], "954": 21, "955820c21e8b": 4, "96": 6, "960": 21, "961": 21, "962": 21, "9649652536": 4, "96611194e": [], "9780387310732": 23, "9780387848570": 23, "9781098134174": 24, "9781492032632": 23, "9781801819312": 24, "98": [0, 1, 16], "985": 21, "986": 21, "989": 21, "9898ff": [9, 10], "99": [13, 16], "991": 21, "992": 21, "993": 21, "996": 5, "999": [9, 21], "9x": 6, "9y": 6, "A": [2, 3, 5, 6, 7, 10, 11, 12, 13, 15, 16, 18, 19, 20, 21, 22, 23, 25], "AND": 2, "And": [0, 3, 4, 5, 6, 9, 13, 18, 21], "As": [0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 13, 15, 16, 19, 21, 24, 25], "At": [0, 4, 6, 13, 24], "BE": [0, 24], "Be": [2, 18, 24], "Being": 13, "But": [0, 1, 2, 3, 5, 6, 9, 10, 16, 21, 25], "By": [0, 3, 5, 6, 12, 13, 17, 19, 24, 25], "For": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 23, 24, 25], "IF": [6, 25], "IN": 23, "If": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25], "In": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 23, 24, 25], "Ising": [5, 12, 25], "It": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 24, 25], "Its": [1, 2, 4, 11], "No": [6, 9, 24, 25], "Not": [0, 1, 5, 6, 25], "OR": 21, "Of": 21, "On": [0, 3, 21, 22, 23, 24], "One": [0, 1, 3, 4, 5, 6, 7, 8, 11, 12, 13, 17, 21, 25], "Or": [0, 1, 6, 24], "Such": [0, 6, 12, 16, 21], "That": [0, 5, 7, 10, 11, 12, 14, 21, 24], "The": [4, 10, 13, 14, 16, 17, 19, 20, 21, 22, 23], "Then": [0, 1, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 24], "There": [0, 3, 4, 5, 6, 8, 9, 11, 12, 14, 15, 19, 21, 22, 24, 25], "These": [0, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14, 17, 19, 21, 22, 24, 25], "To": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 19, 21, 25], "With": [0, 5, 6, 8, 9, 10, 11, 12, 14, 16, 19, 21, 24, 25], "_": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 19, 24, 25], "_0": [5, 8, 10, 11, 13, 25], "_1": [2, 5, 6, 8, 10, 11, 12, 13, 14, 19, 25], "_2": [2, 5, 8, 11, 12, 13, 19, 25], "_3": 19, "_4": 19, "_9": 13, "__class__": 10, "__doc__": 6, "__future__": [8, 9], "__init__": 1, "__main__": 2, "__name__": [2, 10], "_auto1": [2, 3, 4, 5, 6, 7, 12, 13, 19, 21, 25], "_auto10": [6, 12], "_auto11": 6, "_auto12": 6, "_auto2": [2, 3, 4, 5, 6, 12, 13, 19, 21], "_auto3": [3, 4, 5, 6, 12, 13, 19], "_auto4": [4, 6, 12, 13, 19], "_auto5": [4, 6, 12, 13, 19], "_auto6": [4, 6, 12, 19], "_auto7": [4, 6, 12, 19], "_auto8": [6, 12], "_auto9": [6, 12], "_build": [0, 18, 23, 24], "_c": 1, "_compon": 11, "_depth": 9, "_export": [15, 16], "_fraction": 9, "_i": [0, 1, 2, 5, 6, 7, 8, 11, 12, 13, 24, 25], "_j": [0, 1, 2, 3, 5, 6, 8, 13, 25], "_k": 13, "_l": 12, "_lambda": 6, "_leaf": 9, "_m": 10, "_multilayer_perceptron": [], "_n": [2, 5, 8, 11, 13, 25], "_node": 9, "_p": [5, 8, 25], "_ratio": 11, "_sampl": 9, "_split": [6, 9], "_t": 13, "_test": 6, "_varianc": 11, "_weight": 9, "a0": 3, "a0faa0": [9, 10], "a1": [0, 24], "a2": [0, 24], "a3": [0, 24], "a4": [0, 24], "a_": [0, 1, 16, 19, 24, 25], "a_0": [0, 24], "a_1a": [0, 24], "a_2a": [0, 24], "a_3": [0, 24], "a_3a": [0, 24], "a_4": [0, 24], "a_4a": [0, 24], "a_h": 1, "a_i": [0, 1, 2, 12, 24], "a_j": [1, 12], "a_k": [0, 1, 12], "aaron": 23, "ab": [0, 2, 5, 13, 14, 24, 25], "ab_channel": 18, "abandon": 1, "abid": 21, "abil": [0, 10], "abl": [0, 1, 4, 5, 6, 7, 10, 12, 13, 16, 25], "about": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 22], "abov": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 23, 24, 25], "abovement": [6, 24], "abscissa": 13, "absolut": [0, 2, 5, 6, 13, 24, 25], "absorb": 25, "abstract": 1, "acceler": 13, "accept": [0, 3, 6, 9, 25], "access": [3, 11, 21, 24], "accid": [4, 6], "accompani": [0, 24, 25], "accomplish": [8, 9, 13], "accord": [0, 1, 2, 5, 6, 9, 12, 13, 14, 21, 24], "accordingli": 11, "account": [0, 3, 5, 13, 15, 16, 21, 24], "accumul": [12, 13, 21], "accur": [0, 3, 4, 6, 10, 13], "accuraci": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 24, 25], "accuracy_scor": [0, 1, 10, 24], "accuracy_score_numpi": 1, "achiev": [0, 1, 5, 6, 8, 12, 19, 24], "aco": 21, "acquaint": 18, "acquir": [1, 18, 24], "acr": [], "across": [1, 3, 6, 9, 17, 18, 24], "act": [1, 3, 19], "action": 21, "activ": [0, 2, 3, 4, 9, 15, 20, 22, 24], "actual": [0, 1, 4, 5, 6, 8, 11, 15, 16, 19, 21, 24, 25], "ad": [1, 3, 4, 5, 8, 13, 15, 16, 19], "ada_clf": 10, "adaboostclassifi": 10, "adadelta": 13, "adam": [1, 3, 4, 24], "adapt": [4, 6, 13, 17, 23], "add": [0, 1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 15, 16, 17, 21, 22, 24, 25], "add_subplot": [1, 7, 12, 14], "addendum": 5, "addit": [0, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 15, 18, 19, 21, 22, 23, 24, 25], "addition": [12, 13], "address": [1, 9, 11, 13, 24], "adjac": [3, 12], "adjoint": [5, 25], "adjust": [0, 5, 12, 13], "admir": [0, 24], "advanc": [4, 6, 12, 23, 24], "advantag": [1, 3, 5, 6, 10, 13, 19], "adversari": 24, "afecionado": 24, "affect": [3, 15], "affin": [0, 3, 8, 11, 25], "afford": 3, "aficionado": 24, "aforement": 14, "african": [], "after": [0, 1, 2, 4, 5, 6, 9, 11, 12, 13, 15, 16, 17, 18, 19, 21, 24, 25], "afterward": [0, 24], "ag": [0, 7, 24, 25], "ag_0": 2, "again": [0, 1, 4, 5, 6, 7, 8, 10, 11, 12, 13, 21, 24, 25], "against": [1, 4, 7, 10], "agegroup": 7, "agegroupmean": 7, "aggreg": [9, 10], "agorithm": 10, "agre": [5, 6, 21, 25], "agreement": 13, "ahead": 9, "ai": [0, 23], "aid": 11, "aim": [0, 1, 4, 6, 7, 11, 14, 16, 17, 18, 19, 25], "ainv": 5, "airplan": 3, "aka": 5, "al": [0, 2, 4, 16, 17, 23, 24, 25], "alarm": [5, 7], "aldo": 25, "algebra": [0, 3, 5, 13, 18, 25], "algorithm": [0, 1, 2, 4, 5, 6, 7, 8, 13, 14, 16, 18, 19, 21, 23], "align": [0, 2, 5, 6, 7, 8, 13, 21, 24, 25], "all": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25], "allevi": [1, 13], "alloc": [3, 19], "allow": [0, 1, 2, 3, 5, 6, 8, 10, 13, 15, 18, 19, 24, 25], "almost": [0, 1, 6, 8, 11, 13, 21], "alon": [2, 9], "along": [2, 3, 4, 5, 6, 9, 10, 11, 15, 18, 19, 24, 25], "alpha": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 13, 14, 21, 24, 25], "alpha_": 10, "alpha_0": 3, "alpha_1": 3, "alpha_2": 3, "alpha_i": [3, 13], "alpha_k": 13, "alpha_m": 10, "alpha_n": 3, "alpha_opt": 13, "alreadi": [2, 3, 4, 5, 6, 10, 12, 15, 18, 19, 21, 24, 25], "also": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 24, 25], "alter": 1, "altern": [0, 1, 4, 5, 6, 8, 9, 11, 13, 15, 19, 24, 25], "although": [0, 1, 5, 6, 8, 10, 13, 16, 24], "alwai": [0, 3, 5, 6, 12, 13, 16, 21, 24, 25], "am": 4, "ame2016": [0, 24], "american": [], "among": [0, 3, 5, 9, 10, 12, 19, 24, 25], "amongst": 5, "amount": [0, 1, 3, 4, 6, 8, 10, 14, 18], "an": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 25], "an_": 21, "anaconda": [0, 1, 18, 24], "analogi": 13, "analys": 6, "analysi": [1, 3, 4, 7, 14, 19, 23], "analyt": [2, 3, 5, 6, 7, 12, 13, 17, 18, 24, 25], "analyz": [0, 1, 3, 4, 5, 6, 16, 21, 25], "andrew": 1, "angl": [0, 3, 9, 25], "anharmon": 3, "ani": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 21, 24, 25], "anim": [4, 12], "ann": 12, "annot": [0, 1, 3, 7, 8, 24], "announc": 24, "anoth": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 15, 19, 21, 24, 25], "ansatz": [0, 24], "answer": [0, 1, 3, 5, 6, 19, 22, 24], "antialias": [2, 6], "anticip": 4, "anymor": [1, 8], "anyon": [4, 8, 15], "anyth": [1, 15, 16, 21], "anytim": [22, 24], "apach": 1, "apart": [11, 13], "api": [1, 18, 24], "appar": 2, "appear": [0, 1, 3, 13, 19, 21], "append": [1, 3, 4, 8, 9, 13, 24], "appli": [0, 1, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 21, 23, 24, 25], "applic": [0, 1, 3, 4, 5, 6, 7, 9, 12, 13, 16, 19, 21, 23, 24, 25], "apply_gradi": 4, "approach": [1, 2, 4, 5, 6, 9, 10, 11, 12, 13, 15, 16, 18, 21, 23, 25], "appropri": [2, 6, 9, 12, 13, 17, 18, 21], "approv": 24, "approx": [0, 2, 3, 6, 10, 11, 13, 21, 24], "approxim": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 13, 21, 24, 25], "apt": [0, 18, 24], "aq": 21, "ar": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "aragorn": 24, "arang": [1, 3, 4, 6, 7, 9, 10, 12, 13, 24], "arbitrari": [1, 4, 6, 8, 12, 13, 21], "arbitrarili": [0, 1, 11, 24], "arc": 6, "architectur": [3, 4, 12], "area": [0, 3, 6, 23, 24], "argmax": [1, 11], "argmin": [4, 10, 14], "argsort": 11, "argu": [1, 13], "argument": [0, 2, 3, 5, 11, 12, 13, 17, 24, 25], "aris": [0, 6, 12, 13, 21, 24], "arithmet": [0, 13, 19, 24], "arm": [6, 25], "armadillo": 19, "around": [0, 1, 4, 5, 6, 11, 21, 24], "arrai": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 16, 18, 21, 25], "arrang": [3, 24], "arraybox": 13, "arriv": [0, 6, 9, 11, 19, 21, 24], "arrow": 12, "arrowprop": 8, "art": [0, 1, 18], "articl": [0, 3, 4, 6, 10, 24, 25], "artifici": [0, 2, 7, 12, 23, 24], "artificialneuron": 12, "arug": 13, "arxiv": [3, 4], "asarrai": [0, 6, 9, 25], "asid": 25, "ask": [5, 6, 11, 12, 15], "aspect": [0, 6, 18, 24, 25], "assembl": 3, "assembli": [0, 24], "assert": 4, "assess": [0, 6, 24, 25], "assici": 4, "assign": [0, 7, 8, 9, 12, 13, 14, 15, 20, 22, 23, 24], "associ": [0, 6, 9, 12, 14, 21, 24], "assum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 19, 21, 24, 25], "assumpt": [0, 3, 5, 6, 9, 11, 21, 24, 25], "ast": [0, 5, 6, 24], "astyp": [4, 9, 10], "asymmetri": [0, 24], "asymptot": [4, 6], "atom": [0, 24], "attempt": [0, 4, 6, 7, 8, 10, 24, 25], "attend": 24, "attent": [0, 19, 24], "attract": [0, 10, 24], "attribut": [0, 9, 24], "audi": [0, 24], "audio": [3, 4], "august": [24, 25], "aurelien": [0, 23, 24], "austfjel": 6, "auth": 15, "authent": 15, "author": [0, 1, 10, 21], "authour": 24, "auto": [9, 10, 21], "auto_exampl": 25, "autocor": 21, "autocorrelation_tim": 21, "autocorrelform": 21, "autocovari": 21, "autoencod": [4, 18, 24], "autoencond": 18, "autograd": [18, 24], "autom": [0, 18, 23, 24], "automac": 19, "automag": 24, "automat": [0, 1, 2, 3, 4, 11, 16, 18, 19, 24], "automobil": 3, "autonom": 4, "avail": [0, 1, 4, 6, 10, 11, 18, 19, 20, 22, 23, 24], "averag": [0, 1, 3, 6, 9, 10, 13, 14, 21, 22, 24, 25], "avoid": [0, 4, 5, 6, 9, 11, 13, 19, 25], "awai": [2, 3, 6, 25], "awar": [2, 10], "award": [22, 24], "ax": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 24], "axes3d": [2, 6, 13], "axes_grid1": 6, "axhlin": 8, "axi": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25], "axiom": 5, "axvlin": [4, 8], "axvspan": 4, "b": [0, 1, 3, 4, 5, 6, 8, 9, 10, 12, 13, 14, 15, 16, 17, 21, 22, 24, 25], "b1": 8, "b2": 8, "b3": 8, "b_": [0, 1, 19], "b_0": 0, "b_1": [0, 2, 12, 13], "b_2": [0, 13], "b_5": 13, "b_group": 9, "b_i": [0, 1, 2, 12, 24], "b_ia_": [0, 24], "b_ia_i": 0, "b_index": 9, "b_j": [1, 12], "b_k": [0, 1, 12, 13], "b_m": 12, "b_score": 9, "b_valu": 9, "babcock": 24, "bachelor": [20, 22], "back": [0, 3, 4, 5, 6, 8, 9, 10, 15, 16, 19, 21, 24], "backbon": 19, "backend": [1, 4], "background": [23, 24], "backpropag": 1, "backtrack": 9, "backup": 19, "backward": [1, 2, 4, 12, 19], "bad": [6, 17, 25], "badli": 21, "bag": [9, 18, 24], "bag_clf": 10, "baggin": 24, "baggingboot": 10, "baggingclassifi": 10, "baggingtre": 10, "balanc": 6, "band": 19, "bandwidth": 19, "bar": [0, 6, 11, 24], "barber": 23, "bare": [4, 10], "base": [0, 1, 3, 4, 5, 7, 8, 9, 10, 14, 15, 16, 17, 18, 21, 22, 23, 24, 25], "basi": [5, 7, 8, 10, 11, 12, 13, 19, 25], "basic": [6, 8, 12, 13, 14, 15, 18, 21, 24], "batch": [3, 4, 11, 12, 13], "batch_shap": 4, "batch_siz": [1, 3, 4], "batchnorm": 4, "bay": 7, "bayesian": [5, 18, 23, 24], "becaus": [0, 1, 2, 3, 4, 5, 6, 8, 9, 12, 13, 14, 24, 25], "becom": [0, 1, 2, 5, 6, 7, 9, 12, 13, 21, 24, 25], "been": [0, 1, 2, 3, 4, 5, 6, 11, 12, 13, 18, 19, 24, 25], "befor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 13, 14, 16, 17, 19, 21, 24, 25], "beforehand": [0, 21, 24], "begin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 19, 21, 22, 24, 25], "behav": [1, 6, 13], "behavior": [0, 1, 13, 24], "behaviour": 12, "behind": [0, 1, 6, 8, 13, 24], "being": [0, 1, 2, 3, 4, 5, 7, 8, 10, 11, 12, 13, 17, 21, 24, 25], "believ": [9, 19], "belong": [7, 8, 9, 13, 14], "below": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 19, 21, 24, 25], "benchmark": 10, "benefici": [1, 13], "benefit": [0, 1, 4, 11, 13, 18, 24], "bengio": [1, 23, 24, 25], "benign": [1, 7], "besid": [4, 5], "bessel": [5, 25], "best": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 22, 24, 25], "beta": [1, 3, 10, 11, 13, 16, 17, 24, 25], "beta_": [3, 13, 17, 25], "beta_0": [1, 3, 13, 25], "beta_1": [1, 3, 10, 13, 25], "beta_1x_i": 13, "beta_2": [3, 13], "beta_3": 3, "beta_i": 3, "beta_j": [13, 25], "beta_k": 13, "beta_linreg": 13, "beta_m": 10, "beta_mg_m": 10, "beta_n": 3, "better": [0, 1, 2, 3, 4, 6, 9, 10, 11, 12, 13, 24, 25], "between": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 21, 24, 25], "beyond": [0, 1, 5, 6, 8, 13, 24, 25], "bf": [13, 14, 19, 21], "bg": 24, "bgd": 13, "bia": [0, 1, 2, 3, 5, 8, 9, 10, 12, 13, 24, 25], "bias": [1, 2, 3, 5, 6, 9, 12], "big": [0, 1, 2, 5, 6, 14], "bigger": [1, 6, 25], "bigr": 12, "bike": 9, "bilbo": 24, "billion": [3, 12, 18], "bin": [7, 21], "binari": [0, 3, 5, 7, 9, 10, 12, 24], "binarycrossentropi": 4, "bind": 0, "binomi": [18, 21, 24], "binsboot": 6, "bioinformat": 0, "biolog": [1, 12], "bios1100": [18, 24], "bird": [0, 3], "birth": 24, "bishop": [23, 24], "bit": [1, 4, 19, 21, 24], "bitwis": 21, "bivari": 2, "bk": 13, "bla": [19, 24], "black": [8, 9, 14], "block": [6, 10, 18, 19, 21, 24], "blog": 24, "blogpost": 4, "blue": [0, 3], "bmatrix": [0, 1, 3, 5, 7, 8, 11, 13, 19, 24, 25], "bmi": 1, "bodi": [0, 1, 4, 12], "bold": 1, "boldfac": [0, 5, 16, 25], "boldsymbol": [0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 13, 14, 16, 17, 24], "boltzmann": [12, 18, 24], "book": [17, 23, 24, 25], "book1": 23, "boolean": [4, 17], "boost": [1, 9, 18, 24], "boostrap": 10, "bootstrap": [1, 13, 18, 24], "borrow": 24, "boston_dataset": [], "bot": 8, "both": [0, 1, 4, 5, 6, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 25], "bottl": 7, "bound": [8, 12], "boundari": [2, 4, 8, 11, 12], "box": [4, 9], "boyd": [8, 13], "bracket": [4, 21], "brain": [1, 7, 12], "branch": [9, 24], "break": [0, 4, 6, 11, 14, 24], "breast": [5, 7, 11], "breviti": 13, "brew": [0, 18, 24], "brg": 8, "brief": 25, "briefli": [0, 16, 24], "bring": [0, 5, 6, 10, 25], "britt": [22, 24], "broad": 0, "broadli": 24, "brought": [13, 18, 24], "brownle": 4, "browser": [15, 24], "brute": [3, 5, 11, 25], "buffer_s": 4, "bui": 4, "build": [0, 4, 5, 6, 10, 16, 19, 21, 24], "built": [1, 3, 4, 6], "bunch": 11, "busi": [], "byte": [19, 24], "c": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25], "c1": [8, 11], "c2": [8, 11], "c_": [8, 9, 10, 13, 21], "c_0": 21, "c_1": 12, "c_2": 12, "c_3": 12, "c_4": 12, "c_i": [12, 13], "c_k": 21, "ca": [1, 24], "cach": 10, "cal": [0, 8, 10, 12, 13], "calcul": [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 16, 19, 21, 24], "call": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 19, 21, 22, 24, 25], "calor": [0, 25], "cambridg": [13, 23], "can": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 25], "cancel": [0, 13, 24, 25], "cancer": [5, 10], "cancerpd": 7, "candid": [8, 9, 10], "cannot": [0, 1, 4, 5, 6, 7, 8, 9, 21, 25], "canopi": [0, 18, 24], "canva": [15, 16, 24], "cap": 5, "capabl": [0, 1, 8, 13, 18, 24], "capac": [2, 22], "capita": [], "captur": [4, 11, 12, 24], "car": [3, 4], "card": [0, 7, 24], "cardin": 1, "care": [11, 15], "carefulli": 13, "carlo": [0, 6, 18, 21, 23, 24], "carri": [2, 6, 7], "cart": 10, "case": [0, 1, 2, 3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 16, 18, 19, 24], "casella": 23, "cast": 1, "cat": [3, 4], "catch": 0, "categor": [0, 1, 3, 9, 11, 24], "categori": [0, 1, 3, 7, 10, 12, 14, 24], "categorical_crossentropi": [1, 3], "caus": [0, 5, 6, 21, 24, 25], "causal": 0, "causat": [0, 24], "cax": 1, "cb": [6, 24], "cbar": 1, "cc": [0, 1, 5, 13, 24, 25], "ccc": [5, 12], "cdf": 21, "cdot": [0, 2, 6, 12, 13, 14, 19, 21, 24], "celebr": 13, "cell": 4, "center": [0, 1, 6, 7, 8, 9, 11, 14, 21, 24, 25], "central": [0, 3, 5, 6, 8, 16, 19, 24, 25], "centroid": [14, 21], "centroid_differ": 14, "centuri": 3, "certain": [0, 3, 6, 7, 9, 21, 24, 25], "cg": 13, "cha": [], "chain": [0, 1, 13, 18, 21, 24], "challeng": 15, "chanc": [1, 5, 13, 21], "chang": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 13, 14, 15, 16, 19, 21, 24, 25], "channel": 3, "chapter": [0, 6, 10, 11, 16, 17, 19, 23, 24, 25], "chapter3": 0, "charact": [0, 3, 5, 24, 25], "character": [8, 9, 10, 12, 21], "characterist": [0, 1, 3, 10, 13, 24], "charg": [0, 24], "charl": [], "chase": 4, "chatgpt": 15, "chd": 7, "chddata": 7, "cheap": [5, 25], "cheaper": [1, 13], "check": [1, 3, 4, 5, 11, 13, 15, 16, 19, 24], "checkmark": 3, "checkpoint": 4, "checkpoint_dir": 4, "checkpoint_prefix": 4, "chen": 10, "cheng": 25, "chiaramont": 2, "childcar": 16, "children": 16, "choic": [0, 1, 2, 3, 4, 6, 9, 12, 13, 14, 19, 24, 25], "choleski": [5, 19, 25], "choos": [2, 3, 6, 9, 10, 11, 13, 14, 15], "chosen": [0, 1, 2, 6, 8, 9, 10, 13, 16, 21, 24], "chosen_datapoint": 1, "christian": 23, "christoph": [23, 24], "cifar": 3, "cifar10": 3, "circ": [1, 12], "circl": [0, 8, 12, 25], "circuit": 3, "circumfer": 9, "circumv": [1, 5, 13, 25], "ckpt": 4, "clariti": 21, "class": [0, 1, 3, 4, 6, 7, 8, 9, 11, 12, 13, 21, 24], "class_nam": [3, 9], "class_val": 9, "class_valu": 9, "classic": [7, 9, 13], "classif": [0, 3, 5, 6, 7, 8, 11, 12, 18, 23, 24, 25], "classifi": [0, 1, 4, 7, 9, 10, 11, 24], "classificaton": 1, "classifii": 10, "clean": 1, "clear": [1, 5, 10, 12, 13], "clearli": [0, 3, 5, 6, 7, 8, 21, 25], "clever": [1, 10], "clf": [0, 6, 8, 9, 10, 24, 25], "clf3": 0, "clf_lasso": 6, "clf_ridg": 6, "cli": 15, "clip": [3, 21], "clone": [15, 22], "close": [0, 1, 2, 4, 6, 8, 9, 11, 12, 13, 14, 21, 23, 24], "closer": [3, 5, 13, 25], "closest": [8, 11, 13, 14], "closur": [18, 24], "cloud": [18, 24], "cluster": [0, 1, 4, 6, 11, 18, 24], "cluster_label": 14, "cm": [1, 2, 3, 6, 8, 13], "cmap": [0, 1, 2, 3, 4, 6, 8, 9, 10, 24], "cmap_arg": 6, "cmd": [9, 15], "cn_": 21, "cnn": 12, "cnn_kera": 3, "cntk": [18, 24], "co": [0, 2, 3, 6, 9, 13, 24], "code": [0, 3, 4, 6, 7, 8, 18, 19, 21, 23], "coef": [0, 24], "coef0": 8, "coef_": [0, 5, 6, 8, 9, 13, 16, 24, 25], "coeff": 5, "coeffici": [0, 3, 5, 6, 7, 8, 9, 13, 19, 24, 25], "coerc": [0, 6, 24], "coin": [10, 21], "coin_toss": 10, "col": [0, 11, 24, 25], "colab": [18, 24], "cold": 9, "colinear": [], "collaps": 8, "collect": [2, 6, 10, 11, 17, 18, 21, 23, 24], "collinear": [5, 25], "color": [0, 3, 4, 6, 8, 9, 10, 21], "color_channel": 3, "color_cod": 6, "colorbar": [1, 6], "colsample_bytre": 10, "colsaobject": 10, "column": [0, 1, 2, 5, 6, 7, 8, 9, 11, 12, 16, 17, 19, 24, 25], "columntransform": 9, "com": [4, 6, 15, 16, 18, 23, 24], "combin": [1, 2, 5, 6, 7, 10, 15, 21], "come": [0, 1, 3, 4, 5, 12, 13, 14, 15, 24, 25], "command": [0, 1, 15], "comment": [0, 4, 5, 6], "commerci": [0, 18, 24], "commit": 15, "commod": [0, 24], "common": [0, 1, 3, 5, 6, 7, 9, 11, 13, 14, 16, 21, 24, 25], "commonli": [0, 1, 4, 6, 7, 9, 13, 14, 25], "commun": [0, 12, 15], "commut": 3, "commutatitav": 3, "compact": [0, 1, 3, 5, 6, 7, 9, 11, 12, 13, 14, 24, 25], "compair": 0, "compar": [0, 3, 4, 5, 6, 11, 13, 19, 24, 25], "comparison": [2, 4, 13], "compat": 7, "compet": 0, "competit": 10, "compil": [0, 1, 3, 4, 13, 18, 19, 24], "complet": [0, 2, 3, 4, 9, 12, 15, 16, 17, 24], "completenn": 12, "complex": [1, 5, 8, 9, 11, 12, 13, 16, 24], "complic": [0, 1, 9, 13, 24], "compoment": 25, "compon": [0, 1, 3, 4, 5, 6, 7, 9, 14, 16, 18, 24, 25], "components_": 11, "compos": [9, 12, 13, 14, 18, 24], "compphys": [0, 6, 16, 18, 20, 22, 23, 24, 25], "compress": [0, 24, 25], "compris": 6, "compromis": [5, 25], "compulsori": [18, 24], "comput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25], "computation": [0, 3, 6, 9, 13, 21, 24], "computationalscienceuio": 24, "concaten": [2, 4, 6, 14], "concav": [1, 13, 25], "concentr": 10, "concept": [0, 2, 18, 24, 25], "conceptu": [12, 13], "concern": [0, 1, 4, 7, 24], "concic": 24, "conclud": [0, 5, 13], "conclus": 1, "cond": 2, "conda": [0, 1, 18, 24], "condis": 25, "condit": [0, 2, 4, 5, 6, 8, 9, 11, 13, 21, 24, 25], "conduct": 18, "condwav": 2, "confid": [0, 5, 6, 7, 8, 24, 25], "configur": 3, "confirm": [5, 12], "confus": [5, 6, 7, 10, 19, 25], "confusion_matrix": 9, "congruenti": 21, "conjug": [4, 8], "conjugaci": 13, "conjunct": 3, "connect": [0, 1, 3, 4, 9, 11, 12, 13, 19, 24, 25], "consequ": [5, 6, 8, 10, 12, 13, 25], "conserv": [5, 14, 25], "consid": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 16, 19, 21, 24, 25], "consider": [0, 1, 5, 13, 24, 25], "consist": [1, 2, 3, 4, 6, 12, 13, 21, 25], "constant": [0, 2, 4, 5, 6, 8, 12, 13, 16, 21, 24, 25], "constitu": [0, 24], "constitut": [2, 6], "constrain": [1, 3, 5, 7, 11], "constraint": [5, 6, 8, 13, 25], "construct": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 19, 21, 24, 25], "contact": [0, 24], "contain": [0, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 19, 21, 23, 24, 25], "contemporari": 24, "content": [1, 15, 18, 19, 24], "context": [6, 10, 13], "contigu": 19, "continu": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 19, 21, 24, 25], "contour": [9, 10, 13], "contourf": [8, 9, 10], "contrast": [1, 4, 9, 10, 12, 24], "contribut": [0, 3, 5, 13, 21, 24, 25], "contributor": 0, "control": [0, 1, 3, 9, 13, 15, 18, 24], "conv": [3, 4], "conv2d": [3, 4], "conv2dtranspos": 4, "convei": 24, "conveni": [5, 6, 12, 13, 19, 24], "convent": [12, 25], "converg": [1, 2, 4, 5, 8, 13, 14, 25], "convergencewarn": [], "convert": [0, 1, 4, 5, 9, 11, 13, 19, 24, 25], "converttomatrix": 4, "convex": [4, 5, 7, 25], "convinc": 13, "convolut": [1, 4, 18, 24], "cool": [4, 9], "coolwarm": 6, "coordin": [5, 12, 14, 25], "coorel": [], "copi": [0, 1, 14, 15, 25], "core": 10, "corel": 24, "coronari": 7, "corr": [5, 7, 11, 25], "correalt": [11, 18], "correct": [0, 1, 2, 3, 4, 5, 7, 13, 15, 19, 21, 24, 25], "correctli": [1, 2, 6, 7, 10], "correl": [0, 1, 3, 5, 6, 7, 10, 12, 13, 18, 21, 24], "correlation_matrix": [5, 7, 11, 25], "correspond": [0, 3, 5, 6, 8, 9, 11, 12, 18, 19, 21, 24, 25], "cortex": 12, "cosin": [3, 6], "cost": [0, 2, 3, 5, 6, 7, 8, 9, 12, 13, 16, 17, 24], "cost_deep_grad": 2, "cost_funct": 2, "cost_function_deep": 2, "cost_function_deep_grad": 2, "cost_function_grad": 2, "cost_grad": 2, "cost_sum": 2, "costol": 13, "could": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 19, 21, 24, 25], "coulomb": [0, 24], "count": [0, 9, 15, 20, 21, 22, 24], "counterpart": 24, "countor": 13, "coupl": [4, 5, 6], "cours": [0, 1, 3, 5, 11, 15, 16, 17, 22, 25], "coursework": 15, "courvil": [23, 24, 25], "cov": [5, 6, 11, 19, 21, 24, 25], "cov_xi": [5, 11, 25], "cov_xx": [5, 11, 25], "cov_yi": [5, 11, 25], "covari": [0, 7, 18, 19, 24], "covariance_matrix": [5, 11, 14], "cover": [0, 5, 18, 22, 23, 25], "covert": [0, 24], "covxi": 21, "covxx": 21, "covxz": 21, "covyi": 21, "covyz": 21, "covzz": 21, "cpu": 1, "craft": 3, "creat": [1, 3, 4, 5, 9, 10, 11, 12, 15, 18, 24], "create_biases_and_weight": 1, "create_convolutional_neural_network_kera": 3, "create_neural_network_kera": 1, "create_x": [5, 11], "credit": [0, 7, 22, 24], "crim": [], "crime": [], "criteria": [0, 4, 9, 10, 14, 21, 24], "criterion": [9, 10, 13], "critic": [6, 25], "cross": [0, 1, 3, 7, 9, 10, 13, 15, 18, 21, 24, 25], "cross_entropi": 4, "cross_val_scor": 6, "cross_valid": [7, 10], "crossvalid": 6, "crucial": [1, 21], "cs231": 3, "csr_matrix": [19, 24], "csv": [0, 4, 6, 7, 9], "ctnk": 1, "cubic": 0, "cumbersom": 5, "cumsum": [10, 11, 24], "cumul": [7, 10, 21], "cumulative_heads_ratio": 10, "cup": 5, "current": [1, 2, 3, 4, 13, 14, 15, 16, 23], "curs": [0, 25], "curv": [6, 7, 10, 12], "curvatur": 13, "custom": [6, 14], "custom_cmap": [9, 10], "custom_cmap2": [9, 10], "cutpoint": 9, "cv": [6, 7, 10], "cvxbook": 13, "cvxopt": [5, 8, 25], "cycl": [1, 12], "d": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25], "d2_g_t": 2, "d_f": 13, "d_g_t": 2, "d_net_out": 2, "da": 3, "dagger": [5, 19, 25], "dai": [1, 9, 18], "damp": 3, "darget": 9, "darkr": 21, "dat": [0, 24], "dat_id": [0, 6, 7, 9, 24], "data": [2, 4, 5, 8, 10, 12, 13, 14, 16, 19, 23], "data1": 14, "data2": 14, "data3": 14, "data4": 14, "data_id": [0, 6, 7, 9, 24], "data_indic": 1, "data_panda": 24, "data_path": [0, 6, 7, 9, 24], "databas": 1, "datafil": [0, 6, 7, 9, 24], "datafram": [0, 4, 5, 7, 9, 11, 24, 25], "datapoint": [1, 5, 6, 7, 11, 13, 16], "datasci": [15, 16], "dataset": [0, 4, 6, 7, 8, 9, 10, 11, 13, 14, 16, 24], "datatyp": 4, "date": [15, 24, 25], "daughter": 10, "david": 23, "dbh": 1, "dbo": 1, "dcomposit": 19, "ddot": 2, "dead": 1, "deadlin": 15, "deal": [0, 1, 3, 5, 6, 8, 11, 13, 14, 19, 21, 24, 25], "dealt": 0, "debt": 7, "debug": [0, 5, 6, 25], "decad": [0, 3], "decai": [0, 13, 21, 24], "decemb": [22, 24], "decent": 10, "decid": [0, 2, 3, 5, 6, 9, 25], "decim": [0, 24], "decis": [0, 1, 8, 11, 18, 23, 24], "decision_funct": 8, "decision_tre": 9, "decisiontreeclassifi": [9, 10], "decisiontreeregressor": [0, 9, 10], "declar": [0, 4, 19, 24], "decompos": [5, 6, 19, 25], "decomposit": [0, 6, 12, 24], "decompost": [5, 25], "deconvolut": 3, "decorrel": [10, 13], "decreas": [1, 2, 4, 5, 6, 10, 11, 13], "deduc": [0, 24], "deep": [3, 7, 12, 13, 18, 23, 25], "deep_neural_network": 2, "deep_param": 2, "deep_tree_clf": [9, 10], "deep_tree_clf1": 9, "deep_tree_clf2": 9, "deepen": [5, 18, 24], "deeper": [0, 3, 4, 24], "deeplearningbook": [23, 24], "deer": 3, "def": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 16, 17, 21, 24, 25], "def_covari": 21, "default": [0, 1, 2, 4, 6, 7, 19, 24, 25], "default_tim": 4, "defect": [5, 25], "defici": [5, 25], "defin": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 25], "definit": [1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 19, 21, 25], "defint": 21, "degre": [3, 5, 6, 8, 9, 10, 11, 15, 16, 21, 24], "deisenroth": 25, "del": 1, "delet": [6, 15], "delimit": 4, "deliv": [15, 20, 24], "delta": [0, 2, 3, 6, 8, 12, 13, 14, 24], "delta_": [1, 19], "delta_0": 3, "delta_1": 3, "delta_2": 3, "delta_3": 3, "delta_4": 3, "delta_5": 3, "delta_h": [0, 1, 24], "delta_j": [3, 12], "delta_k": 12, "delta_l": [1, 3], "delta_momentum": 13, "delta_n": [0, 3, 24], "delug": 18, "delv": 0, "demand": 13, "demonstr": [0, 3, 5, 6, 7, 11, 12, 18, 24, 25], "den": 4, "denomin": [1, 5], "denot": [1, 2, 6, 7, 13, 21], "dens": [1, 3, 4], "densiti": [0, 2, 6, 21], "depart": [22, 24, 25], "depend": [0, 1, 2, 4, 5, 6, 7, 8, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25], "depict": 21, "deploy": [0, 18, 24], "depth": [0, 3, 9, 10, 19], "deriv": [0, 1, 2, 6, 7, 8, 10, 11, 13, 18, 24], "derivati": 13, "derivative_fn": 13, "descend": [5, 9, 11, 25], "descent": [0, 1, 3, 7, 8, 12, 24, 25], "describ": [0, 2, 4, 5, 6, 8, 10, 11, 12, 13, 19, 24], "descript": [0, 8, 9, 24], "design": [0, 1, 3, 4, 5, 6, 7, 10, 11, 12, 13, 17, 24], "designmatrix": [0, 24], "desir": [0, 2, 4, 5, 13, 14, 24, 25], "desktop": 15, "despit": [1, 12], "destroi": 19, "det": [5, 19, 25], "detail": [0, 6, 11, 13, 14, 19, 25], "detect": [3, 8, 12], "determin": [0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25], "determinist": [7, 13, 21], "dev": 1, "develop": [0, 3, 5, 8, 10, 11, 12, 18, 19, 24, 25], "deviat": [0, 1, 2, 4, 5, 6, 17, 21, 24, 25], "devis": 12, "df": [4, 8, 11, 13, 24], "df1": 24, "di": [], "diag": [5, 8, 25], "diagnost": [1, 10], "diagon": [0, 5, 7, 13, 19, 21, 24, 25], "diagonaliz": [5, 25], "diagram": 10, "diagsvd": 6, "dice": [6, 21], "dict": [6, 8], "dictionari": [], "did": [0, 1, 5, 6, 7, 10, 11, 14, 16, 24], "die": 1, "diff": 2, "diff1": 2, "diff2": 2, "diff_ag": 2, "diffeent": 8, "differ": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 23, 24, 25], "differenti": [0, 3, 16, 18, 19, 24, 25], "difficult": [0, 1, 6, 10, 13, 21, 24], "difficulti": [0, 1, 13, 24], "diffonedim": 2, "digit": [0, 1, 3, 4, 6, 22, 24], "dilemma": 13, "dilut": 1, "dim": [4, 11, 14, 19], "dimens": [0, 1, 2, 3, 4, 5, 8, 11, 14, 16, 19, 24, 25], "dimension": [0, 4, 5, 6, 9, 11, 13, 14, 18, 19, 24, 25], "dimensionless": [0, 3, 24], "diment": 19, "dimnsion": 4, "diod": 3, "direct": [0, 1, 2, 4, 11, 12, 13, 14, 24, 25], "directli": [1, 4, 5, 6, 21, 25], "disadvantag": [0, 24], "disappear": [3, 6], "disc_loss": 4, "disc_tap": 4, "discard": [6, 11], "disciplin": [0, 3, 12], "disclaim": 21, "discord": 24, "discourag": [13, 15], "discov": [0, 24], "discover": 5, "discret": [1, 3, 5, 7, 13], "discrimin": [4, 7, 10, 11], "discriminator_loss": 4, "discriminator_loss_list": 4, "discriminator_model": 4, "discriminator_optim": 4, "discuss": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 19, 21, 23, 24, 25], "diseas": 7, "disguis": [6, 25], "disord": [1, 7], "displai": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 21, 24, 25], "displaystyl": [0, 5, 17, 24, 25], "disregard": [0, 24], "dissimilar": [11, 14], "dist": 14, "distanc": [8, 9, 11, 14, 21], "distance_list": 9, "distinct": [3, 7, 8, 9, 10, 14], "distinctli": 8, "distinguish": [0, 4, 7, 8, 21, 24], "distplot": [], "distribut": [0, 1, 4, 6, 7, 10, 11, 13, 14, 18, 19, 24, 25], "distrubut": [0, 18, 24], "dive": [0, 8, 19, 24], "diverg": [1, 13], "divid": [0, 1, 3, 5, 6, 7, 8, 9, 11, 12, 21, 24, 25], "divis": [6, 8, 9, 13, 19, 21], "dna": 7, "dnn": [0, 1, 2, 4, 12, 24], "dnn1": 4, "dnn2_gru2": 4, "dnn_kera": 1, "dnn_model": 1, "dnn_numpi": 1, "dnn_scikit": [0, 1, 24], "do": [0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 24, 25], "doc": [0, 15, 16, 18, 20, 22, 23, 24], "document": [4, 13, 15], "doe": [0, 1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 15, 16, 17, 19, 21, 24], "doesn": [3, 9, 12, 24], "dog": [1, 3, 4], "domain": [5, 8, 13], "domin": [0, 24], "don": [0, 1, 3, 5, 6, 8, 11, 13, 15, 16, 18, 24, 25], "done": [0, 2, 3, 4, 5, 6, 9, 10, 11, 13, 16, 19, 24, 25], "dot": [0, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25], "doubl": [3, 4, 16, 19, 24], "doubli": 1, "down": [0, 3, 6, 9, 11, 12, 13], "download": [0, 1, 3, 5, 6, 15, 19, 23, 24], "downsampl": 3, "dozen": 1, "dq": 6, "drag": 13, "dramat": 11, "drastic": 4, "draw": [4, 6, 10, 13], "drawback": [0, 1, 3, 13, 25], "drawn": [1, 4, 6, 7, 11, 21, 24], "drive": [3, 4], "driven": 3, "drop": [0, 1, 5, 6, 11, 13, 21, 24, 25], "dropna": [0, 6, 24], "dropout": 4, "dt": [2, 3, 13, 21], "dtype": [0, 1, 3, 4, 14, 19, 24], "dub": [0, 24], "due": [1, 2, 5, 6, 8, 10, 12, 13, 22, 24, 25], "dummi": [], "dure": [0, 1, 3, 4, 8, 9, 11, 18, 24], "dwell": [], "dwh": 1, "dwo": 1, "dx": [2, 3, 8, 21], "dx_1": 21, "dx_1p": 6, "dx_2p": 6, "dx_mp": 6, "dx_n": 21, "dxp": 6, "dy": [1, 8, 21], "dynam": 4, "dz": 8, "e": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 21, 22, 24, 25], "e_": [0, 2, 24], "each": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 24, 25], "eapprox": [0, 24], "earli": [1, 13], "earlier": [0, 5, 7, 8, 9, 11, 12, 13, 24, 25], "earthexplor": 6, "eas": [6, 9, 14], "easi": [0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 18, 19, 24, 25], "easier": [5, 6, 8, 9, 13, 15, 21, 24, 25], "easiest": 13, "easili": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 24, 25], "eastern": [22, 24], "ebind": [0, 24], "eblock": 9, "econometr": 24, "economi": 5, "ecosystem": [18, 24], "ect": 20, "edg": 3, "edgecolor": 6, "editor": 15, "edu": 13, "educ": [0, 24], "eff": 21, "effect": [1, 4, 10, 13, 16, 17, 21], "effic": 1, "effici": [0, 3, 10, 13, 18, 19, 21, 24], "efron": 6, "egrad": 13, "eig": [5, 11, 13, 19, 21, 24, 25], "eigen": 21, "eigenpair": [5, 11, 25], "eigenvalu": [0, 5, 8, 11, 13, 19, 24, 25], "eigenvector": [5, 11, 13, 25], "eight": [19, 24], "eigval": [19, 21, 24], "eigvalu": [11, 13], "eigvec": [19, 21, 24], "eigvector": [11, 13], "eir": [22, 24], "eispack": [19, 24], "either": [1, 5, 6, 7, 8, 9, 10, 11, 13, 21, 24, 25], "eivind": 22, "eivinsto": 22, "ekstr\u00f8m": 4, "elabor": 21, "elarn": 3, "electr": [0, 3, 12, 24], "electron": 24, "eleg": 11, "element": [1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 18, 19, 23, 25], "elementari": [10, 13, 19], "elementwis": [3, 13], "elementwise_grad": [2, 13], "elessar": 24, "elif": 14, "elim": 19, "elimin": [3, 8], "elin": [22, 24], "ellipsi": 16, "els": [1, 3, 4, 7, 9, 12, 13, 16, 19], "elu": 1, "elus": [0, 24], "email": [20, 22, 24], "embed": [0, 11, 25], "embodi": 6, "emit": 21, "emner": 23, "emphas": [0, 10, 18, 24], "emphasi": [0, 18, 23, 24], "empir": [1, 11, 21], "emploi": [0, 1, 5, 6, 11, 13, 21, 24, 25], "employ": 0, "empti": [6, 10, 15], "emul": 12, "en": [18, 23], "enabl": 11, "enbodi": 6, "encod": [0, 3, 5, 9, 11, 14, 24, 25], "encompass": [0, 21], "encount": [0, 1, 5, 7, 13, 15, 21, 24, 25], "encourag": 15, "end": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 22, 24, 25], "endpoint": [3, 6], "energi": [0, 4, 6], "enforc": 12, "eng": 23, "engin": [0, 1, 3, 4, 18, 24], "enorm": 3, "enough": [0, 6, 13, 24], "ensembl": [1, 9, 24], "ensur": [0, 1, 2, 3, 5, 6, 11, 13, 21, 25], "entail": 24, "enter": [5, 6, 25], "enthought": [0, 18, 24], "entir": [1, 3, 7, 9, 18, 21, 24], "entiti": [9, 12, 19, 24], "entri": [0, 5, 8, 11, 12, 19, 24, 25], "entropi": [1, 3, 7, 10, 13, 24], "enumer": [0, 1, 2, 3, 4, 6, 8, 24, 25], "env": 21, "environ": [2, 18, 24], "environemnt": 15, "eo": [0, 6], "eol": 0, "eosfit": 0, "epoch": [0, 1, 3, 4, 12, 13, 24], "epsilon": [0, 5, 6, 7, 13, 24, 25], "epsilon_": [0, 24], "epsilon_0": [0, 24], "epsilon_1": [0, 24], "epsilon_2": [0, 24], "epsilon_i": [0, 24, 25], "eq": [3, 13, 14, 19, 21], "eqnarrai": [3, 5, 6], "equal": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 13, 14, 16, 19, 21, 24, 25], "equat": [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 17, 19, 21, 24], "equilibrium": [2, 12], "equiv": [3, 13, 19, 21], "equival": [0, 1, 5, 7, 8, 11, 13, 18, 19, 24, 25], "erf": 21, "eriador": 24, "err": [0, 10], "err_": 6, "err_sqr": 2, "errat": 13, "erron": 2, "error": [1, 2, 4, 5, 6, 7, 9, 11, 12, 13, 15, 16, 17, 18, 19, 21], "error_estimate_corr_tim": 21, "error_hidden": 1, "error_output": 1, "escap": 13, "especi": [1, 3, 9, 12, 13, 15], "essenti": [0, 5, 6, 9, 10, 12, 14, 15, 21, 25], "establish": [0, 6, 10, 11, 16], "estim": [0, 1, 5, 6, 7, 10, 11, 13, 18, 21, 24, 25], "estimated_mse_fold": 6, "estimated_mse_kfold": 6, "estimated_mse_sklearn": 6, "et": [0, 2, 4, 16, 17, 23, 24, 25], "eta": [0, 1, 3, 8, 12, 13, 24], "eta0": [8, 13], "eta_": 13, "eta_t": 13, "eta_v": [0, 1, 3, 24], "etc": [0, 1, 3, 5, 7, 8, 9, 11, 12, 13, 14, 18, 19, 21, 25], "ethic": 18, "euclidean": [0, 14, 25], "evalu": [0, 2, 3, 4, 5, 6, 9, 13, 15, 16, 17, 21, 24, 25], "evalut": 13, "even": [0, 1, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 24, 25], "evenli": 4, "event": [5, 7, 10, 21], "eventu": [0, 5, 6, 11, 12, 13, 22, 25], "everi": [0, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 13, 14, 15, 18, 21, 22, 24, 25], "everyth": [4, 12, 16], "everywher": [4, 13], "evolv": 0, "exact": [0, 5, 11, 12, 13, 19, 21, 24, 25], "exactli": [0, 3, 4, 6, 12, 18, 25], "exam": 24, "examin": 6, "exampl": [0, 5, 11, 12, 13, 15, 16, 18, 19, 21, 23], "exce": [1, 12, 13], "excel": [0, 1, 4, 5, 10, 24, 25], "except": [3, 4, 6, 8, 9, 19], "excess": [0, 24], "excit": 0, "exclud": [1, 6, 12, 25], "exclus": [0, 1, 3, 6, 21, 24], "execut": [2, 5, 13, 15, 25], "exemplifi": 13, "exercic": [22, 24], "exercis": [5, 18, 20, 22, 24], "exhaust": 6, "exhibit": [0, 5, 6, 8, 24, 25], "exist": [0, 1, 2, 3, 5, 6, 7, 8, 9, 13, 19, 24], "exit": [5, 19, 25], "exp": [0, 1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 16, 17, 21, 25], "exp_term": 1, "expand": [5, 7, 11, 13], "expans": [0, 3, 5, 8, 10, 12, 13, 24, 25], "expect": [0, 1, 5, 6, 7, 11, 12, 13, 15, 18, 24, 25], "expectation_value_of_h_wrt_p": 21, "expens": [6, 10, 13, 16], "experi": [0, 1, 6, 8, 13, 15, 18, 24, 25], "experiment": [0, 4, 6, 9, 21, 24], "expert": [1, 9], "explain": [0, 6, 9, 10, 11, 13, 16, 24], "explained_variance_ratio_": 11, "explanatori": [0, 24], "explicit": [0, 3, 6, 13, 19, 24, 25], "explicitli": [0, 4], "explod": 1, "exploit": [0, 3, 12, 13, 24], "explor": [1, 4, 6, 8, 13, 18, 24], "expon": 1, "exponenti": [0, 1, 5, 6, 10, 13, 21, 24], "export": [9, 15, 16], "export_graphviz": 9, "export_text": 9, "exporttext": 9, "expos": 18, "express": [0, 2, 3, 5, 6, 7, 10, 12, 13, 19, 21, 24], "exptmean": 21, "exptvari": 21, "extend": [0, 2, 7, 11, 13, 18, 24], "extens": [0, 12, 15, 18, 24], "extent": [0, 1, 6, 23], "extern": [3, 6, 9], "extra": [1, 3, 5, 15, 22, 24, 25], "extract": [0, 3, 5, 6, 7, 8, 11, 13, 16, 17, 19, 24, 25], "extrapol": [0, 24], "extrem": [0, 1, 4, 5, 6, 7, 8, 9, 13, 15, 16, 19, 25], "extremum": 13, "extrins": 11, "ey": [0, 5, 6, 13, 14, 19, 24, 25], "f": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25], "f1": 13, "f11": [0, 24], "f12": [0, 24], "f13": [0, 24], "f1_grad": 13, "f1d": 13, "f2": 13, "f2_grad_x1": 13, "f2_grad_x1_analyt": 13, "f2_grad_x2": 13, "f2_grad_x2_analyt": 13, "f3": 13, "f3_grad": 13, "f3_grad_analyt": 13, "f4": 13, "f4_grad": 13, "f4_grad_analyt": 13, "f5": 13, "f5_grad": 13, "f6": 13, "f6_for": 13, "f6_for_grad": 13, "f6_grad_analyt": 13, "f6_while": 13, "f6_while_grad": 13, "f7": 13, "f7_grad": 13, "f7_grad_analyt": 13, "f8": 13, "f8_grad": 13, "f9": [0, 13, 24], "f9_altern": 13, "f9_alternative_grad": 13, "f9_grad": 13, "f_": 10, "f_0": [3, 10], "f_1": [10, 13], "f_2": [12, 13], "f_3": 12, "f_d": 21, "f_grad": 13, "f_grad_analyt": 13, "f_i": [0, 6, 12, 16], "f_m": [3, 10], "f_n": 3, "f_vec": 2, "face": [13, 24], "facecolor": [6, 8, 21], "facil": [0, 18], "facilit": 12, "fact": [0, 1, 3, 5, 9, 11, 12, 13, 24, 25], "factor": [0, 1, 3, 5, 6, 9, 10, 11, 13, 19, 21, 24, 25], "factori": 13, "fade": 6, "fafab0": [9, 10], "fail": [0, 6, 13, 22, 24], "failur": 7, "fairli": [1, 2, 21], "faisal": [16, 25], "fake": 4, "fake_loss": 4, "fake_output": 4, "fall": [8, 9, 20], "fals": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 14, 16, 17, 19, 24, 25], "famili": [0, 7, 8, 21, 25], "familiar": [0, 3, 5, 6, 8, 15, 18, 19, 21, 24], "famou": [6, 12], "far": [0, 3, 4, 5, 6, 8, 11, 12, 13, 14, 16, 24, 25], "fashion": [0, 9, 10, 24], "fast": [1, 3, 6, 10, 12, 13, 18, 21, 24], "faster": [1, 11, 13], "fastest": [13, 19], "favor": 7, "favorit": 21, "fc": 3, "featur": [0, 1, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 17, 18, 21, 24], "feature_nam": [1, 7, 9], "feautur": 9, "fed": 1, "feed": [0, 2, 3, 11, 18, 24], "feed_forward": 1, "feed_forward_out": 1, "feed_forward_train": 1, "feedback": [4, 24], "feeddorward": 4, "feedforward": [1, 4, 12], "feel": [0, 5, 6, 11, 13, 15, 16, 18, 22, 24], "feet": [], "fetch": [6, 15], "few": [1, 3, 4, 5, 9, 17, 21, 24], "fewer": [0, 9, 11, 24], "ffnn": [1, 12], "field": [0, 3, 6, 12, 18], "fifth": [0, 6, 24], "fig": [0, 1, 2, 3, 4, 6, 7, 12, 13, 14, 24], "fig_id": [0, 6, 7, 9, 24], "figaxi": 21, "figsiz": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 24], "figur": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 18, 24, 25], "figure_id": [0, 6, 7, 9, 24], "figurefil": [0, 6, 7, 9, 24], "file": [0, 4, 5, 6, 7, 9, 15, 24], "file_prefix": 4, "filenam": 24, "fill": [5, 9, 25], "filter": [3, 4], "final": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 20, 21, 22, 24], "financ": 0, "find": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 21, 24, 25], "fine": [0, 14], "finish": 2, "finit": [3, 5, 6, 12, 13, 17, 21, 25], "finnicki": 15, "first": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 19, 21, 22, 23, 25], "firsteigvector": 11, "fit": [1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 17, 21, 25], "fit_beta": 25, "fit_intercept": [0, 5, 6, 16, 25], "fit_mod": 9, "fit_theta": 6, "fit_transform": [0, 6, 8, 9, 11, 15], "fiti": [0, 24], "five": [0, 9, 24, 25], "fix": [0, 3, 4, 6, 10, 11, 12, 13, 24], "flag": 4, "flat": [12, 13], "flatten": [1, 3, 4, 5, 19], "flexibl": [1, 6, 8, 10, 12, 24], "flip": [22, 24], "float": [0, 3, 4, 5, 9, 11, 13, 14, 19, 24, 25], "float32": [4, 9], "float64": [4, 19, 24], "flop": [5, 19, 25], "flow": [1, 4, 12], "fluctuat": 5, "fly": 11, "fm": 0, "fmax": 3, "fmesh": 13, "fn": 7, "focu": [0, 3, 4, 5, 6, 15, 18, 23, 24, 25], "focus": [1, 6, 7, 19, 25], "fold": [6, 9], "folder": [0, 4, 6, 15, 24], "follow": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 22, 23, 24, 25], "font": [7, 21, 24], "fontdict": 21, "fontsiz": [1, 6, 8, 9, 10, 21], "fontweight": 1, "footprint": 3, "foral": [8, 25], "forc": [0, 5, 6, 10, 11, 25], "forcast": 4, "forecast": [4, 12], "forest": [0, 1, 9, 18, 24], "forget": 11, "form": [0, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25], "formal": [3, 4, 14, 21], "format": [0, 1, 3, 4, 6, 7, 8, 9, 10, 11, 18, 21, 23], "format_data": 4, "formatstrformatt": [6, 13], "formul": [4, 6, 11, 14], "formula": [3, 13, 21], "forth": [4, 12], "fortran": [0, 18, 19, 24], "fortran2003": [18, 24], "fortran90": 21, "fortun": [0, 11, 25], "forward": [0, 3, 6, 18, 19, 24], "found": [1, 2, 4, 5, 6, 12, 13, 24, 25], "foundat": [18, 24], "four": [4, 5, 6, 8, 12, 19, 20, 22, 24], "fourier": [0, 24], "fourierdef1": 3, "fourierdef2": 3, "fourierseriessign": 3, "fourth": [12, 24, 25], "fp": 7, "frac": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 24, 25], "fraction": 9, "frame": 7, "framework": [1, 8, 10, 21], "frank": [5, 11], "frankefunct": [5, 6, 11], "fredli": [22, 24], "free": [0, 6, 11, 13, 15, 16, 18, 19, 21, 22, 23, 24], "freecodecamp": 18, "freedom": 5, "freeli": 0, "freez": 15, "frequenc": [3, 6, 7, 21], "frequent": [0, 8, 9, 13], "frequentist": 18, "fresh": 10, "fridai": [15, 22, 24], "friedman": [6, 23, 24], "friendli": 4, "frodo": 24, "frog": 3, "from": [0, 1, 2, 3, 4, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23], "from_cod": 9, "from_logit": [3, 4], "from_tensor_slic": 4, "front": [0, 4, 5, 24, 25], "frustrat": 15, "fulfil": [2, 5, 12, 25], "full": [1, 3, 5, 7, 9, 10, 13, 21, 24, 25], "full_matric": [5, 25], "fulli": [3, 6, 12, 21], "fun": [18, 24], "func": 2, "function": [2, 3, 4, 5, 9, 14, 15, 16, 17, 18, 19], "functionali": 11, "fundament": [0, 6, 18, 24], "funtion": 2, "further": [2, 7, 9, 24], "furthermor": [0, 3, 5, 6, 7, 11, 12, 13, 18, 24, 25], "futur": [0, 4, 8, 9, 24], "fy": [15, 20, 22, 23, 24], "fys5419": [23, 24], "fys5429": [23, 24], "f\u00f8470": [22, 24], "g": [0, 1, 2, 3, 4, 6, 8, 9, 10, 11, 13, 15, 21, 24, 25], "g0": 2, "g_": [2, 9, 10], "g_0": 2, "g_1": [2, 10], "g_2": [2, 10], "g_analyt": 2, "g_dnn_ag": 2, "g_euler": 2, "g_i": 2, "g_m": [3, 10], "g_n": 3, "g_re": 2, "g_t": 2, "g_t_d2t": 2, "g_t_d2x": 2, "g_t_dt": 2, "g_t_hessian": 2, "g_t_hessian_func": 2, "g_t_jacobian": 2, "g_t_jacobian_func": 2, "g_trial": 2, "g_trial_deep": 2, "g_vec": 2, "gain": [1, 5, 7, 9, 10, 13, 25], "galleri": [0, 24], "game": 4, "gamge": 24, "gamma": [0, 2, 8, 9, 10, 11, 13, 24], "gamma1": 8, "gamma2": 8, "gamma_": [0, 24], "gamma_0": 10, "gamma_1": 10, "gamma_1x": 10, "gamma_i": [0, 8, 21, 24], "gamma_j": 13, "gamma_k": 13, "gamma_m": 10, "gamma_x": [0, 24], "gap": 8, "gate": [4, 12], "gather": [0, 1, 12, 25], "gaug": 12, "gaussbacksub": 19, "gaussian": [4, 5, 6, 8, 14, 21, 24], "gaussian_point": 14, "gaussian_rbf": 8, "gave": 13, "gavra": 24, "gbc": 24, "gca": [2, 6, 8, 13], "gd": 1, "gd_clf": 10, "gdclassiffiercgain": 10, "gdclassiffierconfus": 10, "gdclassiffierroc": 10, "gdm": 13, "gdregress": 10, "ge": [1, 5, 7, 21, 25], "gen_loss": 4, "gen_tap": 4, "gender": [0, 24], "genener": 4, "gener": [0, 1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 19, 21, 23, 25], "generaliz": 16, "generallay": 12, "generate_and_save_imag": 4, "generate_imag": 4, "generate_latent_point": 4, "generate_simple_clustering_dataset": 14, "generated_imag": 4, "generator_loss": 4, "generator_loss_list": 4, "generator_model": 4, "generator_optim": 4, "genom": 18, "geodes": 11, "geometr": [0, 13, 24], "geometri": 5, "georg": 23, "geotif": 6, "geq": [2, 5, 8, 9, 13, 25], "geron": [0, 23, 24], "get": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 15, 18, 19, 21, 22, 24, 25], "get_dummi": 9, "get_paramet": 2, "get_split": 9, "get_yaxi": 8, "get_yticklabel": 6, "gh": 15, "gibb": [18, 24], "gif": 4, "gini": 10, "gini_index": 9, "ginvers": 13, "git": [0, 15, 18, 24], "giter": 13, "github": [0, 18, 20, 22, 23, 24, 25], "gitignor": 15, "gitlab": [0, 15, 18, 24], "give": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, 18, 21, 24, 25], "given": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 19, 21, 24, 25], "global": [6, 7, 13], "glorot": 1, "gnew": 13, "go": [0, 1, 3, 5, 6, 8, 9, 11, 12, 13, 15, 16, 24, 25], "goal": [0, 7, 9, 24], "goe": [0, 1, 2, 5, 6, 13, 14, 15, 19, 24, 25], "golden": 13, "gone": [5, 25], "gong": 1, "good": [1, 3, 4, 5, 6, 9, 10, 11, 13, 15, 18, 21, 23, 25], "goodfellow": [4, 23, 24, 25], "googl": [1, 4, 18, 24], "got": [1, 6], "gotten": 24, "gov": 6, "govern": 24, "gp": 23, "gpu": [1, 13, 18, 24], "grad": [2, 13], "grad_analyt": 13, "grade": 20, "gradient": [0, 3, 4, 7, 8, 9, 12, 18, 24, 25], "gradientboostingclassifi": 10, "gradientboostingregressor": 10, "gradients_of_discrimin": 4, "gradients_of_gener": 4, "gradienttap": 4, "gradual": [1, 14], "grai": [4, 6], "graph": [1, 9, 11, 12, 13, 16], "graph_from_dot_data": 9, "graphic": [0, 1, 9, 15, 24], "grasp": 0, "gray_r": [1, 3], "grayscal": 3, "great": [5, 13, 15], "greater": [1, 7, 21, 25], "greatli": 13, "greedi": 9, "green": [0, 3, 9, 21], "grei": 4, "grid": [1, 3, 6, 7, 8, 12, 21, 25], "grossli": 13, "ground": [0, 24], "group": [0, 6, 7, 9, 14, 15, 18, 20, 22, 24], "groupbi": [0, 24], "grow": [1, 3, 9, 10], "growth": [0, 24], "gru": 4, "guarante": [0, 4, 13, 21, 24, 25], "guess": [1, 4, 10, 13, 14], "guestrin": 10, "gui": 15, "guid": 1, "h": [0, 1, 5, 6, 8, 13, 15, 21, 22, 23, 24, 25], "h1": 2, "h_": [0, 13, 24], "h_1": [2, 13], "h_2": [2, 13], "h_m": 10, "ha": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25], "haanen": [22, 24], "habit": [0, 25], "had": [0, 1, 6, 7, 13, 24], "hadamard": [1, 12, 13], "half": [1, 8, 9], "halv": 10, "hand": [0, 1, 2, 3, 5, 11, 12, 13, 18, 19, 21, 22, 23, 24, 25], "handi": 3, "handl": [0, 1, 2, 5, 9, 11, 15, 18, 25], "handle_unknown": 9, "handsid": 12, "handwrit": 12, "handwritten": [1, 5], "happen": [1, 2, 3, 4, 5, 6, 10, 13, 21, 25], "hard": [1, 7, 8, 10, 13], "hardcopi": [18, 24], "harder": [0, 1, 25], "harmon": 3, "hasn": [], "hassl": [0, 18, 24], "hast": [18, 24], "hasti": [0, 6, 16, 17, 23, 24, 25], "hat": [0, 1, 5, 6, 7, 9, 10, 11, 12, 13, 16, 17, 19, 25], "have": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 25], "haven": 1, "he": 7, "head": [4, 10, 21], "header": [0, 24], "heads_proba": 10, "health": [0, 25], "hear": [0, 13, 24], "heart": [0, 7, 24], "heatmap": [0, 1, 3, 7, 17, 24], "heavili": 0, "heavisid": 1, "height": [1, 3, 6, 25], "held": 13, "help": [0, 1, 4, 12, 13, 15, 16, 24], "helper": [4, 14], "henc": [0, 5, 6, 8, 9, 10, 12, 13, 24, 25], "henrik": [22, 24], "her": 7, "here": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18, 19, 21, 24, 25], "hereaft": [0, 8, 12, 24], "hermitian": 19, "hessenberg": 19, "hessian": [0, 2, 5, 13], "heterogen": [9, 10], "hi": 7, "hidden": [1, 3, 4, 12], "hidden_bia": 1, "hidden_bias_gradi": 1, "hidden_layer_s": [0, 1, 24], "hidden_neuron": 4, "hidden_weight": 1, "hidden_weights_gradi": 1, "hierarch": [5, 25], "high": [0, 1, 2, 3, 4, 5, 6, 9, 10, 11, 13, 14, 18, 19, 24, 25], "higher": [0, 1, 3, 5, 6, 8, 13, 24, 25], "highest": [1, 2], "highli": [0, 3, 4, 10, 18, 19, 23, 24, 25], "highwai": [], "hing": 8, "hint": [13, 15, 16, 25], "hip": 18, "hire": 0, "hist": [4, 6, 7, 21], "histogram": [6, 7, 21], "histor": [7, 11], "histori": [3, 4, 12, 15], "hitherto": 5, "hjorth": [22, 24, 25], "hobbi": 21, "hoc": [5, 25], "hoff": 23, "hold": [1, 3, 6, 13, 14], "holder": [0, 24], "home": [], "homepag": 24, "homework": [6, 13], "homogen": [1, 3, 9, 10, 13], "honchar": 2, "hopefulli": [0, 11, 15, 21, 24], "horizont": 11, "horlyk": [22, 24], "hors": [3, 7, 24], "hot": [1, 9], "hour": [1, 18, 20, 21, 22, 24], "how": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 24, 25], "howev": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 24, 25], "hspace": [0, 4, 8, 10, 21, 24], "hstack": 1, "htf": 24, "html": [0, 16, 18, 20, 22, 23, 24, 25], "http": [0, 3, 4, 6, 13, 15, 16, 18, 19, 20, 22, 23, 24, 25], "huang": [0, 24], "huber": [0, 24], "huge": [1, 3, 4, 18], "human": [0, 1, 3, 6, 9, 12, 25], "humid": 9, "hundr": 1, "hungri": 1, "hybrid": 20, "hydrogen": [0, 24], "hyperbol": [1, 4, 12], "hyperparam": 8, "hyperparamet": [3, 4, 5, 6, 9, 13, 25], "hyperplan": 11, "h\u00f8rlyk": [22, 24], "i": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25], "i0": [0, 24], "i1": [0, 6, 8, 12, 24, 25], "i2": [0, 8, 12, 24], "i3": [0, 12, 24], "i5": [0, 24], "i_": 13, "i_1": [5, 6], "i_2": [5, 6], "ian": 23, "ic": 1, "id": [7, 13], "ida": [22, 24], "idea": [0, 1, 2, 3, 4, 6, 9, 10, 12, 13, 19, 25], "ideal": [0, 2, 6, 8, 13, 21, 24], "idem": 6, "ident": [5, 6, 12, 13, 17, 19, 25], "identifi": [0, 1, 7, 9, 11, 12, 13, 14, 24, 25], "ieor": 21, "ifi": 23, "ifs": [18, 24], "ignor": [0, 1, 3, 9, 15, 25], "ii": [19, 21], "iii": [19, 24], "ij": [0, 1, 3, 6, 8, 12, 14, 16, 19, 21, 24, 25], "ik": [0, 19, 24, 25], "illustr": [5, 7, 10, 12, 13, 14, 18, 24], "im": 6, "imag": [1, 3, 4, 6, 9, 11, 12, 14, 23, 24], "image_at_epoch_": 4, "image_batch": 4, "image_height": 3, "image_path": [0, 6, 7, 9, 24], "image_width": 3, "imageio": 6, "images_from_seed_imag": 4, "imagin": 1, "immedi": [0, 3, 4, 6, 18, 24], "implement": [0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 21, 24, 25], "impli": [3, 5, 6, 7, 13, 19, 25], "implicit": 3, "implicitli": [11, 21], "import": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 21], "importantli": 3, "impos": [0, 6, 11, 12, 24], "imposs": [0, 5, 24, 25], "impress": [0, 12, 24], "improv": [0, 4, 5, 9, 10, 11, 13, 15, 25], "impur": 9, "imread": 6, "imshow": [1, 3, 4, 6], "in3050": [23, 24], "in3310": 24, "in4080": [23, 24], "in4300": [23, 24], "in4310": 23, "in5400": 3, "in5550": 23, "in_out_neuron": 4, "inaccur": 13, "inact": 12, "inadequ": [0, 24], "inch": [6, 25], "includ": [0, 1, 2, 3, 4, 5, 6, 7, 11, 12, 15, 16, 17, 18, 21, 22, 23, 24, 25], "include_bia": [6, 9], "incom": [12, 16], "incorrect": 1, "incoveni": 8, "increas": [0, 1, 3, 4, 5, 6, 9, 12, 13, 21, 24, 25], "increasingli": 21, "ind": 6, "inde": [0, 2, 4, 5, 6, 13, 24, 25], "indefinit": 4, "independ": [0, 5, 6, 7, 8, 12, 13, 21, 24, 25], "index": [0, 1, 3, 4, 10, 14, 18, 19, 21, 23, 24], "index_col": [0, 24], "indic": [0, 1, 3, 4, 5, 6, 9, 10, 11, 13, 16, 24, 25], "indispens": 6, "individu": [1, 6, 7, 10, 12, 21, 24, 25], "indu": [], "indx": 19, "indx1": 2, "indx2": 2, "indx3": 2, "ineffici": [3, 13], "inequ": [8, 13], "inertia": 13, "inf1000": [18, 24], "inf1100": [18, 24], "inf1100l": [18, 24], "inf1110": [18, 24], "inf3000": 24, "infeas": 9, "infer": [0, 1, 4, 6, 23, 24], "inferenc": 1, "infil": [0, 6, 7, 9, 24], "infin": [5, 6, 7, 11, 25], "infinit": 3, "infinitesim": 21, "influenc": [6, 10], "influenti": 1, "info": 24, "inform": [0, 1, 3, 4, 6, 9, 11, 12, 13, 14, 19, 23, 24], "inforom": 15, "infti": [3, 6, 13, 21], "ingeni": 13, "ingredi": [0, 9, 24], "inher": 6, "inherit": [19, 24], "initi": [0, 1, 2, 6, 10, 13, 14, 19, 21, 24], "inject": 14, "inlin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25], "inner": [0, 13, 25], "inp": 4, "inplac": 13, "input": [0, 1, 3, 4, 5, 6, 7, 8, 12, 13, 14, 16, 21, 24, 25], "input_dim": 1, "input_shap": [3, 4], "inputs": 1, "inputs_shuffl": [0, 1, 25], "insert": [3, 5, 6, 8, 10, 21, 25], "insid": [4, 7], "insight": [0, 1, 5, 18, 24, 25], "insist": [6, 13, 25], "inspir": [0, 1, 12, 24], "instabl": 2, "instal": [0, 1, 5, 6, 9, 15], "instanc": [0, 1, 2, 4, 6, 9, 11, 13, 16, 24, 25], "instanti": 10, "instead": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 13, 14, 17, 19, 21, 24, 25], "institut": 1, "instruct": [0, 1, 15], "int": [0, 1, 2, 3, 4, 5, 6, 11, 13, 14, 19, 21, 25], "int32": 10, "int_": [3, 6, 21], "int_0": 21, "int_a": 21, "intak": [0, 25], "integ": [1, 2, 13, 14, 19, 21, 24], "integer_vector": 1, "integr": [3, 6, 21, 24], "intellig": [0, 14, 23, 24], "intend": 10, "intens": 1, "intention": 14, "interact": [0, 6, 9, 12, 18, 24], "intercept": [0, 6, 8, 11, 13, 16, 17, 24, 25], "intercept_": [0, 6, 8, 9, 13, 24, 25], "interchang": [5, 12, 19], "interconnect": 1, "interest": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 18, 21, 24, 25], "interfac": [0, 1, 15, 19, 25], "interior": [0, 9, 24], "intermedi": [19, 25], "intern": [1, 10, 12], "interpol": [1, 3, 4, 6, 12], "interpr": [5, 25], "interpret": [0, 1, 6, 9, 10, 12, 13, 15, 16, 19, 21], "interv": [0, 3, 5, 6, 7, 13, 21, 24, 25], "intial": 13, "intract": [0, 4, 25], "intrins": [3, 11, 19, 21, 24], "intro": [18, 23, 24], "introduc": [0, 1, 5, 6, 8, 10, 12, 19, 21, 24], "introduct": [1, 2, 4, 13, 23, 25], "introductori": [0, 4, 19, 23, 24, 25], "intuit": [0, 5, 6, 8, 12, 13, 24], "inv": [0, 5, 13, 17, 24, 25], "invalu": [0, 13, 18, 24], "invari": 1, "invd": 5, "inver": 8, "invers": [0, 3, 6, 13, 24, 25], "inverse_transform": 8, "invert": [0, 5, 7, 10, 13, 16, 24], "invh": 13, "invok": 8, "involv": [0, 2, 6, 7, 11, 12, 24, 25], "io": [0, 18, 20, 22, 23, 24, 25], "ip": [0, 8, 21, 24], "ipca": 11, "ipynb": [18, 24], "ipython": [0, 5, 7, 9, 11, 14, 18, 24, 25], "iq": 6, "iri": [8, 9], "irreduc": 6, "irrelev": [5, 25], "irrespect": [0, 24], "isn": 5, "isnul": [], "isomap": 11, "issu": [1, 9, 15, 19], "it_arrai": 13, "item": [0, 13, 24], "items": [19, 24], "iter": [1, 2, 4, 6, 8, 13, 14, 21], "its": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 24], "itself": [5, 6, 12, 21, 24, 25], "j": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 13, 14, 15, 16, 19, 21, 23, 24, 25], "j1": 19, "j_": 6, "j_lasso_sk": 6, "j_ridge_sk": 6, "j_sk": 6, "jackknif": [6, 18, 24], "jacobian": [2, 13], "jason": 4, "jax": [18, 24], "jensen": [22, 24, 25], "jerom": 23, "ji": [12, 19], "jit": 13, "jj": [0, 5, 6, 24], "jk": [0, 1, 6, 12, 19, 24], "jl": [0, 24], "jm": 19, "jnp": 13, "job": [2, 8, 10, 15], "join": [0, 4, 6, 7, 9, 24], "joint": [4, 5], "judg": 13, "judgement": 6, "julia": [18, 19], "jump": 21, "junk": 4, "jupit": 24, "jupyt": [0, 15, 16, 18, 23, 24], "just": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 21, 24, 25], "justif": 0, "justifi": [3, 10], "k": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 22, 24, 25], "k0": 7, "k1": 7, "kaggl": 6, "kappa_d": 21, "karl": [22, 24], "karush": 8, "katrin": [22, 24], "keep": [0, 1, 4, 5, 6, 11, 13, 14, 15, 19, 24, 25], "keepdim": [1, 6, 10, 19], "kei": [1, 3, 6, 12], "kept": [4, 6, 14], "kera": [0, 4, 18, 24], "kernel": [0, 1, 3, 18, 24, 25], "kernel_regular": [1, 3], "kernel_s": 4, "kernelpca": 11, "kev": [0, 24], "kevin": [23, 24], "keyword": [19, 24], "kfold": 6, "kg": 1, "ki": 19, "kick": [1, 13], "kiener": 2, "kilomet": [6, 25], "kind": [0, 2, 3, 4, 8, 12, 13, 14, 24, 25], "kj": [6, 12, 19, 25], "kjm": [18, 24], "kkt": 8, "kl": 21, "km": [12, 24], "kmean": 14, "kmeanspoint": 14, "kn_k": 14, "know": [0, 1, 2, 5, 6, 8, 13, 15, 16, 17, 18, 24, 25], "knowledg": [0, 18, 24], "known": [1, 3, 4, 5, 6, 7, 8, 9, 12, 19, 21, 23, 25], "kondev": [0, 24], "kp": 21, "kpca": 11, "kroneck": 14, "kuhn": 8, "kvalsund": [22, 24], "kwown": [0, 24], "l": [0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 19, 21, 24], "l0": 7, "l1": [0, 1, 3, 7, 24], "l1_l2": [1, 3], "l1regl": 5, "l2": [1, 3], "l_": 19, "l_1": 7, "l_2": [7, 13], "l_j": 12, "la": 13, "la_i": 12, "la_k": 12, "lab": [18, 24], "label": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 18, 19, 21, 24, 25], "labelencod": [7, 10], "labels": [6, 8, 9], "labels_shuffl": [0, 1, 25], "laboratori": 20, "lack": [0, 24], "lagari": 2, "lagrang": [8, 11], "lambda": [0, 1, 2, 3, 5, 6, 7, 8, 10, 12, 13, 17, 21, 24, 25], "lambda_": 11, "lambda_0": 11, "lambda_1": [5, 8, 11, 25], "lambda_2": [8, 11], "lambda_i": [8, 11], "lambda_iy_i": 8, "lambda_jy_iy_j": 8, "lambda_k": 8, "lambda_n": [5, 8, 25], "lamda": 1, "land": 8, "landmark": 8, "landscap": 13, "langl": [0, 6, 11, 21, 24, 25], "languag": [0, 1, 4, 8, 18, 19, 23, 24], "lapack": [19, 24], "laplac": 5, "laptop": [15, 18], "larg": [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 18, 19, 21, 23, 24, 25], "larger": [0, 3, 5, 6, 8, 10, 11, 13, 17, 21, 24, 25], "largest": [4, 8, 11], "lasso": [0, 7, 18, 24], "lasso_sk": 6, "last": [0, 1, 3, 4, 5, 6, 7, 8, 12, 16, 17, 19, 21, 22, 24], "latent": 4, "latent_dim": 4, "latent_point": 4, "latent_space_value_rang": 4, "later": [0, 1, 4, 7, 8, 12, 13, 14, 15, 18, 24], "latest": [4, 15, 18], "latest_checkpoint": 4, "latex": 24, "latter": [0, 3, 6, 7, 8, 11, 13, 19, 21, 24, 25], "lattic": 12, "law": 0, "layer": [0, 4, 13, 24], "lbfg": [7, 9, 10], "lcc": [5, 6], "lda": 11, "ldot": [0, 6, 11, 24], "le": [5, 7, 10, 13, 17, 21, 25], "lead": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 19, 21, 24, 25], "leaf": 9, "leaki": 1, "leakyrelu": 4, "lear": 13, "learn": [3, 4, 5, 6, 7, 8, 9, 10, 12, 19, 22, 23], "learnabl": 3, "learner": 10, "learnig": 24, "learning_r": [8, 10], "learning_rate_init": [0, 1, 24], "learning_schedul": 13, "least": [0, 7, 8, 10, 11, 17, 18, 19, 21], "leat": 13, "leav": [0, 1, 3, 5, 6, 9, 11, 24], "lectur": [0, 1, 5, 10, 11, 12, 13, 18, 19, 20, 22, 23, 25], "lecturenot": [0, 18, 23, 24], "left": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 24, 25], "leftarrow": [8, 12], "legend": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 15, 24, 25], "leinonen": 24, "len": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 16, 17, 19, 24, 25], "length": [0, 1, 3, 4, 8, 9, 13, 16, 18, 24, 25], "length_of_sequ": 4, "leq": [0, 5, 7, 8, 13, 14, 21, 24, 25], "less": [0, 1, 3, 4, 5, 6, 8, 9, 13, 18, 21, 24, 25], "lessen": 1, "let": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 21, 24, 25], "letter": [0, 16, 19, 21, 24, 25], "level": [0, 1, 5, 6, 9, 18, 19, 20, 22, 24], "li": [8, 11], "lib": [], "liblinear": 10, "librari": [0, 1, 2, 3, 4, 5, 6, 9, 10, 11, 19, 21, 23, 25], "licens": [0, 1, 18, 24], "lie": [0, 6, 11, 21, 24, 25], "life": [0, 1, 8, 12, 24], "lifetim": 13, "like": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25], "likelihood": [0, 1, 5, 9, 24, 25], "lim_": 21, "limit": [0, 5, 6, 8, 12, 19, 24, 25], "lin_clf": 8, "lin_model": [], "lin_reg": 9, "linalg": [0, 2, 5, 6, 8, 11, 13, 17, 19, 21, 24, 25], "line": [0, 3, 6, 8, 11, 13, 15, 16, 24], "line1": 8, "line2": 8, "line3": 8, "line_model": 15, "line_ms": 15, "line_predict": 15, "linear": [1, 3, 5, 6, 7, 9, 10, 11, 12, 16, 17, 18, 21], "linear_model": [0, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, 24, 25], "linear_regress": 6, "linearli": [5, 25], "linearloc": [6, 13], "linearregress": [0, 6, 7, 9, 15, 16, 24, 25], "linearsvc": 8, "liner": [1, 3], "linerar": 10, "linewidth": [0, 2, 4, 6, 8, 9, 10], "link": [0, 4, 9, 12, 15, 18, 20, 22, 24], "linlag": 5, "linpack": [19, 24], "linreg": [0, 24], "linspac": [0, 2, 3, 4, 6, 8, 9, 10, 13, 16, 17, 19, 21, 24, 25], "linu": 4, "linux": [0, 1, 18, 24], "liquid": [0, 24], "list": [1, 2, 3, 4, 9, 15, 18, 24], "listedcolormap": [9, 10], "literatur": [1, 7, 14, 23], "littl": [1, 3, 9, 12], "live": [8, 16], "ll": [0, 21, 24, 25], "lle": [0, 25], "lloyd": [4, 14], "lmb": [0, 2, 5, 6, 25], "lmbd": [0, 1, 3, 24], "lmbd_val": [0, 1, 3, 24], "lmbda": 13, "ln": [1, 13], "load": [1, 4, 6, 7, 9, 10], "load_boston": [], "load_breast_canc": [1, 7, 9, 10, 11], "load_data": [3, 4], "load_digit": [1, 3], "load_iri": [8, 9], "loc": [3, 6, 7, 8, 9, 10, 24], "local": [0, 1, 3, 7, 12, 13, 15, 25], "locat": [2, 3, 8, 15], "log": [0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 13, 15, 19, 24], "log10": [0, 5, 6, 25], "log_": [0, 24], "log_clf": 10, "logarithm": [0, 5, 7, 17, 19, 24], "logic": [0, 1, 9, 24], "login": 15, "logist": [0, 1, 2, 8, 9, 10, 11, 12, 13, 18, 25], "logisticregress": [7, 9, 10, 11], "logit": 7, "logreg": [7, 9, 10, 11], "logspac": [0, 1, 3, 5, 6, 24, 25], "long": [0, 1, 3, 4, 12, 13, 24], "longer": [2, 3, 8, 10, 14, 19, 21, 24], "loocv": 6, "look": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, 19, 21, 24, 25], "loop": [1, 4, 6, 10, 12, 14, 16, 17, 18, 19, 24], "lose": 1, "loss": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 13, 19, 24], "loss_fil": 4, "lossfil": 4, "lost": 4, "lot": [1, 4, 6, 16], "low": [0, 6, 9, 10, 11, 24, 25], "lower": [0, 1, 3, 6, 9, 10, 16, 19, 25], "lowercas": [19, 24], "lowest": [9, 13, 21], "lr": [1, 3, 4, 10], "lstat": [], "lstm": 4, "lstm_2layer": 4, "lstsq": [0, 24, 25], "lt": 6, "lu": [0, 5, 24, 25], "lubksb": 19, "luckili": 2, "ludcmp": 19, "lux": 19, "lvert": 1, "lw": [0, 24], "m": [0, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 13, 15, 19, 21, 22, 23, 24, 25], "m_": [9, 12], "m_1": 14, "m_h": [0, 24], "m_k": 14, "m_l": 12, "m_n": [0, 24], "m_p": [0, 24], "m_t": 13, "ma": 11, "machin": [1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 15, 16, 19, 23, 25], "machinelearn": [0, 6, 16, 18, 20, 22, 23, 24, 25], "mackai": 23, "made": [0, 1, 3, 4, 5, 6, 7, 9, 11, 12, 24, 25], "mae": [0, 24], "magic": 4, "magnitud": [1, 6, 7, 13, 25], "mai": [0, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 13, 18, 19, 21, 24, 25], "mail": [20, 22], "main": [0, 1, 3, 4, 5, 6, 7, 9, 19, 23, 25], "mainli": [0, 5, 6, 7, 9, 24, 25], "maintain": 6, "major": [1, 6, 9, 10, 13, 19, 24], "make": [1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 15, 16, 18, 19, 21, 23, 24], "make_axes_locat": 6, "make_moon": [8, 9, 10], "make_pipelin": [0, 6, 10, 25], "makedir": [0, 6, 7, 9, 24], "malcondit": 19, "malign": [1, 7, 9], "mammographi": 5, "manag": [0, 2, 3, 15, 18, 24], "mandatori": [22, 24], "mani": [0, 1, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18, 19, 21, 23, 24, 25], "manifold": 11, "manner": 3, "manual": [6, 25], "map": [0, 1, 2, 6, 7, 8, 11, 12, 14, 21, 24], "marc": 25, "margin": [0, 5, 8], "marit": [0, 24], "mark": 24, "marker": [7, 19, 24], "markov": [18, 24], "marsaglia": 21, "mass": [0, 1, 5, 13, 25], "massag": [0, 24], "masses2016": [0, 24], "masses2016ol": [0, 24], "masses2016tre": 0, "masseval2016": [0, 24], "master": [20, 22], "mat": [18, 24], "mat1100": [18, 24], "mat1110": [18, 24], "mat1120": [18, 24], "match": [1, 4, 5, 13, 14, 15, 25], "materi": [4, 5, 7, 13, 15, 19, 20, 22], "math": [3, 7, 12, 13, 19, 21, 23, 24], "mathbb": [0, 4, 5, 6, 7, 8, 11, 12, 13, 14, 17, 19, 21, 24, 25], "mathbf": [0, 5, 6, 7, 8, 13, 19, 24, 25], "mathcal": [1, 5, 6, 7, 13], "matheemat": 3, "mathemat": [0, 6, 11, 12, 13, 18, 19, 21, 23, 24], "mathemati": 24, "mathrm": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 21, 24, 25], "matmul": [1, 2, 5], "matnat": 23, "matplotlib": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 24, 25], "matric": [0, 1, 3, 4, 6, 7, 8, 11, 13, 16, 17, 18, 25], "matrix": [0, 2, 3, 4, 6, 7, 8, 10, 13, 17, 21], "matshow": 1, "matter": [2, 3, 13, 25], "max": [0, 1, 2, 3, 4, 9, 10, 12, 13, 22, 24], "max_depth": [0, 9, 10], "max_diff": 2, "max_diff1": 2, "max_diff2": 2, "max_it": [0, 1, 8, 13, 24], "max_iter": 14, "max_leaf_nod": 10, "max_sampl": 10, "maxdegre": [0, 6, 10, 25], "maxdepth": 10, "maxim": [1, 4, 5, 7, 8, 11], "maximum": [0, 2, 3, 5, 7, 8, 9, 10, 13, 14, 24, 25], "maxpolydegre": [5, 6, 25], "maxpooling2d": 3, "mbox": [5, 6, 25], "mcculloch": 12, "md": 11, "mdoel": 4, "mean": [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 24], "mean_absolute_error": [0, 24], "mean_divisor": 14, "mean_i": 21, "mean_matrix": 14, "mean_squared_error": [0, 4, 6, 7, 10, 15, 24, 25], "mean_squared_log_error": [0, 24], "mean_vector": 14, "mean_x": 21, "meaning": [0, 4, 7, 24], "meansquarederror": [0, 24], "meant": [3, 7, 10, 13], "measur": [0, 1, 2, 5, 6, 9, 11, 12, 14, 16, 21, 24, 25], "mechan": [0, 4, 21, 24], "median": [0, 24, 25], "medicin": 12, "medium": [4, 8, 13], "medv": [], "meet": [0, 22], "mehta": [0, 24, 25], "memori": [3, 4, 11, 12, 13, 19], "mention": [0, 12, 13, 21, 24], "mere": 0, "meshgrid": [2, 5, 6, 8, 9, 10, 11], "mess": 15, "messag": [5, 13], "messi": 2, "met": [0, 3, 8, 25], "meteorolog": 9, "meter": [6, 25], "method": [0, 1, 2, 3, 4, 5, 7, 8, 11, 12, 14, 15, 16, 17, 18, 19, 21, 23, 25], "metion": 6, "metric": [0, 1, 3, 6, 7, 9, 10, 14, 15, 24, 25], "metropoli": [18, 24], "mev": [0, 21, 24], "mgd": 13, "mglearn": [18, 24], "mgrid": 13, "mhjensen": [], "mi": 10, "mia": [22, 24], "microsoft": 23, "mid": 1, "midel": 4, "midnight": 15, "midpoint": 9, "might": [0, 1, 2, 4, 6, 9, 13, 15, 17, 25], "migth": 17, "mild": 9, "millimet": [6, 25], "million": [0, 24, 25], "mimic": 12, "min": [0, 2, 5, 8, 9], "min_": [0, 2, 5, 14, 17, 24, 25], "min_samples_leaf": 9, "mind": [0, 6, 13, 15, 24, 25], "mindboard": 4, "mine": [18, 24], "mini": [1, 11, 12, 13], "minibatch": [1, 11, 13], "minibathc": 13, "miniforge3": [], "minim": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 25], "minima": [0, 1, 7, 13, 24], "minimum": [0, 1, 2, 6, 8, 9, 11, 13, 25], "minmaxscal": [0, 25], "minor": 21, "minst": 1, "minu": 7, "mirjalili": 24, "mirror": 9, "misc": 6, "misclassif": [8, 9, 10], "misclassifi": [8, 10], "miser": 0, "mismatch": 1, "miss": [7, 10], "mistak": 4, "mit": 23, "mix": [1, 2, 24], "mixtur": 13, "mk": [9, 19], "mkdir": [0, 6, 7, 9, 24], "ml": [0, 1, 10, 13, 19, 25], "mlab": 21, "mle": [5, 7], "mlp": 1, "mlpclassifi": 1, "mlpregressor": [0, 24], "mm": 19, "mml": 25, "mn": [12, 21], "mnist": [1, 11], "mod": 21, "mode": [20, 22, 24], "model": [2, 3, 5, 7, 8, 9, 10, 11, 13, 14, 16, 18, 21, 23, 25], "model_select": [0, 1, 3, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25], "moder": 10, "modern": [0, 6, 7, 18, 24], "modif": [2, 12, 13], "modifi": [0, 1, 3, 5, 7, 8, 10, 12, 13, 24, 25], "modul": [0, 16, 19, 24], "modular": 21, "modulo": 21, "moe": [11, 25], "moment": [5, 6, 13, 21], "mondai": [22, 24], "monitor": 13, "monoton": [5, 12, 21], "mont": [0, 6, 18, 21, 23, 24], "montli": 16, "moor": [5, 6], "more": [0, 1, 2, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 21], "moreov": [0, 3], "morten": [22, 24, 25], "mortenhj": 24, "most": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 21, 24, 25], "mostli": [1, 11], "motion": [0, 13], "motiv": [1, 4], "move": [0, 4, 5, 6, 7, 9, 12, 13, 14, 15, 16, 21, 25], "mpl": [7, 24], "mpl_toolkit": [2, 6, 13], "mplot3d": [2, 6, 13], "mplregressor": 1, "mse": [0, 4, 5, 6, 9, 10, 15, 16, 17, 24, 25], "mse_simpletre": 10, "mselassopredict": 5, "mselassotrain": 5, "mseownridgepredict": [6, 25], "msepredict": 5, "mseridgepredict": [0, 5, 6, 25], "msetrain": 5, "msle": [0, 24], "mt": [7, 12], "mu": [0, 6, 11, 13, 21, 24], "mu0": 21, "mu1": 21, "mu2": 21, "mu_": [6, 21, 25], "mu_i": [6, 25], "mu_n": 11, "mu_x": 21, "much": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 19, 21, 24, 25], "multi": [0, 1, 3, 7, 18, 24], "multiclass": [1, 7], "multidimension": [11, 12, 24], "multilay": 1, "multinomi": 7, "multipl": [2, 4, 5, 6, 7, 12, 13, 15, 21, 25], "multipli": [3, 5, 6, 11, 13, 19, 21, 25], "multiplum": 8, "multivari": [0, 2, 10, 11, 18, 21, 24], "multivariate_norm": [11, 14], "multpli": 16, "murphi": [11, 23, 24], "must": [1, 2, 5, 6, 8, 10, 12, 13, 14, 15, 21, 25], "mutat": 7, "mutual": [1, 3, 6, 13], "mx_": 21, "my": 24, "myenv": [], "myriad": [0, 18, 24], "mz1": 21, "mz2": 21, "m\u00f8svatn": 6, "n": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24, 25], "n1": 19, "n2": 19, "n_": [1, 2, 3, 8, 12, 21], "n_0": [12, 21], "n_boostrap": [6, 10], "n_bootstrap": 6, "n_categori": [1, 3], "n_cluster": 14, "n_compon": 11, "n_epoch": 13, "n_estim": 10, "n_examples_to_gener": 4, "n_featur": 1, "n_filter": 3, "n_hidden": 2, "n_hidden_neuron": [0, 1, 24], "n_i": 21, "n_input": [0, 1, 3, 25], "n_instanc": 9, "n_job": 10, "n_k": 14, "n_l": [12, 21], "n_layer": 1, "n_m": 9, "n_neuron": 1, "n_neurons_connect": 3, "n_neurons_layer1": 1, "n_neurons_layer2": 1, "n_point": 14, "n_sampl": [6, 8, 9, 10, 14], "n_split": 6, "n_step": 4, "n_t": 2, "n_x": 2, "nabla": [1, 13], "nabla_": [2, 13], "nabla_w": 13, "nag": 13, "naimi": [0, 24], "naiv": 7, "naive_kmean": 14, "name": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 18, 19, 21, 22, 24, 25], "narrow": 13, "nation": [1, 5], "nativ": [18, 24], "natur": [0, 1, 4, 8, 9, 12, 13, 21, 23, 24], "navier": 12, "navig": 15, "nb": 21, "nb_": 19, "nbconvert": 24, "nd": 14, "ndarrai": 6, "ne": [9, 10, 19, 21, 25], "nearest": [1, 3, 6, 11], "nearli": 13, "neat": 24, "neccesari": 6, "necess": 2, "necessari": [0, 1, 3, 4, 8, 14, 24], "necessarili": [0, 4, 11, 21, 24], "necesserali": 5, "neck": 7, "need": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 25], "neg": [0, 1, 3, 5, 6, 7, 10, 13, 19, 21, 24], "neg_mean_squared_error": 6, "neglect": 21, "neglig": 21, "neighbor": [3, 6, 11], "neither": [4, 13], "neq": [13, 14, 21], "nervou": 12, "nest": [9, 12], "nesterov": 13, "net": [2, 4, 12], "netlib": [19, 24], "network": [0, 9, 13, 18, 23, 25], "neural": [0, 13, 18, 23, 25], "neural_network": [0, 1, 2, 24], "neuralnetwork": 1, "neuron": [1, 2, 3, 4, 12], "neutral": [0, 24], "neutron": [0, 24], "never": [1, 4, 6, 9, 21], "new": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 17, 19, 24, 25], "new_chang": 13, "new_hobbit": 24, "newaxi": [0, 3, 6, 9], "newli": [0, 24], "newton": [1, 7, 8, 13, 21], "next": [0, 1, 2, 3, 4, 5, 6, 8, 9, 13, 14, 15, 16, 24, 25], "next_guess": 13, "next_input": 4, "ng": 1, "ni": 14, "nice": [0, 1, 5, 11, 24, 25], "niter": 13, "nitric": [], "nlambda": [0, 5, 6, 25], "nlp": 23, "nm": 21, "nm_n": [0, 24], "nmse": 6, "nn": [2, 5, 6, 12, 19, 24], "nn_model": 1, "nnmin": 2, "node": [1, 3, 9, 10, 12], "nois": [0, 4, 5, 6, 8, 9, 10, 13, 24, 25], "noise_dimens": 4, "noisi": [1, 6], "non": [0, 1, 3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25], "none": [0, 1, 2, 4, 5, 9, 10, 13, 21, 24, 25], "nonlinear": [3, 6, 8, 9, 11, 12], "nonneg": [6, 9, 13], "nonparametr": 6, "nonsens": 21, "nonsingular": 19, "nonumb": [3, 7, 8, 13, 19], "nor": [1, 4, 13], "norm": [0, 1, 5, 6, 8, 11, 13, 24, 25], "normal": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 18, 19, 21, 24, 25], "normali": [19, 24], "norwai": [6, 24], "notat": [0, 2, 5, 6, 13, 14, 21, 24, 25], "note": [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 18, 19, 21, 23, 24], "notebook": [0, 1, 3, 9, 15, 16, 18, 24], "noth": [1, 2, 5, 8, 12, 14, 21, 25], "notic": [4, 5, 12, 13, 19, 21, 24], "notion": 3, "novel": [3, 6, 10, 24], "novemb": [1, 22, 24], "now": [0, 2, 4, 5, 6, 7, 8, 10, 11, 12, 14, 15, 16, 18, 19, 21, 24, 25], "nowadai": [0, 1, 3, 9, 18, 24], "nox": [], "np": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 24, 25], "npr": 2, "nsampl": 6, "nt": 2, "nu": 21, "nuclear": [5, 25], "nuclei": [0, 21, 24], "nucleon": [0, 24], "nucleu": [0, 24], "num": 4, "num_coordin": 2, "num_hidden_neuron": 2, "num_it": 2, "num_neuron": 2, "num_neurons_hidden": 2, "num_point": 2, "num_tre": 10, "num_valu": 2, "number": [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 22, 24], "numberid": 7, "numberparamet": 3, "numer": [0, 5, 6, 9, 10, 11, 12, 13, 18, 19, 23, 24, 25], "numpi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 25], "nunmpi": [5, 25], "nx": 2, "ny": 21, "o": [0, 1, 4, 5, 6, 7, 8, 9, 11, 19, 22, 23, 24, 25], "obei": [6, 11, 13, 25], "object": [0, 1, 4, 8, 10, 15, 19, 24], "obliqu": [5, 25], "observ": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 21, 24], "obtain": [0, 1, 5, 6, 7, 8, 9, 10, 12, 13, 14, 17, 19, 21, 24, 25], "obviou": [5, 6, 11, 21, 25], "obviouli": 24, "obvious": [0, 4, 5, 6, 19, 24], "oc": 25, "occupi": [], "occur": [0, 6, 8, 9, 19, 21, 24], "octob": [22, 24], "od": 0, "odd": [0, 3, 7, 24, 25], "odenum": 2, "odesi": 2, "oen": 0, "off": [1, 3, 4, 5, 9, 13, 21], "offer": [6, 11, 18, 19, 20, 22, 24], "offic": [22, 24], "offici": [20, 24], "often": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 24, 25], "ofter": [19, 24], "ol": [0, 13, 17, 25], "old": [1, 5, 10, 13, 15], "ols_paramet": 16, "ols_sk": 6, "ols_svd": 6, "olstheta": [0, 5], "omega": [2, 3, 6], "omega_0": 3, "omit": [0, 5, 24, 25], "onc": [1, 6, 9, 11, 13], "one": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 19, 21, 22, 24, 25], "onehot": 1, "onehot_vector": 1, "onehotencod": 9, "ones": [0, 2, 5, 6, 8, 9, 10, 11, 13, 16, 19, 24, 25], "ones_lik": 4, "ong": 25, "onl": 3, "onli": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25], "onlin": [11, 15, 20], "onto": [5, 11, 25], "open": [0, 1, 4, 6, 7, 9, 15, 18, 20, 22, 24], "oper": [0, 1, 3, 5, 6, 10, 11, 12, 13, 15, 16, 18, 21, 24, 25], "operation": 21, "oplu": 21, "opmiz": 13, "opportun": 0, "oppos": [6, 13], "opposit": [1, 5, 8, 25], "opt": [1, 5, 24], "optim": [0, 2, 3, 4, 5, 6, 7, 9, 10, 11, 14, 16, 17], "optimis": [1, 3], "option": [0, 1, 3, 5, 6, 8, 11, 15, 19, 25], "optmiz": [1, 8, 13, 25], "oral": 24, "orang": 0, "order": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 15, 19, 21, 24, 25], "ordinari": [0, 2, 3, 7, 11, 13, 17, 18], "oreilli": [23, 24], "org": [0, 3, 4, 16, 18, 19, 23, 24, 25], "organ": [6, 7, 10, 19], "orient": [1, 5, 21, 25], "origin": [0, 3, 5, 6, 8, 11, 12, 13, 15, 19, 24, 25], "orthogn": [5, 25], "orthogon": [0, 5, 6, 8, 11, 13, 19, 24, 25], "orthonorm": [5, 25], "os": [22, 24], "oscar": 1, "oscil": [3, 13], "oskar": 24, "oskarlei": 24, "oslo": [0, 18, 20, 22, 24, 25], "osx": [0, 18, 24], "other": [0, 1, 2, 3, 5, 6, 7, 8, 10, 13, 14, 16, 18, 20, 21, 22, 23, 25], "otherwis": [0, 1, 4, 7, 13, 19, 24], "ouput": [5, 7, 12], "our": [1, 2, 3, 6, 7, 8, 9, 10, 12, 14, 15, 16, 17, 18, 19, 21], "ourmodel": 0, "ourselv": [0, 5, 6, 8, 11, 13, 24, 25], "out": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25], "out_fil": 9, "outcom": [0, 7, 9, 10, 12, 21, 25], "outdoor": 9, "outer": [6, 12, 13], "outfil": 4, "outlier": [0, 8, 24, 25], "outlin": [6, 10, 11], "outlook": 9, "outperform": 10, "output": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 19, 21, 24, 25], "output_bia": 1, "output_bias_gradi": 1, "output_shap": 4, "output_weight": 1, "output_weights_gradi": 1, "outputlayer1": 12, "outputlayer2": 12, "outsid": 4, "over": [0, 1, 3, 4, 5, 6, 9, 10, 12, 13, 15, 16, 19, 24, 25], "over1": 13, "overal": [1, 10], "overcast": 9, "overcom": [12, 13], "overdetermin": [0, 24], "overfit": [0, 1, 3, 6, 9, 10, 13], "overflow": 5, "overhead": 12, "overlap": [3, 7, 8, 9], "overlin": [0, 5, 6, 9, 10, 11, 14, 19, 24, 25], "overst": 0, "overtrain": 4, "overview": 3, "own": [4, 5, 6, 8, 12, 13, 16, 18, 19], "owner": [], "ownmsepredict": 0, "ownmsetrain": 0, "ownridgebeta": 25, "ownridgetheta": [0, 6, 25], "ownypredictridg": 0, "ownytilderidg": 0, "oxid": [], "p": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 24, 25], "p0": 2, "p1": 2, "p_": [2, 4, 8, 9], "p_hidden": 2, "p_i": [5, 21], "p_j": 21, "p_n": 21, "p_output": 2, "p_x": 21, "pack": [0, 24], "packag": [0, 1, 3, 4, 5, 8, 11, 13, 15, 18, 21, 25], "packtpub": 24, "packtpublish": 24, "pad": [3, 4], "page": [0, 18, 24], "pai": [0, 1, 9, 13, 15], "pair": [0, 2, 3, 9, 18, 21, 24], "paltform": 15, "panda": [0, 4, 5, 6, 7, 9, 11, 18], "panel": 24, "paper": 1, "paradigm": [0, 24], "parallel": [10, 13, 18, 19, 24], "param": 2, "paramat": 2, "paramet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 16, 17, 21], "parameter": [0, 6, 10, 24, 25], "parametr": [0, 6, 24, 25], "paramt": [3, 5], "part": [0, 1, 3, 5, 6, 10, 17, 19, 20, 21, 22, 24, 25], "partial": [0, 1, 5, 6, 7, 8, 10, 11, 12, 13, 16, 21, 24, 25], "particip": [15, 18, 20, 22, 24], "particl": [0, 4, 13, 21, 24], "particular": [0, 1, 2, 3, 5, 6, 9, 10, 11, 12, 13, 16, 21, 23, 24, 25], "particularli": [5, 6, 8, 11, 13, 21, 25], "partit": [1, 4, 9], "partli": [6, 24], "partner": 15, "pass": [2, 3, 12, 14], "past": [10, 21], "patch": [6, 21], "path": [0, 4, 6, 7, 9, 18, 24], "pathcollect": 17, "patient": 7, "patter": 4, "pattern": [0, 3, 4, 12, 23, 24], "pauli": [0, 24], "pc": [11, 15, 18], "pca": [0, 7, 18, 24, 25], "pd": [0, 4, 5, 6, 7, 9, 11, 24, 25], "pde": 2, "pdf": [0, 3, 4, 5, 6, 9, 15, 16, 23, 24], "pedagog": [0, 24, 25], "penal": [6, 25], "penalti": [6, 13, 25], "penros": [5, 6], "pentagon": 13, "peopl": [1, 9, 13, 18], "per": [0, 1, 6, 20, 22, 24], "percentag": [10, 11, 22], "perceptron": [0, 1, 7, 24], "peregrin": 24, "perfect": [0, 1, 13, 24], "perfectli": [4, 6], "perform": [0, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 14, 16, 18, 19, 21, 24, 25], "performac": 4, "perhap": [0, 5, 13, 24, 25], "perimet": 1, "period": [1, 4, 21], "permiss": 15, "permut": 11, "persist": 13, "person": [5, 6, 7, 16, 20, 22, 24, 25], "perspect": 23, "pertin": [12, 24], "petal": [8, 9], "peter": [23, 25], "phantom": 21, "phase": [6, 12], "phenomena": 21, "phi": 8, "phi_k": 8, "philosophi": 13, "phone": [22, 24], "photo": [4, 24], "phrase": [0, 24], "physic": [0, 1, 4, 7, 12, 13, 21, 22, 23, 24, 25], "pi": [2, 3, 5, 6, 7, 9, 12, 13, 21], "pick": [1, 9, 10, 11, 13, 14], "pickl": 1, "pictur": [0, 24], "pie": [18, 24], "piec": [11, 14], "pillow": [0, 18, 24], "pinv": [5, 6, 13, 25], "pip": [0, 1, 15, 18, 24], "pip3": [0, 1, 24], "pipelin": [0, 6, 8, 10, 25], "pippin": 24, "pit": 4, "pitfal": [6, 25], "pitt": 12, "pixel": [1, 3, 4, 24], "pixel_height": [1, 3], "pixel_width": [1, 3], "place": [0, 4, 6, 8, 13, 15, 19, 24], "plai": [0, 3, 4, 5, 6, 8, 11, 18, 24, 25], "plain": [8, 10, 12, 13, 14], "plan": [6, 9, 22, 23, 24], "plane": [8, 9], "plateau": 5, "platform": [18, 24], "plausibl": 12, "pleas": [13, 22, 24], "plenti": 1, "plethora": [3, 12], "plot": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 21, 24, 25], "plot_all_sc": 25, "plot_confusion_matrix": [7, 10], "plot_count": 6, "plot_cumulative_gain": [7, 10], "plot_data": 1, "plot_dataset": 8, "plot_decision_boundari": [9, 10], "plot_import": 10, "plot_max": 4, "plot_min": 4, "plot_model": 4, "plot_numb": 4, "plot_predict": 8, "plot_regression_predict": 9, "plot_result": 4, "plot_roc": [7, 10], "plot_surfac": [2, 6, 13], "plot_train": 9, "plot_tre": [9, 10], "plt": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25], "plu": [0, 3, 5, 7, 24, 25], "pm": 8, "pmatrix": 2, "pml": 23, "pn": 3, "png": [0, 4, 6, 7, 9, 24], "point": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 19, 21, 22, 24, 25], "point_1": 4, "point_2": 4, "poisson": [18, 21, 24], "poli": [6, 8], "poly100_kernel_svm_clf": 8, "poly3": 0, "poly3_plot": 0, "poly_featur": [8, 9, 15], "poly_features10": 9, "poly_fit": 9, "poly_fit10": 9, "poly_kernel_svm_clf": 8, "poly_model": 15, "poly_ms": 15, "poly_predict": 15, "polydegre": [0, 5, 6, 10, 25], "polygon": 13, "polym": 12, "polynomi": [0, 5, 6, 7, 8, 9, 10, 11, 15, 17, 24, 25], "polynomial_featur": [6, 15, 16, 17], "polynomial_svm_clf": 8, "polynomialfeatur": [0, 6, 8, 9, 15, 16, 25], "polytrop": [0, 6], "pool": 3, "pool_siz": 3, "poor": [1, 13], "poorli": [0, 25], "popul": [0, 5, 24, 25], "popular": [0, 1, 3, 6, 7, 8, 9, 11, 12, 15, 18, 19, 21, 25], "popularli": [0, 24], "portabl": 10, "portion": [11, 13], "pose": [0, 4, 5, 6, 11, 21, 24], "posit": [0, 1, 2, 3, 5, 7, 8, 10, 11, 13, 14, 19, 21, 24, 25], "possibl": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 18, 19, 21, 22, 24, 25], "possibli": [6, 8, 13], "posterior": 5, "postpon": [0, 25], "postul": 5, "potenti": [0, 3, 5, 6, 12, 13, 25], "pott": 12, "power": [0, 1, 5, 6, 8, 9, 12, 13, 24, 25], "pp": [5, 6], "practic": [0, 5, 6, 7, 8, 16, 21, 25], "practition": [0, 1, 3, 24], "pre": 24, "preced": [1, 11, 12, 21], "preceed": 4, "preceq": 8, "precis": [0, 2, 5, 11, 13, 19, 21, 24, 25], "pred": 6, "predicit": 0, "predict": [0, 1, 5, 6, 7, 8, 9, 10, 15, 16, 17, 18, 23, 24, 25], "predict_prob": 1, "predict_proba": [7, 10], "predictor": [0, 5, 6, 7, 9, 10, 11, 24, 25], "prefer": [0, 1, 6, 8, 9, 11, 13, 15, 18, 24], "prepar": [0, 6, 19, 24, 25], "preprocess": [0, 4, 6, 7, 8, 9, 10, 11, 15, 16, 17], "prerequisit": 0, "presenc": 13, "present": [0, 5, 6, 7, 9, 12, 13, 19, 21, 24, 25], "preserv": [3, 11, 19], "press": [13, 15, 23], "pretrain": [1, 4], "pretti": [0, 4, 8, 9, 18, 24], "prev_centroid": 14, "prevent": [13, 21], "previou": [0, 1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 15, 16, 19, 21, 25], "previous": [2, 3, 9, 10, 21], "price": [0, 4, 9, 13], "primal": 8, "primari": [0, 7, 24], "prime": 21, "princip": [0, 5, 7, 18, 24, 25], "principl": [0, 6, 7, 8, 14, 24], "print": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 19, 21, 24, 25], "print_funct": [8, 9], "printout": [0, 24], "prior": [0, 5, 6, 24], "privat": 0, "prob": [1, 21], "probabilist": [0, 23, 24, 25], "probabl": [0, 1, 3, 4, 6, 7, 10, 13, 18, 24, 25], "problem": [0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 17, 18, 19, 21], "probml": 23, "proce": [0, 5, 6, 7, 8, 9, 10, 11, 13, 19, 24, 25], "procedur": [2, 4, 5, 6, 8, 10, 11, 13, 25], "proceed": 19, "process": [0, 2, 4, 6, 9, 10, 12, 13, 18, 19, 21, 23, 24], "prod": 23, "prod_": [1, 5, 7], "produc": [0, 3, 4, 5, 6, 9, 10, 11, 12, 13, 18, 19, 21, 24, 25], "product": [0, 1, 3, 5, 6, 7, 8, 12, 13, 16, 17, 18, 19, 24, 25], "profess": [0, 24], "program": [0, 1, 4, 5, 6, 8, 12, 14, 15, 18, 19, 20, 21, 22, 24, 25], "programm": 19, "progress": [1, 4, 14], "prohibit": 6, "project": [0, 1, 2, 3, 5, 11, 13, 15, 18, 20, 25], "project_root_dir": [0, 6, 7, 9, 24], "promin": 12, "promis": 8, "promot": [22, 24], "prone": [9, 15], "pronounc": [13, 18, 24], "proof": [0, 11, 12, 13, 24], "propag": [2, 3, 13], "proper": [0, 2, 6, 7], "properli": [1, 6, 8, 10, 13], "properti": [0, 1, 3, 12, 13, 16, 19, 24], "proport": [0, 1, 5, 9, 11, 13, 21, 24, 25], "propos": [1, 4, 6, 10, 24], "propto": [5, 13], "proton": [0, 24], "prove": [3, 13], "provid": [0, 1, 3, 4, 5, 6, 8, 9, 10, 12, 13, 18, 19, 21, 24, 25], "proxi": [1, 13], "prune": 9, "pseudo": [19, 21], "pseudoinv": 5, "pseudoinvers": [5, 6], "pseudorandom": [6, 21], "psychologi": [0, 24], "pt": 13, "public": [0, 15, 18, 24], "pull": 15, "punish": [0, 1, 24], "pure": [3, 9, 21], "purest": 9, "puriti": 9, "purpos": [0, 3, 10, 12, 14, 24], "push": 15, "put": 1, "py": 5, "pycod": 24, "pydata": 18, "pydot": 9, "pyhton2": 24, "pylab": [7, 24], "pypi": 18, "pyplot": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25], "pythagora": 5, "python": [1, 2, 3, 5, 6, 8, 11, 12, 13, 14, 21, 25], "python2": 0, "python3": [0, 18, 24], "pytorch": [0, 18, 24], "q": [5, 6, 8, 11, 21], "qp": 8, "qquad": [2, 11, 13, 19], "qr": [5, 6, 19, 25], "quad": [1, 13, 19], "quadrat": [0, 8, 9, 13, 24], "qualit": [4, 9, 21], "qualiti": [0, 9, 18, 24, 25], "quantifi": 1, "quantil": 10, "quantit": [0, 6, 9, 24], "quantiti": [0, 2, 5, 6, 7, 9, 10, 11, 12, 14, 16, 19, 21, 24, 25], "quantum": [4, 12, 23, 24], "quartil": [0, 25], "quench": 5, "queri": 9, "question": [0, 5, 6, 9, 11, 12, 13, 22, 24, 25], "qugan": 4, "quick": [4, 21], "quickli": [1, 3, 9, 11, 13], "quit": [1, 5, 6, 9, 10, 12, 15, 25], "quot": 4, "r": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 25], "r2": [0, 5, 6, 24, 25], "r2_score": [0, 24], "r2score": [0, 24], "r_1": 9, "r_2": 9, "r_j": 9, "r_m": 9, "rad": [], "radial": [8, 12], "radioact": 21, "radiu": [0, 1, 25], "rain": 9, "ramp": 1, "ran0": 21, "ran1": 21, "ran2": 21, "ran3": 21, "rand": [0, 4, 5, 6, 9, 10, 13, 15, 19, 24, 25], "randint": [6, 9, 13], "randn": [0, 1, 2, 5, 6, 9, 11, 13, 15, 24, 25], "random": [0, 1, 2, 3, 4, 5, 6, 8, 9, 13, 14, 15, 16, 17, 18, 19, 24, 25], "random_forest_model": 10, "random_index": 13, "random_indic": [1, 3], "random_st": [7, 8, 9, 10, 11], "randomforestclassifi": 10, "randomli": [1, 6, 9, 13, 14], "rang": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25], "rangl": [0, 6, 11, 21, 24, 25], "rangle_x": 21, "rank": [5, 25], "rankdir": 4, "raphson": [1, 8, 13], "rapidli": 0, "rare": [1, 13], "raschka": [24, 25], "rasckha": 24, "rate": [1, 2, 3, 4, 8, 9, 10, 12, 13], "rather": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25], "ratio": [4, 7, 9, 10, 11], "rational": [0, 24], "ravel": [5, 6, 7, 8, 9, 10, 11, 13, 19], "raw": 3, "rbf": [8, 11, 12], "rbf_kernel_svm_clf": 8, "rbf_pca": 11, "rc": 21, "rcond": [0, 24, 25], "rcparam": [1, 3, 7, 8, 9, 10, 21, 24], "re": [2, 4, 13, 15], "reach": [1, 4, 5, 6, 9, 10, 12, 13, 14], "read": [0, 2, 3, 4, 5, 6, 7, 8, 11, 12, 16, 17, 19, 21, 23], "read_csv": [0, 6, 7, 9], "read_fwf": [0, 24], "reader": [0, 6, 19, 21, 24, 25], "readi": [0, 1, 5, 6, 8, 10, 11, 12, 19, 24], "readili": 1, "readm": 15, "readthedoc": 18, "real": [0, 1, 4, 7, 10, 11, 12, 16, 19, 25], "real_loss": 4, "real_output": 4, "realist": [8, 24], "realiti": 21, "realiz": [1, 12], "realli": [0, 1, 24], "rearrang": 13, "reason": [0, 1, 3, 4, 10, 13, 23, 24], "reassign": 1, "recal": [5, 6, 9, 10, 11, 12, 19, 21, 24, 25], "recast": 3, "receiv": [1, 3, 10, 12, 21], "recent": [0, 6, 13, 23], "recept": [3, 12], "receptive_field": 3, "recip": [0, 6, 7, 19, 24, 25], "reciproc": 5, "recogn": [0, 4, 5, 10, 24], "recognit": [0, 1, 3, 12, 23, 24], "recommen": 24, "recommend": [0, 2, 3, 4, 5, 6, 8, 13, 15, 18, 19, 23], "reconsid": 9, "reconstruct": 11, "record": [10, 20, 22, 24], "recreat": 15, "rectangl": [9, 13], "rectangular": [5, 25], "rectifi": [1, 3, 12], "recur": [0, 18, 24], "recurr": [0, 1, 18, 24], "recurs": [9, 18, 19, 24], "red": [0, 3, 4, 6, 8, 9], "redefin": [0, 10, 24, 25], "reduc": [1, 3, 5, 6, 9, 10, 11, 13, 24], "reduct": [0, 10, 11, 18, 21, 24, 25], "refer": [0, 1, 2, 3, 5, 6, 11, 12, 13, 14, 19, 23, 24, 25], "referenc": 2, "refin": 12, "refit": 6, "reflect": [0, 1, 4, 5, 21, 24], "refresh": [18, 24], "refreshprogrammingskil": 24, "reg": [10, 11], "regard": [1, 9, 13], "regardless": [12, 16], "region": [3, 4, 6, 9, 12], "regist": [6, 21], "reglasso": 5, "regr_1": [0, 9], "regr_2": [0, 9], "regr_3": [0, 9], "regress": [1, 8, 11, 12, 16, 18, 19], "regressor": [0, 7, 10], "regridg": [0, 5, 6, 25], "regular": [0, 3, 4, 5, 6, 7, 9, 13, 17, 22, 24, 25], "regularli": 15, "reilli": [0, 23, 24], "reinforc": [0, 8, 18, 24], "reiter": 1, "reject": 7, "rel": [0, 4, 6, 7, 9, 12, 13, 21, 24, 25], "relat": [0, 1, 3, 4, 5, 11, 13, 14, 19, 21, 24, 25], "relationship": [0, 4, 9, 24], "relativeerror": [0, 24, 25], "releas": [1, 18, 24], "relev": [0, 1, 5, 7, 11, 18, 21, 24], "reli": [0, 6, 8], "reliabl": [7, 21], "relu": [3, 4, 24], "remain": [1, 2, 4, 6, 12, 19, 21, 25], "remaind": 21, "reman": 2, "remark": 1, "rememb": [0, 8, 13, 19, 24], "remind": [0, 5, 11, 13, 19, 21], "remot": 15, "remov": [4, 5, 6, 25], "renam": 15, "render": [0, 24, 25], "reorder": [5, 7, 25], "reorgan": [0, 24], "repeat": [0, 1, 3, 4, 5, 6, 9, 10, 11, 13, 14, 19, 21, 24, 25], "repeated": 24, "repeatedli": [0, 6, 10, 13], "repet": 3, "repetit": [6, 24, 25], "rephras": 13, "replac": [0, 1, 3, 4, 5, 6, 10, 12, 14, 18, 24, 25], "replica": 6, "repo": 15, "report": 24, "repositori": [4, 24], "repres": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 21, 24, 25], "represent": [0, 1, 3, 6, 21, 24], "representd": 3, "reproduc": [0, 5, 6, 9, 12, 15, 16, 18, 21, 24, 25], "repuls": [0, 24], "request": [0, 13], "requir": [0, 1, 3, 4, 5, 6, 8, 9, 11, 12, 13, 15, 17, 19, 24, 25], "res1": 2, "res2": 2, "res3": 2, "res_analyt": 2, "res_analytical1": 2, "res_analytical2": 2, "res_analytical3": 2, "resaml": 6, "resampl": [0, 7, 10, 18, 24, 25], "rescal": [0, 11, 12], "rescu": 5, "reseach": 6, "research": [0, 4, 13, 18, 23, 24], "resembl": [6, 21], "reserv": [1, 5, 6, 21], "reshap": [0, 1, 2, 3, 4, 6, 8, 9, 10, 19, 24, 25], "residenti": [], "residu": [0, 5, 13, 24], "resiz": [5, 25], "resourc": 24, "respect": [0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 16, 17, 21, 24, 25], "respond": 12, "respons": [0, 7, 9, 12, 24, 25], "rest": [0, 5, 25], "restat": [0, 12, 24], "restor": 4, "restored_discrimin": 4, "restored_gener": 4, "restrict": [0, 3, 9, 12, 24], "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 24], "retail": [], "retain": [5, 6, 25], "return": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 16, 17, 19, 21, 24, 25], "return_data": 14, "return_sequ": 4, "return_x_i": 9, "reus": [1, 3, 6], "reveal": [0, 12, 24], "revers": [1, 19], "review": [18, 19], "revisit": 14, "revolut": 24, "reward": [0, 4, 24], "rewrit": [0, 3, 5, 6, 7, 8, 10, 11, 12, 13, 16, 19, 21], "rewritten": [2, 6, 8, 10, 21], "rewrot": 13, "rf": 10, "rgb": 3, "rgoj5yh7evk": 18, "rh": 6, "rho": [0, 10, 13], "rho_1": 10, "rho_2": 10, "rho_m": 10, "rich": [0, 24], "ride": 9, "rideclass": 9, "ridedata": 9, "ridg": [7, 11, 13, 18, 24], "ridge_paramet": 17, "ridge_sk": 6, "ridgetheta": 5, "right": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 19, 21, 24, 25], "right_sid": 2, "rightarrow": [0, 1, 5, 6, 8, 11, 12, 13, 21, 24, 25], "rigor": [0, 24, 25], "ring": 6, "rise": [0, 24], "risk": [0, 13, 24], "rival": 4, "river": [], "rlm": 24, "rm": 21, "rmse": [], "rmsporp": 13, "rmsprop": [1, 3, 4, 13], "rnd_clf": 10, "rng": 21, "rnn": [4, 12], "rnn1": 4, "rnn2": 4, "rnn_2layer": 4, "rnn_input": 4, "rnn_output": 4, "rnn_train": 4, "rntrick1": 21, "rntrick2": 21, "rntrick3": 21, "rntrick4": 21, "ro": [0, 13, 24], "robert": 23, "robust": [0, 24], "robustscal": [0, 25], "roc": [7, 10], "role": [0, 2, 5, 6, 8, 18, 24, 25], "roll": 6, "room": [0, 22, 24], "root": [0, 5, 9, 13, 15, 21, 25], "rot": 24, "rotat": [1, 8, 9, 10], "rotation_matrix": 9, "roughli": [1, 3], "round": [7, 9, 13], "routin": [13, 19, 24], "row": [0, 1, 2, 5, 6, 9, 11, 16, 19, 24, 25], "rr": [5, 25], "rrr": [5, 25], "rug": 13, "rule": [0, 1, 5, 6, 13, 24, 25], "run": [0, 1, 2, 4, 5, 6, 8, 9, 11, 13, 15, 18, 24, 25], "runtim": [1, 6, 14, 15], "rust": [0, 18, 19, 24], "rvert": 1, "rvert_2": 1, "s_": [3, 6], "s_1": 6, "s_i": [6, 7], "s_j": 6, "s_k": 6, "saddl": 13, "sai": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 19, 21, 24, 25], "said": [6, 9, 13], "sake": [0, 5, 7, 11, 24, 25], "sale": [0, 24], "sam": 24, "same": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 14, 15, 16, 19, 21, 24, 25], "samm": 10, "sampl": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 18, 19, 21, 24, 25], "sample_vari": 14, "sampleexptvari": 21, "samwis": 24, "sastri": 11, "satisfactori": [0, 24], "satisfi": [1, 2, 3, 6, 8, 13, 19, 21], "satur": [1, 6], "save": [0, 4, 6, 7, 9, 13, 24], "save_fig": [0, 6, 7, 9, 10, 24], "savefig": [0, 4, 6, 7, 9, 21, 24], "savetxt": 4, "saw": [5, 25], "scalabl": 10, "scalar": [2, 5, 6, 10, 25], "scale": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 18, 19, 22, 24], "scale_mean": 4, "scale_std": 4, "scaler": [0, 7, 8, 9, 10, 11, 17, 25], "scan": [5, 7], "scari": 5, "scatter": [0, 1, 6, 7, 8, 9, 14, 15, 17, 24, 25], "scenario": [6, 13], "schedul": 13, "scheme": [1, 13], "schrage": 21, "sch\u00f8yen": [6, 25], "scienc": [0, 1, 10, 12, 13, 18, 20, 21, 22, 23], "scientif": [0, 18, 24], "scientist": [0, 24], "scikit": [3, 5, 6, 8, 9, 10, 13, 15, 16, 18, 19, 23], "scikit_learn": 0, "scikitlearn": 24, "scikitplot": [7, 10], "scipi": [0, 3, 5, 6, 13, 18, 19, 24, 25], "scl": 6, "scm": 15, "score": [0, 1, 3, 6, 7, 9, 10, 11, 15, 16, 22, 24, 25], "scores_kfold": 6, "scratch": [1, 13, 16], "sdg": 13, "seaborn": [0, 1, 3, 6, 7, 24], "seamless": [0, 18, 24], "search": [0, 1, 3, 5, 9, 13, 15, 24], "sebastian": 24, "sebastianraschka": 24, "sec": 6, "second": [0, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 14, 15, 16, 18, 19, 21, 22, 24, 25], "secondeigvector": 11, "secondli": 12, "section": [4, 11, 16, 19, 21, 25], "sector": 0, "see": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25], "seed": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 13, 14, 21, 24, 25], "seed_imag": 4, "seek": [1, 2, 8], "seem": [1, 3, 4], "seemingli": [0, 24], "seen": [0, 1, 3, 5, 10, 12, 21], "segment": 13, "seismic": 6, "seldomli": [0, 24], "select": [1, 5, 6, 8, 9, 10, 11, 15, 20, 21, 22, 23, 24, 25], "selevet": 15, "self": [1, 5, 25], "sell": 4, "semest": [7, 20], "semi": [8, 13], "semilogx": 6, "send": [5, 12, 13, 22, 24], "senior": [20, 22], "sens": [0, 4, 6, 8, 24], "sensibl": 3, "sensit": [0, 5, 6, 9, 13, 24, 25], "sent": 2, "sentenc": [4, 12], "separ": [0, 1, 2, 4, 6, 8, 9, 12, 14, 18, 21, 24], "septemb": 24, "sequenc": [3, 4, 7, 9, 10, 12, 13, 18, 19, 21, 24], "sequenti": [1, 3, 4, 10, 12, 21], "seri": [0, 1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 19, 24, 25], "serif": [7, 21, 24], "serv": [0, 1, 2, 3, 5, 7, 13, 23, 24, 25], "session": [1, 15, 20, 22, 24], "set": [1, 4, 5, 6, 7, 8, 10, 11, 13, 14, 16, 17, 18, 19, 21, 22], "set_major_formatt": 6, "set_major_loc": 6, "set_tick": [1, 8], "set_ticklabel": 1, "set_titl": [0, 1, 2, 3, 7, 12, 14, 24], "set_xlabel": [0, 1, 2, 3, 7, 12, 24], "set_xlim": [7, 12], "set_xticklabel": 1, "set_ylabel": [0, 1, 2, 3, 7, 24], "set_ylim": [7, 12], "set_ytick": 7, "set_yticklabel": [1, 6], "set_zlim": 6, "seth": 4, "setminu": 6, "setosa": [8, 9], "setosa_or_versicolor": 8, "setp": 6, "setup": [1, 4, 6, 8, 18, 24, 25], "sever": [0, 3, 5, 6, 7, 8, 9, 11, 12, 13, 16, 18, 19, 21, 24, 25], "sgd": [1, 3], "sgd_clf": 8, "sgdclassifi": 8, "sgdreg": 13, "sgdregressor": 13, "sgn": [5, 25], "shallow": 13, "shape": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 19, 24, 25], "share": [1, 3, 15, 24], "shareabl": 15, "she": 7, "shift": [1, 6, 12, 15, 21, 25], "ship": 3, "shire": 24, "short": [4, 5], "shortcom": 13, "shorten": 4, "shorter": 21, "shorthand": 24, "shortli": [19, 24], "should": [0, 2, 3, 5, 6, 8, 9, 11, 12, 15, 19, 21, 24, 25], "show": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24, 25], "show_shap": 4, "shown": [0, 4, 5, 8, 12, 13, 19, 25], "shrink": [3, 5, 6, 8, 11, 25], "shrinkag": [5, 6, 25], "shrunk": 11, "shuffl": [0, 1, 4, 6, 13, 25], "side": [0, 2, 5, 8, 12, 13, 19, 24], "sigh": [18, 24], "sigma": [0, 1, 5, 6, 7, 10, 11, 12, 13, 19, 21, 24, 25], "sigma0": 21, "sigma1": 21, "sigma2": 21, "sigma_": [5, 19, 24, 25], "sigma_0": [5, 25], "sigma_1": [5, 25], "sigma_2": [5, 25], "sigma_fn": [7, 12], "sigma_i": [0, 5, 24, 25], "sigma_j": [5, 25], "sigma_m": [6, 21], "sigma_n": [11, 21], "sigma_t": 13, "sigma_x": 21, "sigmoid": [1, 2, 4, 7, 8, 10, 12], "sigmundson": [6, 25], "sign": [1, 2, 7, 8, 10, 21, 22], "signal": [1, 3, 10, 12], "signifi": 4, "signific": 1, "significantli": [1, 13, 21], "sim": [4, 5, 6, 13, 21], "similar": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 18, 19, 24], "similarli": [0, 1, 3, 5, 8, 10, 13, 21, 24, 25], "simpl": [1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 21], "simplepredict": 10, "simpler": [0, 1, 5, 6, 7, 13, 16, 18, 24], "simplernn": 4, "simplest": [0, 1, 3, 4, 9, 10, 12, 14, 24], "simpletre": 10, "simpli": [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 18, 19, 21, 24, 25], "simplic": [2, 5, 6, 7, 8, 9, 10, 11, 12, 14, 25], "simplicti": [5, 25], "simplifi": [0, 6, 9, 18, 24, 25], "simplist": [3, 6, 21], "simul": 6, "simultan": 6, "sin": [0, 1, 2, 3, 4, 9, 12, 13, 19, 24], "sinc": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 16, 19, 21, 23, 24, 25], "sine": [3, 12], "singl": [0, 1, 2, 3, 5, 6, 7, 8, 9, 12, 13, 19, 21, 24, 25], "singular": [0, 6, 13, 19, 24], "sinusoid": 3, "site": [0, 20, 25], "situat": [0, 4, 5, 7, 13, 21, 24, 25], "six": [3, 21], "size": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 13, 19, 21, 24], "sketch": 10, "ski": 9, "skill": 0, "skip": 11, "skl": [0, 6, 24, 25], "sklearn": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 17, 24, 25], "skplt": [7, 10], "sl": [6, 25], "slack": 8, "slice": [2, 19, 24], "slide": [0, 3, 16, 21, 24, 25], "slight": [6, 13], "slightli": [1, 2, 3, 5, 6, 7, 10, 21, 25], "slope": [8, 11, 12], "slow": [0, 2, 8, 13, 25], "slower": [5, 19, 24, 25], "slowest": 19, "slowli": 12, "slp": 1, "small": [0, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 13, 18, 19, 21, 24, 25], "smaller": [0, 1, 2, 5, 6, 8, 9, 11, 13, 21, 24, 25], "smallest": [0, 4, 14, 24], "smallest_row_index": 14, "smooth": [0, 3, 6, 13, 24], "sn": [0, 1, 3, 6, 7, 24], "sne": 11, "so": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 22, 24, 25], "soar": 6, "social": 0, "soft": [1, 7, 10, 12], "soften": 8, "softmax": [3, 7], "softwar": [0, 8, 18, 19], "sol": 8, "sole": [0, 6, 24], "solid": [0, 7], "solut": [0, 1, 2, 3, 5, 6, 8, 10, 11, 13, 19, 21, 24, 25], "soluton": 2, "solv": [0, 1, 3, 5, 6, 8, 10, 11, 12, 13, 16, 19, 24, 25], "solve_expdec": 2, "solve_ode_deep_neural_network": 2, "solve_ode_neural_network": 2, "solve_pde_deep_neural_network": 2, "solveod": 2, "solveode_popul": 2, "solver": [2, 7, 8, 9, 10, 19, 24], "some": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 21, 24], "some_model": [6, 25], "somehow": 4, "someon": 16, "someth": [0, 1, 3, 4, 7, 9, 11, 15, 21, 24, 25], "sometim": [0, 1, 11, 12, 13, 14, 25], "soon": [19, 22, 25], "sophist": [0, 24], "sopt": 13, "sort": [5, 6, 9, 11, 21], "sound": [3, 5], "sourc": [0, 1, 3, 6, 18, 19, 21, 24], "space": [0, 1, 4, 5, 8, 9, 11, 12, 13, 14, 21, 25], "span": [0, 3, 5, 9, 11, 19, 24, 25], "spare": 1, "spars": [3, 6, 19, 24], "sparse_mtx": [19, 24], "sparsecategoricalcrossentropi": 3, "sparsiti": 10, "spatial": [1, 2, 3, 12], "speak": 21, "special": [6, 7, 10, 12, 13, 19, 21, 24, 25], "specif": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 15, 16, 18, 19, 21, 23, 24, 25], "specifi": [0, 3, 5, 6, 7, 9, 11, 13, 14, 21, 24], "specifici": [0, 10, 24], "spectacular": 3, "spectral": 1, "speech": [0, 1, 3, 4, 12], "speed": [1, 2, 4, 13], "spend": [16, 21], "sphere": [0, 25], "spin": 6, "spite": 0, "spline": 8, "split": [1, 3, 4, 5, 6, 8, 9, 10, 11, 14, 16, 17, 21, 24], "splite": 0, "splitter": [1, 10], "spontan": 21, "spot": 3, "spread": [0, 11, 21, 24, 25], "springer": [23, 24], "spuriou": 13, "sqrsignal": 3, "sqrt": [3, 4, 5, 6, 8, 10, 11, 13, 21, 25], "squar": [1, 2, 3, 4, 7, 8, 9, 11, 13, 14, 15, 17, 18, 19, 21], "squarederror": 10, "squaredeuclidean": 14, "squash": 12, "srtm": 6, "srtm_data_norway_1": 6, "stabil": 5, "stabl": [0, 4, 5, 6, 9, 16, 18, 24, 25], "stack": [3, 4], "stage": [5, 13, 15], "stai": [0, 2, 4, 5, 11, 24, 25], "stand": [0, 5, 9, 12, 24, 25], "standard": [0, 1, 4, 5, 6, 7, 8, 10, 12, 17, 19, 21, 24], "standardscal": [0, 6, 7, 8, 9, 10, 11, 17, 25], "stanford": 13, "start": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 22, 24, 25], "start_tim": 14, "stat": 6, "state": [1, 2, 4, 5, 6, 7, 8, 10, 11, 12, 13, 18, 21, 24, 25], "statement": [0, 7, 19, 24], "statist": [0, 1, 3, 4, 7, 9, 10, 11, 12, 13, 14, 19, 23, 25], "statu": [0, 7, 15, 24], "stavang": 6, "std": [0, 4, 6, 24, 25], "steep": 13, "step": [0, 1, 2, 4, 6, 7, 9, 10, 11, 12, 13, 14, 15, 19, 24], "step_fn": [7, 12], "step_length": 13, "steps_list": 9, "stereo": 3, "still": [0, 2, 3, 5, 6, 11, 13, 21, 25], "stimuli": 12, "stk": [23, 24], "stk2100": [23, 24], "stk3155": [15, 20, 22], "stk4021": [23, 24], "stk4051": [23, 24], "stk4155": [20, 22], "stk5000": 23, "stochast": [0, 1, 5, 6, 8, 11, 12], "stock": 4, "stoke": 12, "stone": [0, 7], "stop": [1, 4, 9, 13, 14], "storag": [5, 25], "store": [0, 1, 2, 3, 6, 11, 13, 21, 24], "storehaug": [22, 24], "str": [1, 3, 4], "straight": [0, 6, 8, 13, 24], "straightforward": [0, 2, 3, 5, 6, 8, 9, 10, 13, 19, 24, 25], "strategi": [0, 1, 9, 24], "stratifi": 6, "strength": [0, 5, 14, 25], "stretch": 11, "strict": [8, 13], "strictli": [8, 13], "stride": [4, 19], "strike": 6, "string": 1, "stroke": 7, "strong": [3, 6, 9, 10, 12, 19, 21], "strongli": [0, 8, 15, 18, 19], "stronli": [], "structur": [0, 1, 2, 3, 6, 9, 10, 12, 18, 24], "stuck": [1, 13], "student": [0, 15, 20, 22, 23, 24], "studi": [0, 3, 4, 5, 6, 7, 8, 11, 12, 13, 18, 23, 24, 25], "studier": 23, "style": [7, 9, 19, 24], "st\u00f8land": 22, "sub": [9, 12], "subdivid": [0, 19, 24], "subfield": 0, "subject": [6, 8, 21], "submit": 24, "subplot": [0, 1, 3, 4, 6, 7, 8, 9, 10, 14, 24], "subplots_adjust": [8, 21], "subprogram": [19, 24], "subract": [0, 25], "subroutin": [0, 24], "subscript": 1, "subsequ": [1, 4, 5, 6, 12, 19, 21, 25], "subset": [1, 6, 9, 12, 13, 18, 24], "subspac": [0, 8, 11, 25], "substanti": [9, 10], "substep": 11, "substitut": [3, 6, 12, 16, 19], "subsubset": 9, "subtask": 6, "subtl": 1, "subtract": [0, 4, 5, 6, 11, 13, 19, 21, 25], "subtre": 9, "succeed": [0, 4, 24], "success": [3, 7, 9, 13, 21], "successfulli": [4, 9], "sudo": [0, 18, 24], "suffer": [0, 1, 2, 5, 10, 24, 25], "suffici": [1, 6, 8, 11, 13], "suggest": [1, 13, 23], "suit": [8, 12], "suitabl": [0, 15, 21, 25], "sum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25], "sum_": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 19, 21, 24, 25], "sum_i": [0, 2, 5, 6, 8, 13, 25], "sum_j": 6, "sum_ja_": 0, "sum_k": [6, 8, 12, 19], "sum_logist": 13, "sum_m": 3, "sum_n": 3, "sum_nx_": 3, "summar": [5, 6, 9], "summari": [1, 3, 4, 10, 20], "summat": [0, 3, 16, 25], "sunni": 9, "super": [5, 25], "superfici": 3, "superscript": [1, 12], "supervis": [0, 5, 6, 7, 9, 12, 18, 24, 25], "supplement": 7, "support": [0, 1, 9, 10, 11, 13, 18, 24, 25], "suppos": [0, 5, 6, 7, 8, 10, 11, 12, 13, 19, 24, 25], "suppress": [5, 13], "sure": [0, 1, 4, 6, 16], "surf": 6, "surfac": [0, 6, 24], "surpass": 6, "surpris": [0, 24], "surround": [3, 18], "survei": [0, 5, 6, 24, 25], "svc": [8, 9, 10], "svd": [0, 6, 11, 24], "svdinv": 5, "svm": [8, 9, 10, 11], "svm_clf": [8, 10], "swath": [5, 25], "switch": 0, "sy": 13, "symbol": [1, 5, 11, 13, 18, 21, 24, 25], "symmeteri": 1, "symmetr": [0, 5, 8, 11, 12, 13, 19, 24, 25], "symmetri": 6, "sympi": [0, 18, 24], "synonim": 21, "syntax": 13, "system": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 18, 19, 24], "systemat": [4, 6], "t": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24], "t0": [3, 6, 13], "t1": [2, 13], "t2": 2, "t3": 2, "t_": 2, "t_0": [2, 9, 13], "t_1": 13, "t_b": 10, "t_i": [1, 2, 5, 12, 25], "t_j": 12, "t_k": 9, "tabl": [9, 21, 22, 24], "tabul": [0, 24], "tabular": 24, "tackl": 4, "tag": [2, 3, 4, 5, 6, 7, 12, 13, 14, 19, 21, 25], "taht": [0, 24], "tail": 21, "tailor": [2, 8, 11, 24], "taiwan": [0, 24], "take": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 17, 18, 19, 21, 24, 25], "taken": [0, 1, 3, 6, 10, 13, 19], "tan": 3, "tangent": [1, 4, 12, 13], "tanh": [1, 4, 7, 8, 12], "target": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 16, 24, 25], "target_nam": 9, "task": [0, 1, 3, 6, 9, 11, 12, 14, 24], "tau": [3, 5, 21], "taught": 24, "tax": [], "taylor": [2, 13], "taylornr": 13, "tc": 8, "teach": [15, 20, 24], "team": 1, "teaser": 0, "technic": [0, 5, 6, 13], "techniqu": [0, 1, 8, 10, 13, 18, 21, 23, 24, 25], "technologi": [0, 1], "tell": [0, 4, 6, 10, 11, 13, 16, 21], "temp": 1, "temp1": 1, "temp2": 1, "temperatur": [0, 9, 24], "temporarili": 1, "ten": [3, 24], "tend": [3, 5, 6, 8, 9, 10, 12, 13, 14, 25], "tendenc": [0, 24], "tension": 6, "tensor": 3, "tensorflow": [0, 2, 4, 8, 14, 18, 19, 23, 24, 25], "term": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21, 24, 25], "term1": [5, 6, 11], "term2": [5, 6, 11], "term3": [5, 6, 11], "term4": [5, 6, 11], "termin": [0, 4, 5, 9, 10, 13, 15, 25], "terminarl": 15, "terrain": 6, "terrain1": 6, "test": [3, 4, 5, 6, 7, 8, 9, 10, 13, 16, 19, 21, 24], "test_acc": 3, "test_accuraci": [1, 3], "test_error": 6, "test_imag": [3, 4], "test_ind": 6, "test_input": 4, "test_label": [3, 4], "test_loss": 3, "test_pr": 1, "test_predict": 1, "test_rnn": 4, "test_scor": [7, 10], "test_siz": [0, 1, 3, 5, 6, 10, 15, 17, 25], "test_split": 9, "testerror": [0, 6, 25], "testi": 4, "testpredict": 4, "testx": 4, "text": [0, 1, 2, 4, 5, 8, 9, 11, 13, 15, 19, 21, 23, 25], "textbook": [16, 25], "textual": 9, "textur": 1, "tf": [1, 3, 4, 13, 14], "th": [0, 1, 2, 5, 6, 7, 9, 12, 13, 14, 19, 21, 24, 25], "than": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 17, 18, 21, 24, 25], "thank": [4, 6, 25], "theano": [1, 18, 24], "thei": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 19, 21, 24, 25], "them": [0, 1, 3, 4, 6, 8, 9, 10, 11, 12, 13, 19, 24, 25], "theme": [0, 15, 24], "themselv": [0, 21, 24], "thenc": 6, "theorem": [2, 6, 7, 25], "theoret": [0, 4, 10], "theori": [0, 1, 3, 8, 9, 12, 13, 18, 23, 24], "thereaft": [0, 5, 6, 11, 12, 19, 24], "therebi": [0, 5, 7, 11, 24, 25], "therefor": [0, 1, 2, 3, 4, 6, 7, 8, 11, 13, 21, 24, 25], "therein": 11, "thereof": [0, 6, 13, 24], "theta": [0, 1, 4, 5, 6, 7, 13, 16, 21, 24, 25], "theta_": [0, 1, 6, 7, 13, 24, 25], "theta_0": [0, 5, 6, 7, 16, 24, 25], "theta_0x_": [0, 24, 25], "theta_1": [0, 5, 6, 7, 24, 25], "theta_1x_": [0, 24, 25], "theta_1x_0": [0, 24], "theta_1x_1": [0, 7, 24], "theta_1x_2": [0, 24], "theta_1x_i": [7, 25], "theta_2": [0, 24, 25], "theta_2x_": [0, 24, 25], "theta_2x_0": [0, 24], "theta_2x_1": [0, 24], "theta_2x_2": [0, 7, 24], "theta_2x_i": 25, "theta_3x_i": 25, "theta_4x_i": 25, "theta_i": [0, 1, 5, 24, 25], "theta_j": [0, 5, 6, 24, 25], "theta_linreg": 13, "theta_p": 7, "theta_px_p": 7, "theta_t": 13, "thetavalu": 5, "thi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25], "thing": [0, 1, 2, 4, 5, 7, 9, 15, 16, 21, 24], "think": [0, 1, 3, 4, 6, 9, 12, 13, 14, 21, 24, 25], "third": [0, 3, 6, 13, 22, 24], "thirti": 7, "thorughout": 24, "those": [0, 3, 5, 6, 8, 9, 10, 11, 19, 24, 25], "though": [1, 2, 3, 4, 13, 16, 17, 19, 21], "thought": [6, 14, 21], "thousand": [0, 1, 25], "three": [0, 1, 3, 5, 6, 8, 9, 12, 19, 20, 21, 22, 24, 25], "threshold": [1, 3, 9, 10, 11, 12, 13], "through": [0, 1, 2, 3, 4, 5, 6, 8, 11, 12, 13, 14, 15, 18, 19, 21, 24, 25], "throughout": [0, 4, 5, 14, 15, 18, 19, 21, 24], "throw": [3, 6, 21], "thu": [0, 1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 22, 24, 25], "thumb": [0, 6, 25], "thursdai": [], "tibshirani": [6, 23, 24], "tick_param": 6, "ticker": [6, 13, 21], "tif": 6, "tight_layout": [1, 7], "tightli": 11, "tild": [0, 5, 6, 7, 11, 21, 24, 25], "till": [0, 4, 7, 8, 9, 10, 12, 19, 24, 25], "time": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 24, 25], "timeit": 4, "timer": 4, "tini": 1, "tip": 3, "titl": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 13, 15, 21, 24], "tmp": 13, "tn": [2, 3, 7], "to_categor": [1, 3, 4], "to_categorical_numpi": 1, "to_numer": [0, 6, 24], "todai": 3, "togeth": [0, 3, 6, 8, 11, 13, 18, 24], "toi": 14, "told": 13, "toler": [2, 14], "tolist": 4, "tomographi": 12, "too": [0, 2, 4, 5, 6, 9, 11, 13, 17, 21, 23, 25], "took": [8, 24], "tool": [0, 1, 3, 6, 13, 15, 18, 25], "toolbox": 8, "top": [0, 3, 5, 6, 9, 10, 18, 24], "topic": [0, 5, 6, 7, 8, 18, 25], "topolog": [3, 12], "topologi": [1, 12], "torkjellsdatt": [22, 24], "toss": [10, 21], "total": [0, 1, 2, 3, 4, 6, 7, 8, 10, 11, 12, 13, 14, 19, 21, 22, 24, 25], "total_loss": 4, "totalclustervari": 14, "totalscatt": 14, "toward": [1, 2, 7, 12, 13, 15], "town": [], "tp": [4, 7], "tpng": 9, "tpu": [13, 18, 24], "tqdm": 6, "tr": [], "track": [3, 13, 14, 15, 19, 25], "tract": [], "tractabl": [0, 24, 25], "trade": [5, 9], "tradeoff": [0, 5, 24, 25], "tradit": [0, 1, 4, 6, 24], "train": [2, 3, 5, 6, 8, 9, 10, 11, 12, 13, 16, 17], "train_accuraci": [0, 1, 3, 24], "train_dataset": 4, "train_end": [0, 1, 25], "train_error": 6, "train_imag": [3, 4], "train_ind": 6, "train_label": [3, 4], "train_pr": 1, "train_siz": [0, 1, 3, 25], "train_step": 4, "train_test_split": [0, 1, 3, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25], "train_test_split_numpi": [0, 1, 25], "trainable_vari": 4, "trained_model": [6, 25], "trainerror": [0, 25], "traini": 4, "training_checkpoint": 4, "training_dataset": 4, "training_gradi": 13, "trainingerror": 6, "trainpredict": 4, "trainscor": 4, "trainx": 4, "trait": [0, 24], "trajectori": 4, "transfer": [9, 24], "transform": [0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 17, 18, 19, 24, 25], "transit": [6, 12], "translat": [1, 4, 6, 10, 24, 25], "transpos": [1, 5, 11, 19, 25], "travers": [0, 5], "treat": [0, 1, 3, 6, 12, 13, 21, 24, 25], "tree": [0, 1, 18, 24], "tree_clf": [9, 10], "tree_clf_": 9, "tree_clf_sr": 9, "tree_reg": 9, "tree_reg1": 9, "tree_reg2": 9, "trend": 21, "treue": 7, "trevor": 23, "tri": [2, 3, 4, 9, 13, 16], "triain": 0, "trial": [0, 2, 4, 6, 13, 21, 24], "triangl": 13, "triangular": 19, "trick": [3, 4, 8, 11, 13, 21], "trickier": 21, "tridiagon": 19, "trillion": 18, "trivial": [0, 1, 5, 11, 21, 24], "troubl": [0, 8, 12, 15, 25], "truck": 3, "true": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 19, 21, 24, 25], "true_beta": 25, "true_fun": 6, "true_theta": 6, "truli": 24, "try": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 19, 21, 24, 25], "tucker": 8, "tuesdai": [22, 24], "tumor": [7, 9], "tumour": 7, "tunabl": 1, "tune": [4, 9, 13, 19, 24], "turn": [0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25], "tutori": [1, 4], "tv": 2, "tveito": 2, "tweak": [1, 4, 10, 21], "twice": 13, "twist": 11, "two": [0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 12, 13, 15, 17, 19, 20, 21, 23, 24, 25], "tx": 13, "tx_1": 13, "txt": [4, 15], "ty": 13, "type": [0, 1, 3, 6, 8, 10, 13, 19, 21, 25], "typic": [0, 1, 2, 3, 4, 5, 7, 9, 10, 12, 13, 15, 16, 21, 24, 25], "u": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 23, 24, 25], "u_": 19, "u_i": 12, "u_m": 10, "ua": [0, 24], "ubuntu": [0, 18, 24], "uci": [], "uio": [15, 22, 23], "un": 14, "unabl": 15, "unari": [19, 24], "unbalanc": [6, 9], "unbias": [0, 5, 6, 24], "uncent": [6, 25], "uncertainti": [0, 5, 24], "uncertitud": 21, "unchang": [1, 3], "uncorrel": [10, 21], "undefin": [5, 25], "under": [0, 1, 5, 6, 10, 13, 18, 24, 25], "underdetermin": [0, 24], "underfit": [1, 6], "underflowproblem": 5, "undergo": 5, "undergradu": [20, 22], "underli": [0, 1, 9, 13, 21, 24], "underset": [4, 14], "understand": [0, 1, 3, 5, 6, 10, 13, 14, 15, 18, 24, 25], "understood": [8, 13], "undesir": 8, "undetermin": [5, 8], "undo": 4, "unexpect": 6, "unexpected": 21, "unfair": [6, 25], "unfortun": [1, 8, 9, 10], "unicode_liter": [8, 9], "uniform": [0, 1, 5, 6, 11, 13, 21, 24], "uniformli": [13, 21], "unifrompdf": 21, "unimport": 13, "union": [5, 6], "uniqu": [0, 2, 6, 13, 14, 19, 24], "unique_cluster_label": 14, "unit": [0, 1, 3, 4, 5, 10, 12, 21, 24, 25], "unitari": [5, 6, 19, 25], "unitarili": [19, 24], "uniti": 21, "univari": 21, "univers": [0, 1, 2, 13, 18, 20, 22, 24, 25], "unix": 1, "unknow": [0, 19, 24], "unknown": [0, 1, 3, 4, 5, 6, 8, 10, 13, 19, 24, 25], "unknowwn": 12, "unlabel": 1, "unless": [0, 3, 6, 11, 13, 24], "unlik": [1, 3, 8, 13], "unnecessarili": 9, "unord": 3, "unravel": 1, "unrol": [3, 11], "unseen": [0, 7, 9, 15], "unstabl": 1, "unsupervis": [0, 1, 4, 12, 18, 24], "unsymmetr": [19, 24], "until": [1, 2, 4, 9, 12, 13, 14], "untouch": 0, "unusu": 12, "up": [1, 3, 4, 5, 6, 8, 10, 11, 13, 14, 16, 18, 19, 21, 22], "updat": [1, 2, 10, 12, 13, 14, 15], "uploa": 24, "upload": [15, 18, 23], "upon": [0, 1, 6, 7, 11, 19], "upper": [0, 8, 9, 16, 19, 25], "uppercas": [19, 24], "upsampl": 4, "upscal": 4, "url": [24, 25], "us": [4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 17, 19, 21, 23], "usag": [0, 8, 18, 24, 25], "usd": [], "usd10000": [], "use_bia": 4, "usecol": [0, 24], "useless": 1, "user": [0, 1, 2, 4, 6, 7, 15, 18, 19, 24, 25], "usernam": 15, "usetex": 21, "usg": 6, "usr": 21, "usual": [0, 3, 4, 7, 12, 13, 14, 24], "ut": 5, "util": [1, 3, 4, 6, 7, 10, 14, 24], "ux": 19, "v": [2, 4, 5, 6, 11, 13, 15, 18, 25], "v0": 21, "v1": 21, "v2": 21, "v_0": 11, "va": 1, "vahid": 24, "val": 13, "val_accuraci": 3, "val_loss": 4, "vale": 2, "valid": [0, 1, 4, 7, 9, 10, 13, 18, 21, 24, 25], "validation_data": 3, "validation_split": 4, "valu": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 18, 19, 24], "valuat": 9, "valy": 4, "van": [0, 24, 25], "vandenbergh": [8, 13], "vandermond": [0, 24], "vanilla": [0, 6, 11, 14, 25], "vanish": [1, 4, 13, 21], "var": [5, 6, 10, 11, 21, 25], "var_x": 21, "varabl": 8, "varepsilon": [5, 6], "varepsilon_": [5, 6], "varepsilon_i": [5, 6], "vari": [0, 1, 3, 5, 6, 10, 24], "variabl": [0, 1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 14, 19, 24, 25], "varianc": [0, 1, 5, 7, 9, 10, 11, 13, 14, 18, 19, 21, 24, 25], "variance_i": [5, 11, 25], "variance_x": [5, 11, 25], "variant": [0, 1, 6, 8, 12, 13, 24, 25], "variat": [3, 4, 11, 24], "varieti": [0, 3, 12, 18, 24], "variou": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 16, 18, 19, 21, 24, 25], "varydimens": 4, "vastli": 3, "vaue": 1, "vault": 0, "vdot": [2, 13], "vec": 6, "vector": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 17, 18], "vector_mean": 14, "ventur": [0, 8, 18, 24], "venv": 15, "verbos": [1, 3, 4], "veri": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21, 23, 24, 25], "verifi": [3, 11, 19, 24], "versatil": [8, 24], "versicolor": [8, 9], "version": [0, 3, 10, 13, 14, 15, 18, 19, 21, 24], "versu": 1, "vert": [0, 1, 5, 6, 7, 8, 9, 11, 13, 16, 17, 24, 25], "vert_1": [5, 6, 25], "vert_2": [5, 6, 11, 17, 25], "via": [0, 5, 6, 7, 8, 9, 10, 11, 12, 18, 19, 20, 21, 22, 24, 25], "vidal": 11, "video": [0, 1, 12, 18, 20, 22, 24, 25], "view": [1, 3, 5, 6, 12, 13, 21, 23, 24], "violat": 8, "virginica": 9, "viridi": [0, 1, 2, 3, 24], "virtual": 1, "viscos": 13, "viscou": 13, "visibl": 15, "vision": [0, 3], "visual": [0, 3, 11, 12, 18, 24, 25], "visualis": 1, "visualstudio": [15, 16], "viz": [6, 8, 21], "vmap": 13, "vmax": [1, 6], "vmin": [1, 6], "voic": 3, "volum": [0, 3, 24], "vote": [10, 24], "voting_clf": 10, "votingclassifi": 10, "votingsimpl": 10, "vstack": [5, 11, 19, 21, 24, 25], "vt": [5, 25], "w": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 19, 21, 24, 25], "w1": 8, "w2": [8, 11], "w3": 8, "w_": [1, 12], "w_1": [8, 19], "w_1x_": 8, "w_1x_1": 8, "w_2": [8, 19], "w_2x_": 8, "w_2x_2": 8, "w_3": 19, "w_4": 19, "w_hidden": 2, "w_i": [1, 2, 10], "w_ix_i": 12, "w_j": 19, "w_m": 19, "w_output": 2, "w_px_": 8, "w_px_p": 8, "wa": [1, 3, 4, 5, 6, 7, 10, 11, 12, 14, 17, 19, 24, 25], "wai": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 19, 21, 24, 25], "walk": 9, "walker": 21, "wang": [0, 24], "want": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 24, 25], "warn": 4, "warrant": 6, "wast": 3, "watch": 18, "wave": 3, "wavelet": 8, "we": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 25], "weak": [9, 10, 14], "weather": [1, 12], "web": [18, 20, 22, 24], "webpag": 24, "websit": [6, 19, 20, 24], "wedg": [8, 21], "wednesdai": [22, 24], "wee": 11, "week": [0, 5, 6, 7, 20, 22], "weekli": [15, 16, 18, 20, 22, 23, 24], "weight": [1, 2, 3, 6, 7, 9, 10, 12, 13, 21], "weigth": 2, "welcom": [8, 15, 18], "well": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 18, 19, 21, 23, 24, 25], "went": 8, "were": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 21, 24], "wessel": [0, 24, 25], "what": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21], "whatev": 3, "when": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 24, 25], "whenev": [13, 15, 21], "where": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 25], "wherea": [6, 21], "wherein": [1, 12], "whether": [0, 3, 5, 7, 9, 21, 24], "which": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25], "whichev": [1, 3], "while": [0, 1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 21, 24, 25], "white": 9, "whiteboard": 25, "who": [0, 15], "whole": [1, 3, 4, 5, 9, 11, 13], "whose": [0, 6, 10, 21, 25], "whow": [11, 25], "why": [0, 1, 3, 6, 13, 15, 16, 17, 25], "wide": [0, 1, 3, 6, 7, 12, 18, 19, 24], "widehat": 6, "width": [0, 3, 8, 9, 24], "wieringen": [0, 24, 25], "win": 10, "wind": 9, "wing": [22, 24], "winther": 2, "wiothout": 6, "wiscons": 7, "wisconsin": 10, "wisdom": [6, 25], "wise": [1, 5, 12, 13, 25], "wish": [0, 2, 5, 7, 8, 11, 13, 14, 19, 24, 25], "with_std": [0, 25], "wither": 6, "within": [0, 2, 3, 4, 7, 9, 12, 13, 14, 21, 23, 24], "withinclust": 14, "without": [0, 1, 5, 6, 8, 9, 11, 12, 13, 15, 24, 25], "won": [0, 15, 24], "wonder": 8, "word": [0, 1, 3, 4, 5, 6, 7, 14, 21, 24, 25], "work": [0, 1, 4, 6, 7, 8, 9, 13, 15, 16, 18, 20, 21, 22, 24, 25], "workshop": 24, "world": [0, 8, 16, 25], "worldwid": [0, 24], "worri": 15, "wors": [0, 1, 3, 4, 6, 24], "worth": 9, "would": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19, 21, 24, 25], "wrap": [6, 19, 24], "write": [0, 1, 2, 3, 5, 6, 7, 8, 12, 13, 15, 16, 19, 24, 25], "written": [0, 2, 3, 5, 11, 12, 13, 16, 18, 19, 21, 24, 25], "wrong": [1, 8, 15], "wrongli": 10, "wrote": [5, 11, 25], "wrt": [10, 13], "wth": [10, 13], "www": [18, 19, 23, 24], "wx_1": 8, "x": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24], "x0": 8, "x1": [4, 8, 9, 10, 13], "x1_exampl": 8, "x1d": 8, "x2": [8, 9, 10, 13], "x2d": [8, 11], "x2d_train": 11, "x2dsl": 11, "x3": 8, "x_": [0, 2, 3, 5, 6, 8, 10, 11, 13, 14, 19, 21, 24, 25], "x_0": [0, 5, 11, 19, 24, 25], "x_1": [0, 2, 5, 6, 7, 8, 9, 10, 11, 13, 19, 21, 24, 25], "x_2": [0, 2, 5, 6, 7, 8, 9, 10, 11, 13, 19, 21, 24, 25], "x_3": [8, 19, 21], "x_4": 19, "x_center": 11, "x_data": 1, "x_data_ful": 1, "x_hidden": 2, "x_i": [0, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25], "x_input": 2, "x_ix_": [0, 24], "x_iy_i": 8, "x_j": [0, 2, 8, 9, 12, 16, 21, 25], "x_jy_j": 8, "x_k": [12, 14, 19, 21, 25], "x_l": 21, "x_m": [6, 12, 19, 21], "x_n": [0, 2, 3, 6, 8, 11, 12, 13, 19, 21, 24], "x_new": [9, 10], "x_offset": [6, 25], "x_output": 2, "x_p": [3, 7, 9], "x_poli": 9, "x_poly10": 9, "x_pred": 4, "x_prev": 2, "x_reduc": 11, "x_scale": 8, "x_small": 13, "x_test": [0, 1, 3, 5, 6, 7, 9, 10, 11, 15, 16, 17, 25], "x_test_": 17, "x_test_own": 6, "x_test_scal": [0, 6, 7, 9, 10, 11, 25], "x_tot": 4, "x_train": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25], "x_train_": 17, "x_train_mean": [6, 25], "x_train_own": 6, "x_train_scal": [0, 6, 7, 9, 10, 11, 25], "x_val": 1, "xarrai": [18, 24], "xavier": 1, "xbnew": 13, "xcode": [0, 18, 24], "xdclassiffierconfus": 10, "xdclassiffierroc": 10, "xg_clf": 10, "xgb": 10, "xgbclassifi": 10, "xgboost": 9, "xgboot": 10, "xgbregressor": 10, "xgparam": 10, "xgtree": 10, "xi": [8, 13], "xi_": 8, "xi_1": 8, "xi_i": 8, "xk": 8, "xla": [13, 18, 24], "xlabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 21, 24, 25], "xlim": [6, 10], "xm": 9, "xmesh": 13, "xnew": [0, 13, 24], "xp": 21, "xpanda": [0, 25], "xpd": [5, 11, 25], "xplot": 0, "xscale": [0, 25], "xsr": 9, "xt_x": 13, "xtest": 6, "xtick": [3, 6, 8, 9], "xtrain": 6, "xu": [0, 24], "xx": [0, 19, 24], "xy": [0, 6, 8, 19, 24], "xytext": 8, "xz": [19, 24], "y": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24, 25], "y1": 4, "y2": 4, "y3": 4, "y_": [0, 1, 5, 6, 10, 11, 19, 24, 25], "y_0": [0, 5, 11, 19, 24, 25], "y_1": [0, 5, 8, 9, 11, 13, 19, 24, 25], "y_1y_1": 8, "y_1y_1k": 8, "y_1y_2": 8, "y_1y_2k": 8, "y_1y_n": 8, "y_1y_nk": 8, "y_2": [0, 5, 8, 9, 11, 19, 24, 25], "y_2y_1": 8, "y_2y_1k": 8, "y_2y_2": 8, "y_2y_2k": 8, "y_3": [0, 9, 19], "y_4": 19, "y_data": [0, 1, 5, 6, 24, 25], "y_data_ful": 1, "y_decis": 8, "y_fit": [0, 25], "y_i": [0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 24, 25], "y_if_": 10, "y_ix_": [0, 24], "y_ix_i": [7, 8, 13, 25], "y_iy_jk": 8, "y_j": [6, 8, 12], "y_k": 12, "y_m": 19, "y_model": [0, 4, 5, 6, 24, 25], "y_n": [8, 13], "y_ny_1": 8, "y_ny_1k": 8, "y_ny_2": 8, "y_ny_2k": 8, "y_ny_n": 8, "y_ny_nk": 8, "y_offset": [6, 17, 25], "y_plot": 9, "y_pred": [0, 1, 4, 6, 7, 8, 9, 10, 25], "y_pred1": 9, "y_pred2": 9, "y_pred_rf": 10, "y_pred_tre": 10, "y_proba": [7, 10], "y_scaler": [6, 25], "y_test": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 15, 16, 17, 25], "y_test_onehot": 1, "y_test_predict": [], "y_tot": 4, "y_train": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25], "y_train_mean": [6, 25], "y_train_onehot": 1, "y_train_predict": [], "y_train_scal": [6, 25], "y_val": 1, "ye": [3, 6, 7], "year": [0, 18, 24], "yet": [0, 1, 6, 8, 11, 13, 24], "yi": 13, "yield": [0, 2, 5, 6, 8, 10, 12, 13, 14, 19, 21, 24], "yk": 8, "ylabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 21, 24, 25], "ylim": [3, 6], "ym": 9, "ymesh": 13, "yn": 0, "yo": [8, 9, 10], "yoshua": [1, 23], "you": [0, 1, 3, 4, 5, 6, 8, 9, 10, 11, 13, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25], "young": 0, "your": [1, 2, 4, 5, 6, 8, 11, 13, 15, 17, 18, 19, 24], "your_model_object": 16, "yourself": [11, 13, 24], "youtu": 25, "youtub": 18, "ypred": 6, "ypredict": [0, 13, 24, 25], "ypredict2": 13, "ypredictlasso": 5, "ypredictol": [0, 5], "ypredictown": [6, 25], "ypredictownridg": [6, 25], "ypredictridg": [0, 5, 6, 25], "ypredictskl": [6, 25], "ytest": 6, "ytick": [3, 6, 8, 9], "ytild": [0, 6, 24, 25], "ytildelasso": 5, "ytildenp": [0, 24, 25], "ytildeol": [0, 5], "ytildeownridg": [6, 25], "ytilderidg": [5, 6, 25], "ytrain": 6, "yuxi": 24, "yx": [19, 24], "yy": [19, 24], "yz": [19, 24], "z": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 19, 21, 24, 25], "z_": [1, 2, 12, 19, 24], "z_0": [19, 24], "z_1": [19, 24], "z_2": [19, 24], "z_c": 1, "z_h": 1, "z_hidden": 2, "z_i": [1, 12], "z_j": [1, 12], "z_k": [12, 25], "z_m": 1, "z_mod": 9, "z_o": 1, "z_output": 2, "zaman": 21, "zaxi": 6, "zero": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 24, 25], "zeros_lik": 4, "zeroth": 25, "zfill": 4, "zip": [4, 6], "zm_h": [0, 24], "zn": [], "zone": [], "zoom": 24, "zx": [19, 24], "zy": [19, 24], "zz": [19, 24], "\u00f8yvind": [6, 25]}, "titles": ["3. Linear Regression", "14. Building a Feed Forward Neural Network", "15. Solving Differential Equations with Deep Learning", "16. Convolutional Neural Networks", "17. Recurrent neural networks: Overarching view", "4. Ridge and Lasso Regression", "5. Resampling Methods", "6. Logistic Regression", "8. Support Vector Machines, overarching aims", "9. Decision trees, overarching aims", "10. Ensemble Methods: From a Single Tree to Many Trees and Extreme Boosting, Meet the Jungle of Methods", "11. Basic ideas of the Principal Component Analysis (PCA)", "13. Neural networks", "7. Optimization, the central part of any Machine Learning algortithm", "12. Clustering and Unsupervised Learning", "Exercises week 34", "Exercises week 35", "Exercises week 36", "Applied Data Analysis and Machine Learning", "2. Linear Algebra, Handling of Arrays and more Python Features", "Course setting", "1. Elements of Probability Theory and Statistical Data Analysis", "Teachers and Grading", "Textbooks", "Week 34: Introduction to the course, Logistics and Practicalities", "Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression"], "titleterms": {"": [8, 10], "1": [0, 15, 16, 17, 25], "2": [0, 15, 16, 17, 24, 25], "2023": 22, "3": [0, 15, 16, 17, 25], "34": [15, 24], "35": [16, 25], "36": 17, "4": [0, 15, 16, 17, 25], "5": [0, 16], "A": [0, 1, 4, 8, 9, 24], "And": [24, 25], "In": 22, "Ising": 6, "The": [0, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 15, 18, 24, 25], "To": 24, "With": 4, "about": [24, 25], "activ": [1, 12], "ad": [0, 6, 24, 25], "adaboost": 10, "adagrad": 13, "adam": 13, "adapt": 10, "adjust": 1, "adversari": 4, "again": [3, 9], "ai": 24, "aim": [8, 9, 24], "aka": 24, "algebra": [19, 24], "algorithm": [9, 10, 11, 12, 24, 25], "algortithm": 13, "all": 8, "an": [0, 4, 10, 15, 24], "analys": [5, 25], "analysi": [0, 5, 6, 11, 18, 21, 24, 25], "analyt": [0, 16], "ani": 13, "anoth": 9, "appli": 18, "approach": [0, 8, 14, 24], "approxim": 12, "architectur": 1, "arrai": [19, 24], "assist": 22, "autocorrel": 21, "autograd": [2, 13], "automat": 13, "back": [1, 11, 12, 25], "background": 18, "bag": 10, "base": 13, "basic": [0, 5, 7, 9, 10, 11, 19, 25], "batch": 1, "bay": 5, "befor": 11, "better": 8, "bia": 6, "binari": 1, "bind": 24, "bird": 10, "boldsymbol": 25, "boost": 10, "bootstrap": [6, 10], "boston": [], "breast": 1, "brief": 24, "bring": 12, "build": [1, 3, 9], "c": 24, "calcul": 25, "can": 24, "cancer": [1, 7, 9, 11], "cart": 9, "case": [8, 10, 21, 25], "central": [13, 18, 21], "chain": 12, "chang": 10, "channel": 24, "chi": [0, 24], "choic": 17, "choos": 1, "cifar01": 3, "classic": 11, "classif": [1, 9, 10], "classifi": 8, "clip": 1, "cluster": 14, "cnn": 3, "code": [1, 2, 5, 9, 11, 12, 13, 14, 15, 16, 24, 25], "collect": [1, 3], "commun": 24, "compar": [2, 10, 16], "complet": 25, "complex": [0, 6, 25], "complic": 6, "compon": 11, "comput": 9, "computerlab": 24, "con": 9, "concept": 21, "conjug": 13, "contn": 24, "convex": [8, 13], "convolut": [3, 12], "correl": [11, 25], "cost": [1, 10, 25], "cours": [18, 20, 23, 24], "covari": [5, 11, 21, 25], "cover": 24, "creat": 16, "cross": 6, "cython": 24, "data": [0, 1, 3, 6, 7, 9, 11, 15, 17, 18, 21, 24, 25], "dataset": [1, 3], "david": 24, "deadlin": 24, "deadllin": 22, "decai": 2, "decis": [9, 10], "decomposit": [5, 11, 19, 25], "deeep": [], "deep": [1, 2, 24], "defin": [1, 24], "degre": [0, 17, 25], "deliver": [15, 16], "dens": 0, "deriv": [5, 12, 16, 17, 25], "descent": [2, 10, 13], "design": 25, "detail": [3, 24], "develop": 1, "diagon": 11, "differ": 8, "differenti": [2, 13], "diffus": 2, "dimension": [2, 3, 8], "disadvantag": 9, "discret": 21, "discrimin": 24, "distribut": [5, 21], "do": 1, "doe": 25, "domain": 21, "down": 1, "dropout": 1, "economi": 25, "element": [0, 21, 24], "elimin": 19, "energi": 24, "ensembl": 10, "entropi": 9, "environ": [0, 15], "equat": [0, 2, 12, 25], "error": [0, 10, 24, 25], "essenti": 24, "etc": 24, "euler": 2, "evalu": 1, "exampl": [1, 2, 3, 4, 6, 7, 8, 9, 10, 24, 25], "exercis": [0, 6, 15, 16, 17, 25], "expect": 21, "experi": 21, "explor": 0, "exponenti": 2, "express": [16, 17, 25], "extrapol": 4, "extrem": [10, 24], "ey": 10, "fall": 22, "famili": [1, 24], "famou": 19, "fantast": 25, "featur": [9, 16, 19, 25], "feed": [1, 12], "final": [12, 25], "find": 16, "fine": 1, "first": [4, 12, 24], "fit": [0, 10, 15, 16, 24], "fix": 25, "forc": 3, "forest": 10, "format": 24, "forward": [1, 2, 12], "foster": 24, "fourier": 3, "frank": 6, "freedom": [0, 17, 25], "frequent": 25, "frequentist": [0, 24], "from": [5, 10, 12, 24, 25], "full": 2, "function": [0, 1, 6, 7, 8, 10, 11, 12, 13, 21, 24, 25], "further": [3, 5, 25], "gan": 4, "gaussian": 19, "gd": 13, "gener": [4, 9, 24], "geometr": 11, "gini": 9, "github": 15, "goal": [15, 16, 17], "good": [0, 24], "grade": [22, 24], "gradient": [1, 2, 10, 13], "growth": 2, "ha": 18, "handl": [19, 24], "hessian": 25, "hidden": 2, "hous": [], "how": 16, "hyperparamet": [1, 17], "hyperplan": 8, "i": [0, 1, 24], "id3": 9, "idea": 11, "ii": 24, "implement": [1, 16, 17], "implic": [5, 25], "import": [5, 19, 24, 25], "improv": 1, "includ": 13, "increment": 11, "index": 9, "inform": 22, "input": 2, "instal": [18, 24], "instructor": 22, "interpret": [5, 11, 24, 25], "introduc": [11, 13, 25], "introduct": [0, 6, 18, 19, 24], "invers": [5, 19], "invert": 25, "iter": 10, "its": 25, "jacobian": 25, "jax": 13, "julia": 24, "jungl": 10, "kera": [1, 3], "kernel": [8, 11], "lagrangian": 8, "lasso": [5, 6, 25], "last": 25, "later": [5, 25], "layer": [1, 2, 3, 12], "learn": [0, 1, 2, 11, 13, 14, 15, 16, 17, 18, 24, 25], "least": [5, 6, 16, 24, 25], "lectur": 24, "level": 10, "librari": [18, 24], "likelihood": 7, "limit": [1, 13, 21], "linear": [0, 8, 13, 15, 19, 24, 25], "link": [5, 11, 23, 25], "logist": [7, 24], "loss": 25, "lu": 19, "machin": [0, 8, 13, 18, 24], "main": [21, 24], "make": [0, 9, 10, 25], "mani": [10, 12], "mass": 24, "materi": [24, 25], "math": [5, 25], "mathemat": [3, 5, 8, 25], "matric": [5, 19, 24], "matrix": [1, 5, 11, 12, 16, 19, 24, 25], "matter": 0, "max": 25, "mean": [0, 25], "meet": [5, 10, 21, 24, 25], "mercer": 8, "method": [6, 9, 10, 13, 24], "min": 25, "minim": 24, "ml": 24, "mlp": 12, "mnist": [3, 4], "model": [0, 1, 4, 6, 12, 15, 17, 24], "momentum": 13, "moon": [8, 9], "more": [3, 6, 19, 24, 25], "multilay": 12, "multipl": [1, 3, 17], "multipli": 8, "need": 24, "network": [1, 2, 3, 4, 7, 12, 24], "neural": [1, 2, 3, 4, 7, 12, 24], "new": 4, "non": 8, "normal": [0, 1], "notat": 12, "note": 25, "now": [1, 9, 13], "nuclear": [0, 24], "numba": 24, "number": [0, 2, 21, 25], "numer": [2, 21], "numpi": [19, 24], "object": 3, "obtain": 11, "od": 2, "off": 6, "ol": [5, 6, 15, 16], "one": [2, 12], "oper": 19, "optim": [1, 8, 13, 18, 24, 25], "order": 13, "ordinari": [5, 6, 16, 24, 25], "organ": [0, 24], "oslo": 23, "other": [4, 9, 11, 12, 19, 24], "our": [0, 4, 5, 11, 13, 24, 25], "outcom": [18, 24], "output": 2, "overarch": [0, 4, 8, 9, 24, 25], "overview": [10, 24], "own": [0, 10, 11, 24, 25], "packag": [19, 24], "panda": [24, 25], "paramet": [24, 25], "part": [13, 18], "partial": 2, "pass": 1, "pca": 11, "pdf": 21, "perceptron": 12, "perform": [1, 9], "period": 3, "perspect": 1, "plan": 25, "plethora": 24, "point": 4, "poisson": 2, "polynomi": [3, 16], "popul": 2, "popular": 24, "practic": [13, 22, 24], "pre": [1, 3], "predict": 4, "preprocess": 25, "prerequisit": [3, 18, 24], "princip": 11, "principl": 3, "pro": 9, "probabl": [5, 21], "problem": [1, 2, 13, 24, 25], "procedur": [9, 24], "process": [1, 3], "program": [2, 13], "project": [6, 22, 24], "prop": 13, "propag": [1, 12], "properti": [5, 21, 25], "python": [0, 9, 15, 18, 19, 24], "quick": 8, "r": 24, "random": [10, 11, 21], "read": [9, 24, 25], "real": [6, 24], "recommend": [24, 25], "recurr": [4, 12], "reduc": [0, 25], "reduct": 3, "reformul": 2, "regress": [0, 5, 6, 7, 9, 10, 13, 15, 17, 24, 25], "regular": 1, "relat": [], "relev": [23, 25], "relu": 1, "remark": 3, "remind": [6, 8, 24, 25], "replac": 13, "repositori": 15, "requir": [2, 18], "resampl": 6, "rescal": [6, 25], "residu": 25, "resourc": 2, "result": 25, "revisit": 13, "rewrit": [24, 25], "ridg": [0, 5, 6, 17, 25], "rm": 13, "rule": 12, "same": 13, "sampl": 11, "scale": [17, 25], "schedul": 24, "schemat": 9, "scheme": 2, "scienc": 24, "scikit": [0, 1, 11, 24, 25], "second": 13, "semest": 22, "set": [0, 2, 3, 9, 12, 15, 20, 24, 25], "setup": 15, "sgd": 13, "should": 1, "similar": 13, "simpl": [0, 4, 9, 13, 24, 25], "singl": 10, "singular": [5, 11, 25], "size": 25, "sklearn": 16, "soft": 8, "softmax": 1, "softwar": 24, "solv": 2, "solver": 13, "some": [13, 19, 25], "specifi": 2, "split": [0, 15, 25], "squar": [0, 5, 6, 10, 16, 24, 25], "standard": [13, 25], "state": 0, "statist": [5, 6, 18, 21, 24], "steepest": [10, 13], "stochast": [13, 21], "strongli": 24, "suggest": 24, "summari": [22, 24], "superposit": 3, "supervis": 1, "support": 8, "svd": [5, 25], "systemat": 3, "t": 25, "take": 16, "taken": 24, "teach": 22, "teacher": [22, 24], "technic": 25, "techniqu": [6, 11], "technologi": 18, "tensorflow": [1, 3], "tent": [22, 24], "test": [0, 1, 15, 17, 25], "text": 24, "textbook": [23, 24], "theorem": [5, 8, 11, 12, 21], "theori": 21, "thi": 24, "tip": 13, "togeth": 12, "tool": 24, "top": 1, "topic": 24, "toward": 11, "trade": 6, "tradeoff": 6, "train": [0, 1, 4, 15, 24, 25], "transform": 3, "tree": [9, 10], "tune": 1, "two": [3, 8, 18], "type": [2, 4, 12, 24], "uio": 24, "univers": [12, 23], "unsupervis": 14, "up": [0, 2, 9, 12, 15, 24, 25], "us": [0, 1, 2, 3, 7, 13, 16, 18, 24, 25], "v": 3, "valid": 6, "valu": [5, 11, 21, 25], "variabl": 21, "varianc": 6, "variou": 0, "vector": [8, 12, 16, 19, 24, 25], "versu": 24, "view": [0, 4, 10, 25], "virtual": 15, "visual": [1, 9], "wai": 9, "wave": 2, "we": 24, "week": [15, 16, 17, 24, 25], "weekli": [], "what": [0, 24, 25], "which": 1, "why": 24, "wisconsin": 7, "write": [4, 11], "x": 25, "xgboost": 10, "your": [0, 10, 16, 25]}})
\ No newline at end of file
+Search.setIndex({"alltitles": {"A Classification Tree": [[9, "a-classification-tree"]], "A Frequentist approach to data analysis": [[0, "a-frequentist-approach-to-data-analysis"], [24, "a-frequentist-approach-to-data-analysis"]], "A better approach": [[8, "a-better-approach"]], "A first summary": [[24, "a-first-summary"]], "A quick Reminder on Lagrangian Multipliers": [[8, "a-quick-reminder-on-lagrangian-multipliers"]], "A simple example": [[4, "a-simple-example"]], "A soft classifier": [[8, "a-soft-classifier"]], "A top-down perspective on Neural networks": [[1, "a-top-down-perspective-on-neural-networks"]], "ADAM optimizer": [[13, "adam-optimizer"]], "Activation functions": [[12, "activation-functions"]], "Adaptive boosting: AdaBoost, Basic Algorithm": [[10, "adaptive-boosting-adaboost-basic-algorithm"]], "Adding error analysis and training set up": [[24, "adding-error-analysis-and-training-set-up"], [25, "adding-error-analysis-and-training-set-up"]], "Adjust hyperparameters": [[1, "adjust-hyperparameters"]], "Algorithms for Setting up Decision Trees": [[9, "algorithms-for-setting-up-decision-trees"]], "An Overview of Ensemble Methods": [[10, "an-overview-of-ensemble-methods"]], "An extrapolation example": [[4, "an-extrapolation-example"]], "An optimization/minimization problem": [[24, "an-optimization-minimization-problem"]], "And a corresponding example using scikit-learn": [[26, "and-a-corresponding-example-using-scikit-learn"]], "And finally \\boldsymbol{X}\\boldsymbol{X}^T": [[25, "and-finally-boldsymbol-x-boldsymbol-x-t"]], "And what about using neural networks?": [[24, "and-what-about-using-neural-networks"]], "Another Example, now with a polynomial fit": [[26, "another-example-now-with-a-polynomial-fit"]], "Another example, the moons again": [[9, "another-example-the-moons-again"]], "Applied Data Analysis and Machine Learning": [[18, null]], "Autocorrelation function": [[21, "autocorrelation-function"]], "Automatic differentiation": [[13, "automatic-differentiation"]], "Back to Ridge and LASSO Regression": [[25, "back-to-ridge-and-lasso-regression"], [26, "back-to-ridge-and-lasso-regression"]], "Back to the Cancer Data": [[11, "back-to-the-cancer-data"]], "Bagging": [[10, "bagging"]], "Bagging Examples": [[10, "bagging-examples"]], "Basic Matrix Features": [[19, "basic-matrix-features"]], "Basic ideas of the Principal Component Analysis (PCA)": [[11, null]], "Basic math of the SVD": [[5, "basic-math-of-the-svd"], [25, "basic-math-of-the-svd"], [26, "basic-math-of-the-svd"]], "Basics": [[7, "basics"]], "Basics of a tree": [[9, "basics-of-a-tree"]], "Batch Normalization": [[1, "batch-normalization"]], "Bayes\u2019 Theorem and Ridge and Lasso Regression": [[5, "bayes-theorem-and-ridge-and-lasso-regression"]], "Boosting, a Bird\u2019s Eye View": [[10, "boosting-a-bird-s-eye-view"]], "Bootstrap": [[6, "bootstrap"]], "Bringing it together, first back propagation equation": [[12, "bringing-it-together-first-back-propagation-equation"]], "Building a Feed Forward Neural Network": [[1, null]], "Building a tree, regression": [[9, "building-a-tree-regression"]], "Building neural networks in Tensorflow and Keras": [[1, "building-neural-networks-in-tensorflow-and-keras"]], "CNNs in more detail, building convolutional neural networks in Tensorflow and Keras": [[3, "cnns-in-more-detail-building-convolutional-neural-networks-in-tensorflow-and-keras"]], "Cancer Data again now with Decision Trees and other Methods": [[9, "cancer-data-again-now-with-decision-trees-and-other-methods"]], "Choose cost function and optimizer": [[1, "choose-cost-function-and-optimizer"]], "Classical PCA Theorem": [[11, "classical-pca-theorem"]], "Clustering and Unsupervised Learning": [[14, null]], "Code for SVD and Inversion of Matrices": [[5, "code-for-svd-and-inversion-of-matrices"]], "Codes and Approaches": [[14, "codes-and-approaches"]], "Codes for the SVD": [[5, "codes-for-the-svd"], [25, "codes-for-the-svd"], [26, "codes-for-the-svd"]], "Coding Setup and Linear Regression": [[15, "coding-setup-and-linear-regression"]], "Collect and pre-process data": [[1, "collect-and-pre-process-data"]], "Communication channels": [[24, "communication-channels"]], "Compare Bagging on Trees with Random Forests": [[10, "compare-bagging-on-trees-with-random-forests"]], "Comparing with a numerical scheme": [[2, "comparing-with-a-numerical-scheme"]], "Comparison with OLS": [[26, "comparison-with-ols"]], "Computing the Gini index": [[9, "computing-the-gini-index"]], "Conditions on convex functions": [[26, "conditions-on-convex-functions"]], "Conjugate gradient method": [[13, "conjugate-gradient-method"]], "Convex function": [[26, "convex-function"]], "Convex functions": [[13, "convex-functions"], [26, "convex-functions"]], "Convolution Examples: Polynomial multiplication": [[3, "convolution-examples-polynomial-multiplication"]], "Convolution Examples: Principle of Superposition and Periodic Forces (Fourier Transforms)": [[3, "convolution-examples-principle-of-superposition-and-periodic-forces-fourier-transforms"]], "Convolutional Neural Network": [[12, "convolutional-neural-network"]], "Convolutional Neural Networks": [[3, null]], "Correlation Function and Design/Feature Matrix": [[25, "correlation-function-and-design-feature-matrix"]], "Correlation Matrix": [[11, "correlation-matrix"], [25, "correlation-matrix"]], "Correlation Matrix with Pandas": [[25, "correlation-matrix-with-pandas"]], "Course Format": [[24, "course-format"]], "Course setting": [[20, null]], "Covariance Matrix Examples": [[25, "covariance-matrix-examples"]], "Covariance and Correlation Matrix": [[25, "covariance-and-correlation-matrix"]], "Cross-validation": [[6, "cross-validation"]], "Deadlines for projects (tentative)": [[24, "deadlines-for-projects-tentative"]], "Decision trees, overarching aims": [[9, null]], "Deep learning methods": [[24, "deep-learning-methods"]], "Define model and architecture": [[1, "define-model-and-architecture"]], "Defining the cost function": [[1, "defining-the-cost-function"]], "Deliverables": [[15, "deliverables"], [16, "deliverables"]], "Derivatives and the chain rule": [[12, "derivatives-and-the-chain-rule"]], "Derivatives, example 1": [[25, "derivatives-example-1"]], "Deriving OLS from a probability distribution": [[5, "deriving-ols-from-a-probability-distribution"]], "Deriving and Implementing Ordinary Least Squares": [[16, "deriving-and-implementing-ordinary-least-squares"]], "Deriving and Implementing Ridge Regression": [[17, "deriving-and-implementing-ridge-regression"]], "Deriving the Lasso Regression Equations": [[25, "deriving-the-lasso-regression-equations"], [26, "deriving-the-lasso-regression-equations"], [26, "id6"]], "Deriving the Ridge Regression Equations": [[25, "deriving-the-ridge-regression-equations"], [26, "deriving-the-ridge-regression-equations"], [26, "id3"]], "Deriving the back propagation code for a multilayer perceptron model": [[12, "deriving-the-back-propagation-code-for-a-multilayer-perceptron-model"]], "Developing a code for doing neural networks with back propagation": [[1, "developing-a-code-for-doing-neural-networks-with-back-propagation"]], "Diagonalize the sample covariance matrix to obtain the principal components": [[11, "diagonalize-the-sample-covariance-matrix-to-obtain-the-principal-components"]], "Different kernels and Mercer\u2019s theorem": [[8, "different-kernels-and-mercer-s-theorem"]], "Disadvantages": [[9, "disadvantages"]], "Discriminative Modeling": [[24, "discriminative-modeling"]], "Domains and probabilities": [[21, "domains-and-probabilities"]], "Dropout": [[1, "dropout"]], "Economy-size SVD": [[25, "economy-size-svd"], [26, "economy-size-svd"]], "Elements of Probability Theory and Statistical Data Analysis": [[21, null]], "Ensemble Methods: From a Single Tree to Many Trees and Extreme Boosting, Meet the Jungle of Methods": [[10, null]], "Entropy and the ID3 algorithm": [[9, "entropy-and-the-id3-algorithm"]], "Essential elements of ML": [[24, "essential-elements-of-ml"]], "Evaluate model performance on test data": [[1, "evaluate-model-performance-on-test-data"]], "Example 2": [[25, "example-2"]], "Example 3": [[25, "example-3"]], "Example 4": [[25, "example-4"]], "Example Matrix": [[25, "example-matrix"], [26, "example-matrix"]], "Example of discriminative modeling, taken from Generative Deep Learning by David Foster": [[24, "example-of-discriminative-modeling-taken-from-generative-deep-learning-by-david-foster"]], "Example of generative modeling, taken from Generative Deep Learning by David Foster": [[24, "example-of-generative-modeling-taken-from-generative-deep-learning-by-david-foster"]], "Example of own Standard scaling": [[25, "example-of-own-standard-scaling"]], "Example relevant for the exercises": [[25, "example-relevant-for-the-exercises"]], "Example: Exponential decay": [[2, "example-exponential-decay"]], "Example: Population growth": [[2, "example-population-growth"]], "Example: The diffusion equation": [[2, "example-the-diffusion-equation"]], "Example: binary classification problem": [[1, "example-binary-classification-problem"]], "Examples": [[24, "examples"]], "Examples of likelihood functions used in logistic regression and neural networks": [[7, "examples-of-likelihood-functions-used-in-logistic-regression-and-neural-networks"]], "Exercise 1 - Choice of model and degrees of freedom": [[17, "exercise-1-choice-of-model-and-degrees-of-freedom"]], "Exercise 1 - Finding the derivative of Matrix-Vector expressions": [[16, "exercise-1-finding-the-derivative-of-matrix-vector-expressions"]], "Exercise 1 - Github Setup": [[15, "exercise-1-github-setup"]], "Exercise 1: Setting up various Python environments": [[0, "exercise-1-setting-up-various-python-environments"]], "Exercise 2 - Deriving the expression for OLS": [[16, "exercise-2-deriving-the-expression-for-ols"]], "Exercise 2 - Deriving the expression for Ridge Regression": [[17, "exercise-2-deriving-the-expression-for-ridge-regression"]], "Exercise 2 - Setting up a Github repository": [[15, "exercise-2-setting-up-a-github-repository"]], "Exercise 2: making your own data and exploring scikit-learn": [[0, "exercise-2-making-your-own-data-and-exploring-scikit-learn"]], "Exercise 3 - Creating feature matrix and implementing OLS using the analytical expression": [[16, "exercise-3-creating-feature-matrix-and-implementing-ols-using-the-analytical-expression"]], "Exercise 3 - Fitting an OLS model to data": [[15, "exercise-3-fitting-an-ols-model-to-data"]], "Exercise 3 - Scaling data": [[17, "exercise-3-scaling-data"]], "Exercise 3 - Setting up a Python virtual environment": [[15, "exercise-3-setting-up-a-python-virtual-environment"]], "Exercise 3: Normalizing our data": [[0, "exercise-3-normalizing-our-data"]], "Exercise 4 - Fitting a polynomial": [[16, "exercise-4-fitting-a-polynomial"]], "Exercise 4 - Implementing Ridge Regression": [[17, "exercise-4-implementing-ridge-regression"]], "Exercise 4 - Testing multiple hyperparameters": [[17, "exercise-4-testing-multiple-hyperparameters"]], "Exercise 4 - The train-test split": [[15, "exercise-4-the-train-test-split"]], "Exercise 4: Adding Ridge Regression": [[0, "exercise-4-adding-ridge-regression"]], "Exercise 5 - Comparing your code with sklearn": [[16, "exercise-5-comparing-your-code-with-sklearn"]], "Exercise 5: Analytical exercises": [[0, "exercise-5-analytical-exercises"]], "Exercise: Cross-validation as resampling techniques, adding more complexity": [[6, "exercise-cross-validation-as-resampling-techniques-adding-more-complexity"]], "Exercise: Analysis of real data": [[6, "exercise-analysis-of-real-data"]], "Exercise: Bias-variance trade-off and resampling techniques": [[6, "exercise-bias-variance-trade-off-and-resampling-techniques"]], "Exercise: Lasso Regression on the Franke function with resampling": [[6, "exercise-lasso-regression-on-the-franke-function-with-resampling"]], "Exercise: Ordinary Least Square (OLS) on the Franke function": [[6, "exercise-ordinary-least-square-ols-on-the-franke-function"]], "Exercise: Ridge Regression on the Franke function with resampling": [[6, "exercise-ridge-regression-on-the-franke-function-with-resampling"]], "Exercises": [[0, "exercises"]], "Exercises and Projects": [[6, "exercises-and-projects"]], "Exercises week 34": [[15, null]], "Exercises week 35": [[16, null]], "Exercises week 36": [[17, null]], "Expectation values": [[21, "expectation-values"]], "Extending to more than one variable": [[26, "extending-to-more-than-one-variable"]], "Extremely useful tools, strongly recommended": [[24, "extremely-useful-tools-strongly-recommended"]], "Feed-forward neural networks": [[12, "feed-forward-neural-networks"]], "Feed-forward pass": [[1, "feed-forward-pass"]], "Final back propagating equation": [[12, "final-back-propagating-equation"]], "Fine-tuning neural network hyperparameters": [[1, "fine-tuning-neural-network-hyperparameters"]], "Fitting an Equation of State for Dense Nuclear Matter": [[0, "fitting-an-equation-of-state-for-dense-nuclear-matter"]], "Fixing the singularity": [[25, "fixing-the-singularity"], [26, "fixing-the-singularity"]], "Frequently used scaling functions": [[25, "frequently-used-scaling-functions"]], "From OLS to Ridge and Lasso": [[26, "from-ols-to-ridge-and-lasso"]], "From one to many layers, the universal approximation theorem": [[12, "from-one-to-many-layers-the-universal-approximation-theorem"]], "Functionality in Scikit-Learn": [[25, "functionality-in-scikit-learn"]], "Further Dimensionality Remarks": [[3, "further-dimensionality-remarks"]], "Further properties (important for our analyses later)": [[5, "further-properties-important-for-our-analyses-later"], [25, "further-properties-important-for-our-analyses-later"], [26, "further-properties-important-for-our-analyses-later"]], "Gaussian Elimination": [[19, "gaussian-elimination"]], "General Features": [[9, "general-features"]], "General linear models and linear algebra": [[24, "general-linear-models-and-linear-algebra"]], "Generalizing the fitting procedure as a linear algebra problem": [[24, "generalizing-the-fitting-procedure-as-a-linear-algebra-problem"], [24, "id1"]], "Generative Adversarial Networks": [[4, "generative-adversarial-networks"]], "Generative Models": [[4, "generative-models"]], "Generative Versus Discriminative Modeling": [[24, "generative-versus-discriminative-modeling"]], "Geometric Interpretation and link with Singular Value Decomposition": [[11, "geometric-interpretation-and-link-with-singular-value-decomposition"]], "Gradient Boosting, Classification Example": [[10, "gradient-boosting-classification-example"]], "Gradient Boosting, Examples of Regression": [[10, "gradient-boosting-examples-of-regression"]], "Gradient Clipping": [[1, "gradient-clipping"]], "Gradient Descent Example": [[26, "id1"]], "Gradient boosting: Basics with Steepest Descent/Functional Gradient Descent": [[10, "gradient-boosting-basics-with-steepest-descent-functional-gradient-descent"]], "Gradient descent": [[2, "gradient-descent"]], "Gradient descent and Ridge": [[26, "gradient-descent-and-ridge"]], "Gradient descent example": [[26, "gradient-descent-example"]], "Grading": [[22, "grading"], [22, "id2"], [24, "grading"]], "How to take derivatives of Matrix-Vector expressions": [[16, "how-to-take-derivatives-of-matrix-vector-expressions"]], "Hyperplanes and all that": [[8, "hyperplanes-and-all-that"]], "Important Matrix and vector handling packages": [[19, "important-matrix-and-vector-handling-packages"]], "Important technicalities: More on Rescaling data": [[25, "important-technicalities-more-on-rescaling-data"]], "Improving performance": [[1, "improving-performance"]], "In summary": [[22, "in-summary"]], "Including Stochastic Gradient Descent with Autograd": [[13, "including-stochastic-gradient-descent-with-autograd"]], "Incremental PCA": [[11, "incremental-pca"]], "Installing R, C++, cython or Julia": [[24, "installing-r-c-cython-or-julia"]], "Installing R, C++, cython, Numba etc": [[24, "installing-r-c-cython-numba-etc"]], "Instructor information": [[22, "instructor-information"]], "Interpretations and optimizing our parameters": [[24, "interpretations-and-optimizing-our-parameters"], [24, "id2"], [24, "id3"], [25, "interpretations-and-optimizing-our-parameters"], [25, "id1"], [25, "id2"]], "Interpreting the Ridge results": [[25, "interpreting-the-ridge-results"], [26, "interpreting-the-ridge-results"], [26, "id4"]], "Introducing JAX": [[13, "introducing-jax"]], "Introducing the Covariance and Correlation functions": [[11, "introducing-the-covariance-and-correlation-functions"], [25, "introducing-the-covariance-and-correlation-functions"]], "Introduction": [[0, "introduction"], [6, "introduction"], [18, "introduction"], [19, "introduction"]], "Iterative Fitting, Classification and AdaBoost": [[10, "iterative-fitting-classification-and-adaboost"]], "Iterative Fitting, Regression and Squared-error Cost Function": [[10, "iterative-fitting-regression-and-squared-error-cost-function"]], "Kernel PCA": [[11, "kernel-pca"]], "Kernels and non-linearity": [[8, "kernels-and-non-linearity"]], "LU Decomposition, the inverse of a matrix": [[19, "lu-decomposition-the-inverse-of-a-matrix"]], "Lasso Regression": [[26, "lasso-regression"]], "Lasso case": [[26, "lasso-case"]], "Layers": [[1, "layers"]], "Layers used to build CNNs": [[3, "layers-used-to-build-cnns"]], "Learning goals": [[15, "learning-goals"], [16, "learning-goals"], [17, "learning-goals"]], "Learning outcomes": [[18, "learning-outcomes"], [24, "learning-outcomes"]], "Lectures and ComputerLab": [[24, "lectures-and-computerlab"]], "Limitations of supervised learning with deep networks": [[1, "limitations-of-supervised-learning-with-deep-networks"]], "Linear Algebra, Handling of Arrays and more Python Features": [[19, null]], "Linear Regression": [[0, null]], "Linear Regression Problems": [[25, "linear-regression-problems"], [26, "linear-regression-problems"]], "Linear Regression and the SVD": [[26, "linear-regression-and-the-svd"]], "Linear Regression, basic elements": [[0, "linear-regression-basic-elements"]], "Linking Bayes\u2019 Theorem with Ridge and Lasso Regression": [[5, "linking-bayes-theorem-with-ridge-and-lasso-regression"]], "Linking the regression analysis with a statistical interpretation": [[5, "linking-the-regression-analysis-with-a-statistical-interpretation"]], "Linking with the SVD": [[5, "linking-with-the-svd"], [25, "linking-with-the-svd"]], "Links to relevant courses at the University of Oslo": [[23, "links-to-relevant-courses-at-the-university-of-oslo"]], "Logistic Regression": [[7, null], [7, "id1"]], "MNIST and GANs": [[4, "mnist-and-gans"]], "Machine Learning": [[24, "machine-learning"]], "Machine learning": [[18, "machine-learning"]], "Main textbooks": [[24, "main-textbooks"]], "Making a tree": [[9, "making-a-tree"]], "Making your own Bootstrap: Changing the Level of the Decision Tree": [[10, "making-your-own-bootstrap-changing-the-level-of-the-decision-tree"]], "Making your own test-train splitting": [[25, "making-your-own-test-train-splitting"]], "Material for exercises week 35": [[25, "material-for-exercises-week-35"]], "Material for lab sessions sessions Tuesday and Wednesday": [[26, "material-for-lab-sessions-sessions-tuesday-and-wednesday"]], "Material for lecture Monday September 2": [[26, "material-for-lecture-monday-september-2"]], "Mathematical Interpretation of Ordinary Least Squares": [[5, "mathematical-interpretation-of-ordinary-least-squares"], [25, "mathematical-interpretation-of-ordinary-least-squares"], [26, "mathematical-interpretation-of-ordinary-least-squares"]], "Mathematical optimization of convex functions": [[8, "mathematical-optimization-of-convex-functions"]], "Mathematics of CNNs": [[3, "mathematics-of-cnns"]], "Mathematics of the SVD and implications": [[5, "mathematics-of-the-svd-and-implications"], [25, "mathematics-of-the-svd-and-implications"], [26, "mathematics-of-the-svd-and-implications"]], "Matrices in Python": [[24, "matrices-in-python"]], "Matrix multiplication": [[1, "matrix-multiplication"]], "Matrix-vector notation and activation": [[12, "matrix-vector-notation-and-activation"]], "Meet the covariance!": [[21, "meet-the-covariance"]], "Meet the Covariance Matrix": [[5, "meet-the-covariance-matrix"], [25, "meet-the-covariance-matrix"]], "Meet the Hessian Matrix": [[25, "meet-the-hessian-matrix"]], "Meet the Pandas": [[24, "meet-the-pandas"]], "Min-Max Scaling": [[25, "min-max-scaling"]], "Momentum based GD": [[13, "momentum-based-gd"]], "More complicated Example: The Ising model": [[6, "more-complicated-example-the-ising-model"]], "More interpretations": [[25, "more-interpretations"], [26, "more-interpretations"], [26, "id5"]], "More on Dimensionalities": [[3, "more-on-dimensionalities"]], "More on Rescaling data": [[6, "more-on-rescaling-data"]], "More on Steepest descent": [[26, "more-on-steepest-descent"]], "More on convex functions": [[26, "more-on-convex-functions"]], "More preprocessing": [[25, "more-preprocessing"]], "Multilayer perceptrons": [[12, "multilayer-perceptrons"]], "Network requirements": [[2, "network-requirements"]], "Neural Networks vs CNNs": [[3, "neural-networks-vs-cnns"]], "Neural networks": [[12, null]], "Note about SVD Calculations": [[25, "note-about-svd-calculations"], [26, "note-about-svd-calculations"]], "Note on Scikit-Learn": [[26, "note-on-scikit-learn"]], "Numerical experiments and the covariance, central limit theorem": [[21, "numerical-experiments-and-the-covariance-central-limit-theorem"]], "Numpy and arrays": [[19, "numpy-and-arrays"], [24, "numpy-and-arrays"]], "Numpy examples and Important Matrix and vector handling packages": [[24, "numpy-examples-and-important-matrix-and-vector-handling-packages"]], "Optimization and gradient descent, the central part of any Machine Learning algortithm": [[26, "optimization-and-gradient-descent-the-central-part-of-any-machine-learning-algortithm"]], "Optimization, the central part of any Machine Learning algortithm": [[13, null]], "Optimizing our parameters": [[24, "optimizing-our-parameters"]], "Optimizing our parameters, more details": [[24, "optimizing-our-parameters-more-details"]], "Optimizing the cost function": [[1, "optimizing-the-cost-function"]], "Organizing our data": [[0, "organizing-our-data"], [24, "organizing-our-data"]], "Other Matrix and Vector Operations": [[19, "other-matrix-and-vector-operations"]], "Other Types of Recurrent Neural Networks": [[4, "other-types-of-recurrent-neural-networks"]], "Other courses on Data science and Machine Learning at UiO": [[24, "other-courses-on-data-science-and-machine-learning-at-uio"]], "Other courses on Data science and Machine Learning at UiO, contn": [[24, "other-courses-on-data-science-and-machine-learning-at-uio-contn"]], "Other popular texts": [[24, "other-popular-texts"]], "Other techniques": [[11, "other-techniques"]], "Other types of networks": [[12, "other-types-of-networks"]], "Other ways of visualizing the trees": [[9, "other-ways-of-visualizing-the-trees"]], "Our model for the nuclear binding energies": [[24, "our-model-for-the-nuclear-binding-energies"]], "Overview of first week": [[24, "overview-of-first-week"]], "Own code for Ordinary Least Squares": [[24, "own-code-for-ordinary-least-squares"], [25, "own-code-for-ordinary-least-squares"]], "PCA and scikit-learn": [[11, "pca-and-scikit-learn"]], "Pandas AI": [[24, "pandas-ai"]], "Partial Differential Equations": [[2, "partial-differential-equations"]], "Plans for week 35": [[25, "plans-for-week-35"]], "Plans for week 36": [[26, "plans-for-week-36"]], "Practical tips": [[13, "practical-tips"]], "Practicalities": [[22, "practicalities"], [22, "id1"]], "Predicting New Points With A Trained Recurrent Neural Network": [[4, "predicting-new-points-with-a-trained-recurrent-neural-network"]], "Preprocessing our data": [[25, "preprocessing-our-data"]], "Prerequisites": [[24, "prerequisites"]], "Prerequisites and background": [[18, "prerequisites-and-background"]], "Prerequisites: Collect and pre-process data": [[3, "prerequisites-collect-and-pre-process-data"]], "Probability Distribution Functions": [[21, "probability-distribution-functions"]], "Program example for gradient descent with Ridge Regression": [[26, "program-example-for-gradient-descent-with-ridge-regression"]], "Program for stochastic gradient": [[13, "program-for-stochastic-gradient"]], "Properties of PDFs": [[21, "properties-of-pdfs"]], "Pros and cons of trees, pros": [[9, "pros-and-cons-of-trees-pros"]], "Python installers": [[18, "python-installers"], [24, "python-installers"]], "RMS prop": [[13, "rms-prop"]], "Random Numbers": [[21, "random-numbers"]], "Random forests": [[10, "random-forests"]], "Randomized PCA": [[11, "randomized-pca"]], "Reading material": [[24, "reading-material"]], "Reading recommendations:": [[25, "reading-recommendations"]], "Reading suggestions week 34": [[24, "reading-suggestions-week-34"]], "Recurrent neural networks": [[12, "recurrent-neural-networks"]], "Recurrent neural networks: Overarching view": [[4, null]], "Reducing the number of degrees of freedom, overarching view": [[0, "reducing-the-number-of-degrees-of-freedom-overarching-view"], [25, "reducing-the-number-of-degrees-of-freedom-overarching-view"]], "Reformulating the problem": [[2, "reformulating-the-problem"]], "Regression Case": [[10, "regression-case"]], "Regression analysis, overarching aims": [[24, "regression-analysis-overarching-aims"]], "Regression analysis, overarching aims II": [[24, "regression-analysis-overarching-aims-ii"]], "Regularization": [[1, "regularization"]], "Reminder from last week": [[25, "reminder-from-last-week"]], "Reminder on Newton-Raphson\u2019s method": [[26, "reminder-on-newton-raphson-s-method"]], "Reminder on Statistics": [[6, "reminder-on-statistics"]], "Replace or not": [[13, "replace-or-not"]], "Required Technologies": [[18, "required-technologies"]], "Resampling Methods": [[6, null]], "Resampling methods": [[6, "id1"]], "Residual Error": [[25, "residual-error"], [26, "residual-error"]], "Resources on differential equations and deep learning": [[2, "resources-on-differential-equations-and-deep-learning"]], "Revisiting Ordinary Least Squares": [[26, "revisiting-ordinary-least-squares"]], "Revisiting our Linear Regression Solvers": [[13, "revisiting-our-linear-regression-solvers"]], "Rewriting the Covariance and/or Correlation Matrix": [[25, "rewriting-the-covariance-and-or-correlation-matrix"]], "Rewriting the fitting procedure as a linear algebra problem": [[24, "rewriting-the-fitting-procedure-as-a-linear-algebra-problem"]], "Rewriting the fitting procedure as a linear algebra problem, more details": [[24, "rewriting-the-fitting-procedure-as-a-linear-algebra-problem-more-details"]], "Ridge Regression": [[26, "ridge-regression"]], "Ridge and LASSO Regression": [[25, "ridge-and-lasso-regression"], [26, "ridge-and-lasso-regression"], [26, "id2"]], "Ridge and Lasso Regression": [[5, null], [5, "id1"]], "SVD analysis": [[26, "svd-analysis"]], "Same code but now with momentum gradient descent": [[13, "same-code-but-now-with-momentum-gradient-descent"]], "Schedule first week": [[24, "schedule-first-week"]], "Schematic Regression Procedure": [[9, "schematic-regression-procedure"]], "Setting up the Back propagation algorithm": [[12, "setting-up-the-back-propagation-algorithm"]], "Setting up the Matrix to be inverted": [[25, "setting-up-the-matrix-to-be-inverted"], [26, "setting-up-the-matrix-to-be-inverted"]], "Setting up the network using Autograd; The full program": [[2, "setting-up-the-network-using-autograd-the-full-program"]], "Similar (second order function now) problem but now with AdaGrad": [[13, "similar-second-order-function-now-problem-but-now-with-adagrad"]], "Simple Python Code to read in Data and perform Classification": [[9, "simple-python-code-to-read-in-data-and-perform-classification"]], "Simple case": [[25, "simple-case"], [26, "simple-case"]], "Simple code for solving the above problem": [[26, "simple-code-for-solving-the-above-problem"]], "Simple example to illustrate Ordinary Least Squares, Ridge and Lasso Regression": [[26, "simple-example-to-illustrate-ordinary-least-squares-ridge-and-lasso-regression"]], "Simple geometric interpretation": [[26, "simple-geometric-interpretation"]], "Simple linear regression model using scikit-learn": [[0, "simple-linear-regression-model-using-scikit-learn"], [24, "simple-linear-regression-model-using-scikit-learn"]], "Simple program": [[26, "simple-program"]], "Software and needed installations": [[24, "software-and-needed-installations"]], "Solving Differential Equations with Deep Learning": [[2, null]], "Solving the one dimensional Poisson equation": [[2, "solving-the-one-dimensional-poisson-equation"]], "Solving the wave equation with Neural Networks": [[2, "solving-the-wave-equation-with-neural-networks"]], "Some famous Matrices": [[19, "some-famous-matrices"]], "Some simple problems": [[13, "some-simple-problems"], [26, "some-simple-problems"]], "Some useful matrix and vector expressions": [[25, "some-useful-matrix-and-vector-expressions"]], "Splitting our Data in Training and Test data": [[0, "splitting-our-data-in-training-and-test-data"], [25, "splitting-our-data-in-training-and-test-data"]], "Standard steepest descent": [[13, "standard-steepest-descent"]], "Statistical analysis and optimization of data": [[18, "statistical-analysis-and-optimization-of-data"], [24, "statistical-analysis-and-optimization-of-data"]], "Steepest descent": [[13, "steepest-descent"], [26, "steepest-descent"]], "Stochastic Gradient Descent (SGD)": [[13, "stochastic-gradient-descent-sgd"]], "Stochastic variables and the main concepts, the discrete case": [[21, "stochastic-variables-and-the-main-concepts-the-discrete-case"]], "Support Vector Machines, overarching aims": [[8, null]], "Systematic reduction": [[3, "systematic-reduction"]], "Teachers": [[24, "teachers"]], "Teachers and Grading": [[22, null]], "Teaching Assistants Fall semester 2023": [[22, "teaching-assistants-fall-semester-2023"]], "Tentative deadllines for projects": [[22, "tentative-deadllines-for-projects"]], "Testing the Means Squared Error as function of Complexity": [[0, "testing-the-means-squared-error-as-function-of-complexity"], [25, "testing-the-means-squared-error-as-function-of-complexity"]], "Textbooks": [[23, null]], "The Algorithm before theorem": [[11, "the-algorithm-before-theorem"]], "The Breast Cancer Data, now with Keras": [[1, "the-breast-cancer-data-now-with-keras"]], "The CART algorithm for Classification": [[9, "the-cart-algorithm-for-classification"]], "The CART algorithm for Regression": [[9, "the-cart-algorithm-for-regression"]], "The CIFAR01 data set": [[3, "the-cifar01-data-set"]], "The Hessian matrix": [[26, "the-hessian-matrix"]], "The Hessian matrix for Ridge Regression": [[26, "the-hessian-matrix-for-ridge-regression"]], "The Jacobian": [[25, "the-jacobian"]], "The MNIST dataset again": [[3, "the-mnist-dataset-again"]], "The OLS case": [[26, "the-ols-case"]], "The RELU function family": [[1, "the-relu-function-family"]], "The Ridge case": [[26, "the-ridge-case"]], "The SVD, a Fantastic Algorithm": [[25, "the-svd-a-fantastic-algorithm"], [26, "the-svd-a-fantastic-algorithm"]], "The Softmax function": [[1, "the-softmax-function"]], "The \\chi^2 function": [[0, "the-chi-2-function"], [24, "the-chi-2-function"], [24, "id4"], [24, "id5"], [24, "id6"], [24, "id7"], [24, "id8"]], "The bias-variance tradeoff": [[6, "the-bias-variance-tradeoff"]], "The code for solving the ODE": [[2, "the-code-for-solving-the-ode"]], "The complete code with a simple data set": [[25, "the-complete-code-with-a-simple-data-set"]], "The cost/loss function": [[25, "the-cost-loss-function"]], "The course has two central parts": [[18, "the-course-has-two-central-parts"]], "The derivative of the cost/loss function": [[26, "the-derivative-of-the-cost-loss-function"]], "The equations": [[26, "the-equations"]], "The equations for ordinary least squares": [[25, "the-equations-for-ordinary-least-squares"]], "The first Case": [[26, "the-first-case"]], "The ideal": [[26, "the-ideal"]], "The logistic function": [[7, "the-logistic-function"]], "The mean squared error and its derivative": [[25, "the-mean-squared-error-and-its-derivative"]], "The moons example": [[8, "the-moons-example"]], "The multilayer perceptron (MLP)": [[12, "the-multilayer-perceptron-mlp"]], "The network with one input layer, specified number of hidden layers, and one output layer": [[2, "the-network-with-one-input-layer-specified-number-of-hidden-layers-and-one-output-layer"]], "The plethora of machine learning algorithms/methods": [[24, "the-plethora-of-machine-learning-algorithms-methods"]], "The sensitiveness of the gradient descent": [[26, "the-sensitiveness-of-the-gradient-descent"]], "The singular value decomposition": [[5, "the-singular-value-decomposition"], [25, "the-singular-value-decomposition"], [26, "the-singular-value-decomposition"]], "The two-dimensional case": [[8, "the-two-dimensional-case"]], "To our real data: nuclear binding energies. Brief reminder on masses and binding energies": [[24, "to-our-real-data-nuclear-binding-energies-brief-reminder-on-masses-and-binding-energies"]], "Topics covered in this course: Statistical analysis and optimization of data": [[24, "topics-covered-in-this-course-statistical-analysis-and-optimization-of-data"]], "Towards the PCA theorem": [[11, "towards-the-pca-theorem"]], "Train and test datasets": [[1, "train-and-test-datasets"]], "Two-dimensional Objects": [[3, "two-dimensional-objects"]], "Type of problem": [[2, "type-of-problem"]], "Types of Machine Learning": [[24, "types-of-machine-learning"]], "Useful Python libraries": [[18, "useful-python-libraries"], [24, "useful-python-libraries"]], "Using Autograd": [[13, "using-autograd"]], "Using forward Euler to solve the ODE": [[2, "using-forward-euler-to-solve-the-ode"]], "Using gradient descent methods, limitations": [[13, "using-gradient-descent-methods-limitations"], [26, "using-gradient-descent-methods-limitations"]], "Visualization": [[1, "visualization"], [1, "id1"]], "Visualizing the Tree, Classification": [[9, "visualizing-the-tree-classification"]], "Week 34: Introduction to the course, Logistics and Practicalities": [[24, null]], "Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression": [[25, null]], "Week 36: Linear Regression and Gradient descent": [[26, null]], "What Is Generative Modeling?": [[24, "what-is-generative-modeling"]], "What does it mean?": [[25, "what-does-it-mean"], [26, "what-does-it-mean"]], "What is Machine Learning?": [[0, "what-is-machine-learning"]], "What is a good model?": [[0, "what-is-a-good-model"], [24, "what-is-a-good-model"]], "What is a good model? Can we define it?": [[24, "what-is-a-good-model-can-we-define-it"]], "Which activation function should I use?": [[1, "which-activation-function-should-i-use"]], "Why Linear Regression (aka Ordinary Least Squares and family)": [[24, "why-linear-regression-aka-ordinary-least-squares-and-family"]], "Wisconsin Cancer Data": [[7, "wisconsin-cancer-data"]], "With Lasso Regression": [[26, "with-lasso-regression"]], "Writing Our First Generative Adversarial Network": [[4, "writing-our-first-generative-adversarial-network"]], "Writing our own PCA code": [[11, "writing-our-own-pca-code"]], "Writing the Cost Function": [[26, "writing-the-cost-function"]], "XGBoost: Extreme Gradient Boosting": [[10, "xgboost-extreme-gradient-boosting"]], "Yet another Example": [[26, "yet-another-example"]], "a) Expression for Ridge regression": [[17, "a-expression-for-ridge-regression"]], "scikit-learn implementation": [[1, "scikit-learn-implementation"]]}, "docnames": ["chapter1", "chapter10", "chapter11", "chapter12", "chapter13", "chapter2", "chapter3", "chapter4", "chapter5", "chapter6", "chapter7", "chapter8", "chapter9", "chapteroptimization", "clustering", "exercisesweek34", "exercisesweek35", "exercisesweek36", "intro", "linalg", "schedule", "statistics", "teachers", "textbooks", "week34", "week35", "week36"], "envversion": {"sphinx": 62, "sphinx.domains.c": 3, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 9, "sphinx.domains.index": 1, "sphinx.domains.javascript": 3, "sphinx.domains.math": 2, "sphinx.domains.python": 4, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1}, "filenames": ["chapter1.ipynb", "chapter10.ipynb", "chapter11.ipynb", "chapter12.ipynb", "chapter13.ipynb", "chapter2.ipynb", "chapter3.ipynb", "chapter4.ipynb", "chapter5.ipynb", "chapter6.ipynb", "chapter7.ipynb", "chapter8.ipynb", "chapter9.ipynb", "chapteroptimization.ipynb", "clustering.ipynb", "exercisesweek34.ipynb", "exercisesweek35.ipynb", "exercisesweek36.ipynb", "intro.md", "linalg.ipynb", "schedule.md", "statistics.ipynb", "teachers.md", "textbooks.md", "week34.ipynb", "week35.ipynb", "week36.ipynb"], "indexentries": {}, "objects": {}, "objnames": {}, "objtypes": {}, "terms": {"": [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 12, 13, 15, 16, 17, 18, 19, 21, 22, 24, 25], "0": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26], "00": [0, 1, 5, 11, 24, 25], "000": [1, 3], "00000000e": [], "001": [2, 8, 13, 26], "004": 5, "004113634617443131": 25, "004113634617443139": 25, "00411363461744314": 25, "004113634617443147": 25, "00727646693": [0, 24], "0086649156": [0, 24], "01": [0, 1, 2, 5, 9, 11, 13, 17, 23, 24, 25], "0110": 21, "01719003e": [], "02": [0, 4, 7, 12, 24], "02334824": [], "02857": 4, "02f": 6, "03077640549": 4, "03097597e": [], "031": 5, "04": 11, "0458": 9, "05": [4, 6], "062292565": 4, "062435": [], "06730814": [], "07": [], "0713": [0, 24], "07285": 3, "08": 21, "08078025e": [], "08336233266": 4, "08376632": 25, "083766322923899": 25, "0837663229239043": 25, "0917": 9, "0n": [0, 24], "0x113e21950": 17, "1": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 20, 21, 22, 23, 24, 26], "10": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 19, 20, 21, 22, 24, 25, 26], "100": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26], "1000": [0, 1, 2, 4, 5, 8, 11, 13, 14, 18, 21, 24, 26], "10000": [2, 5, 6, 10, 11, 13, 21], "100000": 8, "10001": 10, "1001": 21, "1002": 21, "1003": 21, "1005": 21, "1009": 21, "101": 16, "1011": 21, "1013": 21, "1013904243": 21, "1015": 21, "102": 16, "1023": 21, "1024": 3, "1026": 21, "1027": 21, "103": 1, "1030": 21, "1037": 21, "1038": 21, "1040": 21, "1047": 21, "107": 16, "108": [], "10th": 9, "10x": [0, 24], "11": [0, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19, 21, 23, 24, 25, 26], "110": [], "1100": 21, "1101": 21, "111": [1, 7, 12], "112": 16, "11340253": [], "11590451": [], "116": 16, "117": 16, "118": 16, "12": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 19, 21, 23, 24, 25, 26], "120": 3, "121": [8, 9, 10, 16], "1215pm": [22, 24], "122": [8, 9, 10], "124": [0, 24], "125": 16, "127": [4, 16], "128": [3, 4, 13], "129": 16, "1298": 9, "12pm": [22, 24], "13": [0, 2, 9, 12, 19, 21, 24], "131": 16, "133": 7, "135": 16, "136": 16, "14": [0, 2, 4, 6, 8, 9, 10, 12, 19, 21, 23, 25], "141": 16, "143": 16, "1446729567": 4, "149": 16, "14g": 6, "15": [0, 2, 4, 6, 7, 8, 9, 12, 13, 21, 24, 26], "150": [4, 8], "152": 16, "153760": [], "156": 16, "157": [], "158": [], "159": 16, "15g": 6, "15pm": 24, "16": [1, 2, 3, 4, 5, 8, 9, 10, 21, 24, 26], "160": 16, "1603": 3, "161": 16, "162": 16, "16231451": 4, "163": 16, "16384": 3, "164": 16, "167": 16, "17": [1, 2, 8, 21], "172": 16, "173": 16, "176": 16, "178": 16, "179": 16, "1797": 1, "18": [2, 6, 7, 8, 9, 10, 21, 24], "1807": 4, "18392847": [], "19": [2, 21, 24], "1940": [], "1943": 12, "19569961": 25, "1970": [19, 24], "1973": 9, "1979": 6, "1_1": 12, "1_2": 12, "1_3": 12, "1cm": [0, 8, 10, 21, 24], "1d": [1, 2, 3], "1e": [2, 4, 13, 14], "1e10": 14, "1e4": 6, "1f": 1, "1k": 19, "1n": [0, 24], "1x": [0, 24], "2": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 23], "20": [0, 1, 2, 6, 7, 8, 16, 17, 21, 22, 24, 25, 26], "200": [0, 2, 3, 4, 8, 9, 10], "2000": [0, 25], "2004": [13, 26], "2006": 23, "20072279": [], "2008": 24, "2010": 1, "2011": 1, "2014": 4, "2015": 1, "2016": [0, 24], "2018": [0, 6, 25], "2021": [6, 14, 25], "2022": 24, "2025": [24, 25, 26], "21": [0, 1, 5, 7, 9, 12, 19, 24, 25, 26], "2116753732": 4, "215pm": [22, 24], "2167072": [], "22": [0, 1, 5, 12, 13, 19, 24, 25, 26], "221": 8, "225": 4, "22948497": [], "23": [1, 12, 19], "24": [0, 1, 19, 24], "25": [2, 3, 4, 5, 6, 8, 9, 11, 25], "250": [2, 4, 7, 9], "25000": [], "250154": [], "253775": [], "255": 3, "256": 4, "26": [], "26303845": [], "264": [], "265": [], "265109911": 4, "266": [], "269": [], "27": 1, "270": [], "278": 26, "27n_": 21, "28": [1, 3, 4], "283": 26, "2830637392": 4, "2861": 21, "2873": 9, "2882": 21, "2886": 21, "2890": [0, 24], "2892": 21, "29": 25, "2915": 21, "2931": 24, "29364655": [], "294399745619595": [], "296247": [], "2968": 24, "2980": 24, "298273": [], "298375": [], "2990": 24, "2_": 12, "2_1": 12, "2_2": 12, "2_3": 12, "2_i": 12, "2_m": [6, 21], "2_t": 13, "2_x": 21, "2a": 17, "2b": 21, "2cm": 8, "2d": [1, 3, 11, 12, 18, 24], "2e": 6, "2f": [0, 7, 9, 10, 11, 12, 24], "2g": 2, "2g_i": 2, "2k": 3, "2m": 6, "2mvizaqfst8": 25, "2n": [0, 2, 3, 24, 25], "2nd": 9, "2p": 21, "2pt": 4, "2x": [0, 3, 8, 13, 24], "2x_ix_jy_iy_j": 8, "2x_j": 8, "2y_i": 10, "2y_j": 8, "3": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 20, 21, 22, 24, 26], "30": [0, 1, 4, 6, 7, 10, 13, 22], "30000": [0, 24], "3072": 3, "31": [12, 19, 21], "315": [6, 25], "3155": [0, 5, 6, 25, 26], "32": [3, 4, 6, 12, 13, 19, 21], "3200": 1, "3250": 1, "3297": [], "33": [12, 19, 22], "3303": [], "3310": [], "332331": [], "333": 7, "3331": [], "3337": [], "34": 19, "3436": [0, 24], "3437": [0, 24], "35": [0, 6, 24, 26], "3581341341": 4, "359": [5, 26], "36": [0, 5, 6, 21], "37": 26, "370782966": 4, "38": 21, "39": [0, 22, 24], "3d": [2, 3, 4, 6, 13, 16], "3f": [1, 3, 9], "3n": 19, "3x": [2, 8], "3x_i": 2, "3y": 8, "4": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 26], "40": [1, 6, 22, 24], "400": 4, "4000": 24, "4050": [23, 24], "41": 19, "4155": [2, 15], "41589548": [], "42": [1, 4, 8, 9, 10, 19], "43": [0, 7, 19], "4310": 24, "436462435": 4, "44": [0, 19, 26], "45": [22, 24], "46": [22, 24], "462": 7, "47": [22, 24], "479465113": 4, "47958494": [], "48": [], "48257387": [22, 24], "49": [5, 6, 11], "49152": 3, "4940954": [0, 24], "4990": 21, "4992": 21, "4997": 21, "4c4c7f": [9, 10], "4d": 3, "4f": 6, "4pm": [22, 24], "4y": 8, "4y_i": 10, "5": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25, 26], "50": [1, 2, 3, 4, 6, 7, 8, 10, 13, 24, 25, 26], "500": [1, 3, 4, 6, 9, 10, 13], "5018": 21, "506": [], "507d50": [9, 10], "50j": 13, "50x10": 1, "51": 10, "510": 1, "512132": [], "5177783846": 4, "53": 9, "54": [6, 21], "5411205": [], "54894451": [], "55": 1, "56": 1, "56536": [0, 24], "569": 1, "57": [0, 8, 22, 24], "571": [5, 26], "58": [10, 22, 24], "591317992": 4, "5cm": 21, "5f": 8, "5x": 8, "5y": 8, "6": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 19, 21, 22, 24, 25, 26], "60": [1, 3], "60000": 4, "6019067271": 4, "606439": [], "625": 7, "63": 1, "64": [1, 3, 4, 13, 19, 24], "64x50": 1, "65": [1, 8, 9], "6887363571": 4, "69": [16, 21], "69069n_": 21, "691": [], "6n_": 21, "7": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 19, 21, 23, 24, 25], "70": [1, 7], "70653767": 4, "71": 1, "724": 3, "73": [], "7304881": [], "75": [5, 6, 8, 11], "76": [22, 24], "765": 7, "77": [22, 24], "7718": 9, "7782028952": 4, "77893972": [], "78": [], "7d7d58": [9, 10], "8": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 19, 21, 22, 24, 26], "80": [0, 1, 5, 8, 17, 25], "800": [4, 7], "81": 1, "815am": [22, 24], "85": 1, "8702784034": 4, "88": 24, "8f": 6, "8g": 6, "8n": 19, "8x8": 1, "9": [0, 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 19, 21, 24], "90": 1, "9040": 9, "91": [22, 24], "92": [22, 24], "93": 16, "931": [0, 24], "933": [5, 26], "937": 21, "938": 21, "939": [0, 21, 24], "94": 21, "95": [1, 11], "954": 21, "955820c21e8b": 4, "96": 6, "960": 21, "961": 21, "962": 21, "9649652536": 4, "96611194e": [], "9780387310732": 23, "9780387848570": 23, "9781098134174": 24, "9781492032632": 23, "9781801819312": 24, "97898392": 25, "98": [0, 1, 16], "985": 21, "986": 21, "989": 21, "9898ff": [9, 10], "99": [13, 16], "991": 21, "992": 21, "993": 21, "996": 5, "999": [9, 21], "9x": 6, "9y": 6, "A": [2, 3, 5, 6, 7, 10, 11, 12, 13, 15, 16, 18, 19, 20, 21, 22, 23, 25, 26], "AND": 2, "And": [0, 3, 4, 5, 6, 9, 13, 18, 21], "As": [0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 13, 15, 16, 19, 21, 24, 25, 26], "At": [0, 4, 6, 13, 24], "BE": [0, 24], "Be": [2, 18, 24], "Being": 13, "But": [0, 1, 2, 3, 5, 6, 9, 10, 16, 21, 25], "By": [0, 3, 5, 6, 12, 13, 17, 19, 24, 25, 26], "For": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 23, 24, 25, 26], "IF": [6, 25], "IN": 23, "If": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25, 26], "In": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 23, 24, 25, 26], "Ising": [5, 12, 25, 26], "It": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 24, 25, 26], "Its": [1, 2, 4, 11], "No": [6, 9, 24, 25], "Not": [0, 1, 5, 6, 25, 26], "OR": 21, "Of": 21, "On": [0, 3, 21, 22, 23, 24], "One": [0, 1, 3, 4, 5, 6, 7, 8, 11, 12, 13, 17, 21, 25, 26], "Or": [0, 1, 6, 24], "Such": [0, 6, 12, 16, 21], "That": [0, 5, 7, 10, 11, 12, 14, 21, 24], "The": [4, 10, 13, 14, 16, 17, 19, 20, 21, 22, 23], "Then": [0, 1, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 24, 26], "There": [0, 3, 4, 5, 6, 8, 9, 11, 12, 14, 15, 19, 21, 22, 24, 25, 26], "These": [0, 3, 4, 5, 8, 9, 10, 11, 12, 13, 14, 17, 19, 21, 22, 24, 25, 26], "To": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 19, 21, 25, 26], "With": [0, 5, 6, 8, 9, 10, 11, 12, 14, 16, 19, 21, 24, 25], "_": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 19, 24, 25, 26], "_0": [5, 8, 10, 11, 13, 25, 26], "_1": [2, 5, 6, 8, 10, 11, 12, 13, 14, 19, 25, 26], "_2": [2, 5, 8, 11, 12, 13, 19, 25], "_3": 19, "_4": 19, "_9": 13, "__class__": 10, "__doc__": 6, "__future__": [8, 9], "__init__": 1, "__main__": 2, "__name__": [2, 10], "_auto1": [2, 3, 4, 5, 6, 7, 12, 13, 19, 21, 25, 26], "_auto10": [6, 12], "_auto11": 6, "_auto12": 6, "_auto2": [2, 3, 4, 5, 6, 12, 13, 19, 21], "_auto3": [3, 4, 5, 6, 12, 13, 19], "_auto4": [4, 6, 12, 13, 19], "_auto5": [4, 6, 12, 13, 19], "_auto6": [4, 6, 12, 19], "_auto7": [4, 6, 12, 19], "_auto8": [6, 12], "_auto9": [6, 12], "_build": [0, 18, 23, 24], "_c": 1, "_compon": 11, "_depth": 9, "_export": [15, 16], "_fraction": 9, "_i": [0, 1, 2, 5, 6, 7, 8, 11, 12, 13, 24, 25, 26], "_j": [0, 1, 2, 3, 5, 6, 8, 13, 25, 26], "_k": [13, 26], "_l": 12, "_lambda": 6, "_leaf": 9, "_m": 10, "_multilayer_perceptron": [], "_n": [2, 5, 8, 11, 13, 25, 26], "_node": 9, "_p": [5, 8, 25, 26], "_ratio": 11, "_sampl": 9, "_split": [6, 9], "_t": 13, "_test": 6, "_varianc": 11, "_weight": 9, "a0": 3, "a0faa0": [9, 10], "a1": [0, 24], "a2": [0, 24], "a3": [0, 24], "a4": [0, 24], "a_": [0, 1, 16, 19, 24, 25], "a_0": [0, 24], "a_1a": [0, 24], "a_2a": [0, 24], "a_3": [0, 24], "a_3a": [0, 24], "a_4": [0, 24], "a_4a": [0, 24], "a_h": 1, "a_i": [0, 1, 2, 12, 24], "a_j": [1, 12], "a_k": [0, 1, 12], "aaron": 23, "ab": [0, 2, 5, 13, 14, 24, 25], "ab_channel": 18, "abandon": 1, "abid": 21, "abil": [0, 10], "abl": [0, 1, 4, 5, 6, 7, 10, 12, 13, 16, 25, 26], "about": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 22], "abov": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 23, 24, 25], "abovement": [6, 24], "abscissa": [13, 26], "absolut": [0, 2, 5, 6, 13, 24, 25, 26], "absorb": [25, 26], "abstract": 1, "acceler": 13, "accept": [0, 3, 6, 9, 25], "access": [3, 11, 21, 24], "accid": [4, 6], "accompani": [0, 24, 25], "accomplish": [8, 9, 13], "accord": [0, 1, 2, 5, 6, 9, 12, 13, 14, 21, 24, 26], "accordingli": 11, "account": [0, 3, 5, 13, 15, 16, 21, 24], "accumul": [12, 13, 21], "accur": [0, 3, 4, 6, 10, 13], "accuraci": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 24, 25, 26], "accuracy_scor": [0, 1, 10, 24], "accuracy_score_numpi": 1, "achiev": [0, 1, 5, 6, 8, 12, 19, 24], "aco": 21, "acquaint": 18, "acquir": [1, 18, 24], "acr": [], "across": [1, 3, 6, 9, 17, 18, 24], "act": [1, 3, 19], "action": 21, "activ": [0, 2, 3, 4, 9, 15, 20, 22, 24], "actual": [0, 1, 4, 5, 6, 8, 11, 15, 16, 19, 21, 24, 25, 26], "ad": [1, 3, 4, 5, 8, 13, 15, 16, 19, 26], "ada_clf": 10, "adaboostclassifi": 10, "adadelta": 13, "adam": [1, 3, 4, 24], "adapt": [4, 6, 13, 17, 23, 26], "add": [0, 1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 15, 16, 17, 21, 22, 24, 25, 26], "add_subplot": [1, 7, 12, 14], "addendum": 5, "addit": [0, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 15, 18, 19, 21, 22, 23, 24, 25], "addition": [12, 13, 26], "address": [1, 9, 11, 13, 24], "adjac": [3, 12], "adjoint": [5, 25], "adjust": [0, 5, 12, 13, 26], "admir": [0, 24], "advanc": [4, 6, 12, 23, 24], "advantag": [1, 3, 5, 6, 10, 13, 19, 26], "adversari": 24, "afecionado": 24, "affect": [3, 15], "affin": [0, 3, 8, 11, 25], "afford": 3, "aficionado": 24, "aforement": 14, "african": [], "after": [0, 1, 2, 4, 5, 6, 9, 11, 12, 13, 15, 16, 17, 18, 19, 21, 24, 25, 26], "afterward": [0, 24], "ag": [0, 7, 24, 25], "ag_0": 2, "again": [0, 1, 4, 5, 6, 7, 8, 10, 11, 12, 13, 21, 24, 25, 26], "against": [1, 4, 7, 10], "agegroup": 7, "agegroupmean": 7, "aggreg": [9, 10], "agorithm": 10, "agre": [5, 6, 21, 25, 26], "agreement": 13, "ahead": 9, "ai": [0, 23], "aid": 11, "aim": [0, 1, 4, 6, 7, 11, 14, 16, 17, 18, 19, 25], "ainv": 5, "airplan": 3, "aka": 5, "al": [0, 2, 4, 16, 17, 23, 24, 25, 26], "alarm": [5, 7], "aldo": 25, "algebra": [0, 3, 5, 13, 18, 25, 26], "algorithm": [0, 1, 2, 4, 5, 6, 7, 8, 13, 14, 16, 18, 19, 21, 23], "align": [0, 2, 5, 6, 7, 8, 13, 21, 24, 25, 26], "all": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26], "allevi": [1, 13, 26], "alloc": [3, 19], "allow": [0, 1, 2, 3, 5, 6, 8, 10, 13, 15, 18, 19, 24, 25, 26], "almost": [0, 1, 6, 8, 11, 13, 21, 26], "alon": [2, 9], "along": [2, 3, 4, 5, 6, 9, 10, 11, 15, 18, 19, 24, 25, 26], "alpha": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 13, 14, 21, 24, 25, 26], "alpha_": 10, "alpha_0": 3, "alpha_1": 3, "alpha_2": 3, "alpha_i": [3, 13], "alpha_k": 13, "alpha_m": 10, "alpha_n": 3, "alpha_opt": 13, "alreadi": [2, 3, 4, 5, 6, 10, 12, 15, 18, 19, 21, 24, 25, 26], "also": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 24, 25, 26], "alter": 1, "altern": [0, 1, 4, 5, 6, 8, 9, 11, 13, 15, 19, 24, 25], "although": [0, 1, 5, 6, 8, 10, 13, 16, 24], "alwai": [0, 3, 5, 6, 12, 13, 16, 21, 24, 25, 26], "am": 4, "ame2016": [0, 24], "american": [], "among": [0, 3, 5, 9, 10, 12, 19, 24, 25], "amongst": 5, "amount": [0, 1, 3, 4, 6, 8, 10, 14, 18], "an": [1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 13, 14, 16, 17, 18, 19, 21, 22, 23, 25, 26], "an_": 21, "anaconda": [0, 1, 18, 24], "analogi": 13, "analys": 6, "analysi": [1, 3, 4, 7, 14, 19, 23], "analyt": [2, 3, 5, 6, 7, 12, 13, 17, 18, 24, 25, 26], "analyz": [0, 1, 3, 4, 5, 6, 16, 21, 25, 26], "andrew": 1, "angl": [0, 3, 9, 25], "anharmon": 3, "ani": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 21, 24, 25], "anim": [4, 12], "ann": 12, "annot": [0, 1, 3, 7, 8, 24], "announc": 24, "anoth": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 15, 19, 21, 24, 25], "ansatz": [0, 24], "answer": [0, 1, 3, 5, 6, 19, 22, 24], "antialias": [2, 6], "anticip": 4, "anymor": [1, 8], "anyon": [4, 8, 15], "anyth": [1, 15, 16, 21], "anytim": [22, 24], "apach": 1, "apart": [11, 13, 26], "api": [1, 18, 24], "appar": 2, "appear": [0, 1, 3, 13, 19, 21], "append": [1, 3, 4, 8, 9, 13, 24], "appli": [0, 1, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 21, 23, 24, 25], "applic": [0, 1, 3, 4, 5, 6, 7, 9, 12, 13, 16, 19, 21, 23, 24, 25, 26], "apply_gradi": 4, "approach": [1, 2, 4, 5, 6, 9, 10, 11, 12, 13, 15, 16, 18, 21, 23, 25, 26], "appropri": [2, 6, 9, 12, 13, 17, 18, 21], "approv": 24, "approx": [0, 2, 3, 6, 10, 11, 13, 21, 24, 26], "approxim": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 13, 21, 24, 25, 26], "apt": [0, 18, 24], "aq": 21, "ar": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "aragorn": 24, "arang": [1, 3, 4, 6, 7, 9, 10, 12, 13, 24], "arbitrari": [1, 4, 6, 8, 12, 13, 21, 26], "arbitrarili": [0, 1, 11, 24], "arc": 6, "architectur": [3, 4, 12], "area": [0, 3, 6, 23, 24], "argmax": [1, 11], "argmin": [4, 10, 14], "argsort": 11, "argu": [1, 13], "argument": [0, 2, 3, 5, 11, 12, 13, 17, 24, 25], "aris": [0, 6, 12, 13, 21, 24, 26], "arithmet": [0, 13, 19, 24], "arm": [6, 25], "armadillo": 19, "around": [0, 1, 4, 5, 6, 11, 21, 24], "arrai": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 13, 14, 16, 18, 21, 25, 26], "arrang": [3, 24], "arraybox": 13, "arriv": [0, 6, 9, 11, 19, 21, 24], "arrow": 12, "arrowprop": 8, "art": [0, 1, 18], "articl": [0, 3, 4, 6, 10, 24, 25, 26], "artifici": [0, 2, 7, 12, 23, 24], "artificialneuron": 12, "arug": 13, "arxiv": [3, 4], "asarrai": [0, 6, 9, 25], "asid": 25, "ask": [5, 6, 11, 12, 15], "aspect": [0, 6, 18, 24, 25], "assembl": 3, "assembli": [0, 24], "assert": 4, "assess": [0, 6, 24, 25], "assici": 4, "assign": [0, 7, 8, 9, 12, 13, 14, 15, 20, 22, 23, 24], "associ": [0, 6, 9, 12, 14, 21, 24], "assum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 19, 21, 24, 25, 26], "assumpt": [0, 3, 5, 6, 9, 11, 21, 24, 25], "ast": [0, 5, 6, 24], "astyp": [4, 9, 10], "asymmetri": [0, 24], "asymptot": [4, 6], "atom": [0, 24], "attempt": [0, 4, 6, 7, 8, 10, 24, 25], "attend": 24, "attent": [0, 19, 24], "attract": [0, 10, 24], "attribut": [0, 9, 24], "audi": [0, 24], "audio": [3, 4], "august": [24, 25], "aurelien": [0, 23, 24], "austfjel": 6, "auth": 15, "authent": 15, "author": [0, 1, 10, 21], "authour": 24, "auto": [9, 10, 21], "auto_exampl": 25, "autocor": 21, "autocorrelation_tim": 21, "autocorrelform": 21, "autocovari": 21, "autoencod": [4, 18, 24], "autoencond": 18, "autograd": [18, 24], "autom": [0, 18, 23, 24], "automac": 19, "automag": 24, "automat": [0, 1, 2, 3, 4, 11, 16, 18, 19, 24], "automobil": 3, "autonom": 4, "avail": [0, 1, 4, 6, 10, 11, 18, 19, 20, 22, 23, 24], "averag": [0, 1, 3, 6, 9, 10, 13, 14, 21, 22, 24, 25], "avoid": [0, 4, 5, 6, 9, 11, 13, 19, 25], "awai": [2, 3, 6, 25], "awar": [2, 10], "award": [22, 24], "ax": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 24], "axes3d": [2, 6, 13, 26], "axes_grid1": 6, "axhlin": 8, "axi": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25, 26], "axiom": 5, "axvlin": [4, 8], "axvspan": 4, "b": [0, 1, 3, 4, 5, 6, 8, 9, 10, 12, 13, 14, 15, 16, 17, 21, 22, 24, 25, 26], "b1": 8, "b2": 8, "b3": 8, "b_": [0, 1, 19], "b_0": 0, "b_1": [0, 2, 12, 13], "b_2": [0, 13], "b_5": 13, "b_group": 9, "b_i": [0, 1, 2, 12, 24], "b_ia_": [0, 24], "b_ia_i": 0, "b_index": 9, "b_j": [1, 12], "b_k": [0, 1, 12, 13], "b_m": 12, "b_score": 9, "b_valu": 9, "babcock": 24, "bachelor": [20, 22], "back": [0, 3, 4, 5, 6, 8, 9, 10, 15, 16, 19, 21, 24], "backbon": 19, "backend": [1, 4], "background": [23, 24], "backpropag": 1, "backtrack": 9, "backup": 19, "backward": [1, 2, 4, 12, 19], "bad": [6, 17, 25], "badli": 21, "bag": [9, 18, 24], "bag_clf": 10, "baggin": 24, "baggingboot": 10, "baggingclassifi": 10, "baggingtre": 10, "balanc": 6, "band": 19, "bandwidth": 19, "bar": [0, 6, 11, 24], "barber": 23, "bare": [4, 10], "base": [0, 1, 3, 4, 5, 7, 8, 9, 10, 14, 15, 16, 17, 18, 21, 22, 23, 24, 25, 26], "basi": [5, 7, 8, 10, 11, 12, 13, 19, 25, 26], "basic": [6, 8, 12, 13, 14, 15, 18, 21, 24], "batch": [3, 4, 11, 12, 13, 26], "batch_shap": 4, "batch_siz": [1, 3, 4], "batchnorm": 4, "bay": 7, "bayesian": [5, 18, 23, 24], "becaus": [0, 1, 2, 3, 4, 5, 6, 8, 9, 12, 13, 14, 24, 25, 26], "becom": [0, 1, 2, 5, 6, 7, 9, 12, 13, 21, 24, 25, 26], "been": [0, 1, 2, 3, 4, 5, 6, 11, 12, 13, 18, 19, 24, 25], "befor": [0, 1, 2, 3, 4, 5, 6, 7, 8, 12, 13, 14, 16, 17, 19, 21, 24, 25], "beforehand": [0, 21, 24], "begin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 19, 21, 22, 24, 25, 26], "behav": [1, 6, 13, 26], "behavior": [0, 1, 13, 24, 26], "behaviour": 12, "behind": [0, 1, 6, 8, 13, 24, 26], "being": [0, 1, 2, 3, 4, 5, 7, 8, 10, 11, 12, 13, 17, 21, 24, 25, 26], "believ": [9, 19], "belong": [7, 8, 9, 13, 14, 26], "below": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 19, 21, 24, 25, 26], "benchmark": 10, "benefici": [1, 13], "benefit": [0, 1, 4, 11, 13, 18, 24, 26], "bengio": [1, 23, 24, 25], "benign": [1, 7], "besid": [4, 5, 26], "bessel": [5, 25], "best": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 22, 24, 25, 26], "beta": [1, 3, 10, 11, 13, 16, 17, 24, 25, 26], "beta_": [3, 13, 17, 25], "beta_0": [1, 3, 13, 25], "beta_1": [1, 3, 10, 13, 25], "beta_1x_i": 13, "beta_2": [3, 13], "beta_3": 3, "beta_i": 3, "beta_j": [13, 25], "beta_k": 13, "beta_linreg": 13, "beta_m": 10, "beta_mg_m": 10, "beta_n": 3, "better": [0, 1, 2, 3, 4, 6, 9, 10, 11, 12, 13, 24, 25], "between": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 21, 24, 25, 26], "beyond": [0, 1, 5, 6, 8, 13, 24, 25, 26], "bf": [13, 14, 19, 21, 26], "bg": 24, "bgd": 13, "bia": [0, 1, 2, 3, 5, 8, 9, 10, 12, 13, 24, 25, 26], "bias": [1, 2, 3, 5, 6, 9, 12], "big": [0, 1, 2, 5, 6, 14], "bigger": [1, 6, 25], "bigr": 12, "bike": 9, "bilbo": 24, "billion": [3, 12, 18], "bin": [7, 21], "binari": [0, 3, 5, 7, 9, 10, 12, 24], "binarycrossentropi": 4, "bind": 0, "binomi": [18, 21, 24], "binsboot": 6, "bioinformat": 0, "biolog": [1, 12], "bios1100": [18, 24], "bird": [0, 3], "birth": 24, "bishop": [23, 24], "bit": [1, 4, 19, 21, 24], "bitwis": 21, "bivari": 2, "bk": 13, "bla": [19, 24], "black": [8, 9, 14], "block": [6, 10, 18, 19, 21, 24], "blog": 24, "blogpost": 4, "blue": [0, 3], "bmatrix": [0, 1, 3, 5, 7, 8, 11, 13, 19, 24, 25, 26], "bmi": 1, "bodi": [0, 1, 4, 12], "bold": 1, "boldfac": [0, 5, 16, 25, 26], "boldsymbol": [0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 13, 14, 16, 17, 24, 26], "boltzmann": [12, 18, 24], "book": [17, 23, 24, 25], "book1": 23, "boolean": [4, 17], "boost": [1, 9, 18, 24], "boostrap": 10, "bootstrap": [1, 13, 18, 24], "borrow": 24, "boston_dataset": [], "bot": 8, "both": [0, 1, 4, 5, 6, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 25, 26], "bottl": 7, "bound": [8, 12], "boundari": [2, 4, 8, 11, 12], "box": [4, 9], "boyd": [8, 13, 26], "bracket": [4, 21], "brain": [1, 7, 12], "branch": [9, 24], "break": [0, 4, 6, 11, 14, 24], "breast": [5, 7, 11], "breviti": 13, "brew": [0, 18, 24], "brg": 8, "brief": 25, "briefli": [0, 16, 24], "bring": [0, 5, 6, 10, 25], "britt": [22, 24], "broad": 0, "broadli": 24, "brought": [13, 18, 24], "brownle": 4, "browser": [15, 24], "brute": [3, 5, 11, 25], "buffer_s": 4, "bui": 4, "build": [0, 4, 5, 6, 10, 16, 19, 21, 24], "built": [1, 3, 4, 6], "bunch": 11, "busi": [], "byte": [19, 24], "c": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26], "c1": [8, 11], "c2": [8, 11], "c_": [8, 9, 10, 13, 21, 26], "c_0": 21, "c_1": 12, "c_2": 12, "c_3": 12, "c_4": 12, "c_i": [12, 13], "c_k": 21, "ca": [1, 24], "cach": 10, "cal": [0, 8, 10, 12, 13, 26], "calcul": [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 16, 19, 21, 24], "call": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 19, 21, 22, 24, 25, 26], "calor": [0, 25], "cambridg": [13, 23, 26], "can": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 25, 26], "cancel": [0, 13, 24, 25], "cancer": [5, 10], "cancerpd": 7, "candid": [8, 9, 10], "cannot": [0, 1, 4, 5, 6, 7, 8, 9, 21, 25, 26], "canopi": [0, 18, 24], "canva": [15, 16, 24], "cap": 5, "capabl": [0, 1, 8, 13, 18, 24], "capac": [2, 22], "capita": [], "captur": [4, 11, 12, 24], "car": [3, 4], "card": [0, 7, 24], "cardin": 1, "care": [11, 15], "carefulli": 13, "carlo": [0, 6, 18, 21, 23, 24], "carri": [2, 6, 7], "cart": 10, "case": [0, 1, 2, 3, 4, 5, 6, 7, 11, 12, 13, 14, 15, 16, 18, 19, 24], "casella": 23, "cast": 1, "cat": [3, 4], "catch": 0, "categor": [0, 1, 3, 9, 11, 24], "categori": [0, 1, 3, 7, 10, 12, 14, 24], "categorical_crossentropi": [1, 3], "caus": [0, 5, 6, 21, 24, 25, 26], "causal": 0, "causat": [0, 24], "cax": 1, "cb": [6, 24], "cbar": 1, "cc": [0, 1, 5, 13, 24, 25, 26], "ccc": [5, 12, 26], "cdf": 21, "cdot": [0, 2, 6, 12, 13, 14, 19, 21, 24, 26], "celebr": [13, 26], "cell": 4, "center": [0, 1, 6, 7, 8, 9, 11, 14, 21, 24, 25], "central": [0, 3, 5, 6, 8, 16, 19, 24, 25], "centroid": [14, 21], "centroid_differ": 14, "centuri": 3, "certain": [0, 3, 6, 7, 9, 21, 24, 25], "cg": 13, "cha": [], "chain": [0, 1, 13, 18, 21, 24], "challeng": 15, "chanc": [1, 5, 13, 21], "chang": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 13, 14, 15, 16, 19, 21, 24, 25, 26], "channel": 3, "chapter": [0, 6, 10, 11, 16, 17, 19, 23, 24, 25, 26], "chapter3": 0, "charact": [0, 3, 5, 24, 25, 26], "character": [8, 9, 10, 12, 21], "characterist": [0, 1, 3, 10, 13, 24], "charg": [0, 24], "charl": [], "chase": 4, "chatgpt": 15, "chd": 7, "chddata": 7, "cheap": [5, 25, 26], "cheaper": [1, 13], "check": [1, 3, 4, 5, 11, 13, 15, 16, 19, 24], "checkmark": 3, "checkpoint": 4, "checkpoint_dir": 4, "checkpoint_prefix": 4, "chen": 10, "cheng": 25, "chiaramont": 2, "childcar": 16, "children": 16, "choic": [0, 1, 2, 3, 4, 6, 9, 12, 13, 14, 19, 24, 25, 26], "choleski": [5, 19, 25, 26], "choos": [2, 3, 6, 9, 10, 11, 13, 14, 15, 26], "chosen": [0, 1, 2, 6, 8, 9, 10, 13, 16, 21, 24, 26], "chosen_datapoint": 1, "christian": 23, "christoph": [23, 24], "cifar": 3, "cifar10": 3, "circ": [1, 12], "circl": [0, 8, 12, 25], "circuit": 3, "circumfer": 9, "circumv": [1, 5, 13, 25, 26], "ckpt": 4, "clariti": 21, "class": [0, 1, 3, 4, 6, 7, 8, 9, 11, 12, 13, 21, 24], "class_nam": [3, 9], "class_val": 9, "class_valu": 9, "classic": [7, 9, 13], "classif": [0, 3, 5, 6, 7, 8, 11, 12, 18, 23, 24, 25], "classifi": [0, 1, 4, 7, 9, 10, 11, 24], "classificaton": 1, "classifii": 10, "clean": 1, "clear": [1, 5, 10, 12, 13], "clearli": [0, 3, 5, 6, 7, 8, 21, 25, 26], "clever": [1, 10], "clf": [0, 6, 8, 9, 10, 24, 25], "clf3": 0, "clf_lasso": 6, "clf_ridg": 6, "cli": 15, "clip": [3, 21], "clone": [15, 22], "close": [0, 1, 2, 4, 6, 8, 9, 11, 12, 13, 14, 21, 23, 24, 26], "closer": [3, 5, 13, 25, 26], "closest": [8, 11, 13, 14], "closur": [18, 24], "cloud": [18, 24], "cluster": [0, 1, 4, 6, 11, 18, 24], "cluster_label": 14, "cm": [1, 2, 3, 6, 8, 13, 26], "cmap": [0, 1, 2, 3, 4, 6, 8, 9, 10, 24], "cmap_arg": 6, "cmd": [9, 15], "cn_": 21, "cnn": 12, "cnn_kera": 3, "cntk": [18, 24], "co": [0, 2, 3, 6, 9, 13, 24], "code": [0, 3, 4, 6, 7, 8, 18, 19, 21, 23], "coef": [0, 24], "coef0": 8, "coef_": [0, 5, 6, 8, 9, 13, 16, 24, 25, 26], "coeff": 5, "coeffici": [0, 3, 5, 6, 7, 8, 9, 13, 19, 24, 25], "coerc": [0, 6, 24], "coin": [10, 21], "coin_toss": 10, "col": [0, 11, 24, 25], "colab": [18, 24], "cold": 9, "colinear": [], "collaps": 8, "collect": [2, 6, 10, 11, 17, 18, 21, 23, 24], "collinear": [5, 25, 26], "color": [0, 3, 4, 6, 8, 9, 10, 21], "color_channel": 3, "color_cod": 6, "colorbar": [1, 6], "colsample_bytre": 10, "colsaobject": 10, "column": [0, 1, 2, 5, 6, 7, 8, 9, 11, 12, 16, 17, 19, 24, 25, 26], "columntransform": 9, "com": [4, 6, 15, 16, 18, 23, 24, 26], "combin": [1, 2, 5, 6, 7, 10, 15, 21], "come": [0, 1, 3, 4, 5, 12, 13, 14, 15, 24, 25, 26], "command": [0, 1, 15], "comment": [0, 4, 5, 6], "commerci": [0, 18, 24], "commit": 15, "commod": [0, 24], "common": [0, 1, 3, 5, 6, 7, 9, 11, 13, 14, 16, 21, 24, 25, 26], "commonli": [0, 1, 4, 6, 7, 9, 13, 14, 25], "commun": [0, 12, 15], "commut": 3, "commutatitav": 3, "compact": [0, 1, 3, 5, 6, 7, 9, 11, 12, 13, 14, 24, 25], "compair": 0, "compar": [0, 3, 4, 5, 6, 11, 13, 19, 24, 25, 26], "comparison": [2, 4, 13], "compat": 7, "compet": 0, "competit": 10, "compil": [0, 1, 3, 4, 13, 18, 19, 24], "complet": [0, 2, 3, 4, 9, 12, 15, 16, 17, 24], "completenn": 12, "complex": [1, 5, 8, 9, 11, 12, 13, 16, 24, 26], "complic": [0, 1, 9, 13, 24, 26], "compoment": 25, "compon": [0, 1, 3, 4, 5, 6, 7, 9, 14, 16, 18, 24, 25, 26], "components_": 11, "compos": [9, 12, 13, 14, 18, 24], "compphys": [0, 6, 16, 18, 20, 22, 23, 24, 25], "compress": [0, 24, 25], "compris": 6, "compromis": [5, 25, 26], "compulsori": [18, 24], "comput": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26], "computation": [0, 3, 6, 9, 13, 21, 24, 26], "computationalscienceuio": 24, "concaten": [2, 4, 6, 14], "concav": [1, 13, 25, 26], "concentr": 10, "concept": [0, 2, 18, 24, 25], "conceptu": [12, 13, 26], "concern": [0, 1, 4, 7, 24, 26], "concic": 24, "conclud": [0, 5, 13], "conclus": 1, "cond": 2, "conda": [0, 1, 18, 24], "condis": 25, "condit": [0, 2, 4, 5, 6, 8, 9, 11, 13, 21, 24, 25], "conduct": 18, "condwav": 2, "confid": [0, 5, 6, 7, 8, 24, 25], "configur": 3, "confirm": [5, 12], "confus": [5, 6, 7, 10, 19, 25], "confusion_matrix": 9, "congruenti": 21, "conjug": [4, 8], "conjugaci": 13, "conjunct": 3, "connect": [0, 1, 3, 4, 9, 11, 12, 13, 19, 24, 25, 26], "consequ": [5, 6, 8, 10, 12, 13, 25, 26], "conserv": [5, 14, 25, 26], "consid": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 16, 19, 21, 24, 25, 26], "consider": [0, 1, 5, 13, 24, 25, 26], "consist": [1, 2, 3, 4, 6, 12, 13, 21, 25, 26], "constant": [0, 2, 4, 5, 6, 8, 12, 13, 16, 21, 24, 25, 26], "constitu": [0, 24], "constitut": [2, 6], "constrain": [1, 3, 5, 7, 11, 26], "constraint": [5, 6, 8, 13, 25, 26], "construct": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 19, 21, 24, 25], "contact": [0, 24], "contain": [0, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 19, 21, 23, 24, 25, 26], "contemporari": 24, "content": [1, 15, 18, 19, 24, 26], "context": [6, 10, 13, 26], "contigu": 19, "continu": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 19, 21, 24, 25, 26], "contour": [9, 10, 13], "contourf": [8, 9, 10], "contrast": [1, 4, 9, 10, 12, 24], "contribut": [0, 3, 5, 13, 21, 24, 25, 26], "contributor": 0, "control": [0, 1, 3, 9, 13, 15, 18, 24], "conv": [3, 4], "conv2d": [3, 4], "conv2dtranspos": 4, "convei": 24, "conveni": [5, 6, 12, 13, 19, 24, 26], "convent": [12, 25], "converg": [1, 2, 4, 5, 8, 13, 14, 25, 26], "convergencewarn": [], "convert": [0, 1, 4, 5, 9, 11, 13, 19, 24, 25, 26], "converttomatrix": 4, "convex": [4, 5, 7, 25], "convinc": [13, 26], "convolut": [1, 4, 18, 24], "cool": [4, 9], "coolwarm": 6, "coordin": [5, 12, 14, 25, 26], "coorel": [], "copi": [0, 1, 14, 15, 25], "core": 10, "corel": 24, "coronari": 7, "corr": [5, 7, 11, 25], "correalt": [11, 18], "correct": [0, 1, 2, 3, 4, 5, 7, 13, 15, 19, 21, 24, 25, 26], "correctli": [1, 2, 6, 7, 10], "correl": [0, 1, 3, 5, 6, 7, 10, 12, 13, 18, 21, 24, 26], "correlation_matrix": [5, 7, 11, 25], "correspond": [0, 3, 5, 6, 8, 9, 11, 12, 18, 19, 21, 24, 25], "cortex": 12, "cosin": [3, 6], "cost": [0, 2, 3, 5, 6, 7, 8, 9, 12, 13, 16, 17, 24], "cost_deep_grad": 2, "cost_funct": 2, "cost_function_deep": 2, "cost_function_deep_grad": 2, "cost_function_grad": 2, "cost_grad": 2, "cost_sum": 2, "costol": 13, "could": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 19, 21, 24, 25, 26], "coulomb": [0, 24], "count": [0, 9, 15, 20, 21, 22, 24], "counterpart": 24, "countor": 13, "coupl": [4, 5, 6], "cours": [0, 1, 3, 5, 11, 15, 16, 17, 22, 25], "coursework": 15, "courvil": [23, 24, 25], "cov": [5, 6, 11, 19, 21, 24, 25], "cov_xi": [5, 11, 25], "cov_xx": [5, 11, 25], "cov_yi": [5, 11, 25], "covari": [0, 7, 18, 19, 24, 26], "covariance_matrix": [5, 11, 14], "cover": [0, 5, 18, 22, 23, 25, 26], "covert": [0, 24], "covxi": 21, "covxx": 21, "covxz": 21, "covyi": 21, "covyz": 21, "covzz": 21, "cpu": 1, "craft": 3, "creat": [1, 3, 4, 5, 9, 10, 11, 12, 15, 18, 24], "create_biases_and_weight": 1, "create_convolutional_neural_network_kera": 3, "create_neural_network_kera": 1, "create_x": [5, 11], "credit": [0, 7, 22, 24], "crim": [], "crime": [], "criteria": [0, 4, 9, 10, 14, 21, 24], "criterion": [9, 10, 13, 26], "critic": [6, 25], "cross": [0, 1, 3, 7, 9, 10, 13, 15, 18, 21, 24, 25, 26], "cross_entropi": 4, "cross_val_scor": 6, "cross_valid": [7, 10], "crossvalid": 6, "crucial": [1, 21], "cs231": 3, "csr_matrix": [19, 24], "csv": [0, 4, 6, 7, 9], "ctnk": 1, "cubic": 0, "cumbersom": 5, "cumsum": [10, 11, 24], "cumul": [7, 10, 21], "cumulative_heads_ratio": 10, "cup": 5, "current": [1, 2, 3, 4, 13, 14, 15, 16, 23, 26], "curs": [0, 25], "curv": [6, 7, 10, 12], "curvatur": [13, 26], "custom": [6, 14], "custom_cmap": [9, 10], "custom_cmap2": [9, 10], "cutpoint": 9, "cv": [6, 7, 10], "cvxbook": [13, 26], "cvxopt": [5, 8, 25], "cycl": [1, 12], "d": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26], "d2_g_t": 2, "d_f": [13, 26], "d_g_t": 2, "d_net_out": 2, "da": 3, "dagger": [5, 19, 25, 26], "dai": [1, 9, 18], "damp": 3, "darget": 9, "darkr": 21, "dat": [0, 24], "dat_id": [0, 6, 7, 9, 24], "data": [2, 4, 5, 8, 10, 12, 13, 14, 16, 19, 23, 26], "data1": 14, "data2": 14, "data3": 14, "data4": 14, "data_id": [0, 6, 7, 9, 24], "data_indic": 1, "data_panda": 24, "data_path": [0, 6, 7, 9, 24], "databas": 1, "datafil": [0, 6, 7, 9, 24], "datafram": [0, 4, 5, 7, 9, 11, 24, 25], "datapoint": [1, 5, 6, 7, 11, 13, 16, 26], "datasci": [15, 16], "dataset": [0, 4, 6, 7, 8, 9, 10, 11, 13, 14, 16, 24, 26], "datatyp": 4, "date": [15, 24, 25, 26], "daughter": 10, "david": 23, "dbh": 1, "dbo": 1, "dcomposit": 19, "ddot": 2, "dead": 1, "deadlin": 15, "deal": [0, 1, 3, 5, 6, 8, 11, 13, 14, 19, 21, 24, 25, 26], "dealt": 0, "debt": 7, "debug": [0, 5, 6, 25, 26], "decad": [0, 3], "decai": [0, 13, 21, 24], "decemb": [22, 24], "decent": 10, "decid": [0, 2, 3, 5, 6, 9, 25, 26], "decim": [0, 24], "decis": [0, 1, 8, 11, 18, 23, 24], "decision_funct": 8, "decision_tre": 9, "decisiontreeclassifi": [9, 10], "decisiontreeregressor": [0, 9, 10], "declar": [0, 4, 19, 24], "decompos": [5, 6, 19, 25, 26], "decomposit": [0, 6, 12, 24], "decompost": [5, 25, 26], "deconvolut": 3, "decorrel": [10, 13], "decreas": [1, 2, 4, 5, 6, 10, 11, 13, 26], "deduc": [0, 24], "deep": [3, 7, 12, 13, 18, 23, 25, 26], "deep_neural_network": 2, "deep_param": 2, "deep_tree_clf": [9, 10], "deep_tree_clf1": 9, "deep_tree_clf2": 9, "deepen": [5, 18, 24], "deeper": [0, 3, 4, 24], "deeplearningbook": [23, 24, 26], "deer": 3, "def": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 16, 17, 21, 24, 25, 26], "def_covari": 21, "default": [0, 1, 2, 4, 6, 7, 19, 24, 25], "default_tim": 4, "defect": [5, 25, 26], "defici": [5, 25, 26], "defin": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 25, 26], "definit": [1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 19, 21, 25, 26], "defint": 21, "degre": [3, 5, 6, 8, 9, 10, 11, 15, 16, 21, 24, 26], "deisenroth": 25, "del": 1, "delet": [6, 15], "delimit": 4, "deliv": [15, 20, 24], "delta": [0, 2, 3, 6, 8, 12, 13, 14, 24], "delta_": [1, 19], "delta_0": 3, "delta_1": 3, "delta_2": 3, "delta_3": 3, "delta_4": 3, "delta_5": 3, "delta_h": [0, 1, 24], "delta_j": [3, 12], "delta_k": 12, "delta_l": [1, 3], "delta_momentum": 13, "delta_n": [0, 3, 24], "delug": 18, "delv": 0, "demand": [13, 26], "demonstr": [0, 3, 5, 6, 7, 11, 12, 18, 24, 25, 26], "den": 4, "denomin": [1, 5], "denot": [1, 2, 6, 7, 13, 21, 26], "dens": [1, 3, 4], "densiti": [0, 2, 6, 21], "depart": [22, 24, 25, 26], "depend": [0, 1, 2, 4, 5, 6, 7, 8, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25, 26], "depict": 21, "deploy": [0, 18, 24], "depth": [0, 3, 9, 10, 19], "deriv": [0, 1, 2, 6, 7, 8, 10, 11, 13, 18, 24], "derivati": 13, "derivative_fn": 13, "descend": [5, 9, 11, 25, 26], "descent": [0, 1, 3, 7, 8, 12, 24, 25], "describ": [0, 2, 4, 5, 6, 8, 10, 11, 12, 13, 19, 24], "descript": [0, 8, 9, 24], "design": [0, 1, 3, 4, 5, 6, 7, 10, 11, 12, 13, 17, 24, 26], "designmatrix": [0, 24], "desir": [0, 2, 4, 5, 13, 14, 24, 25, 26], "desktop": 15, "despit": [1, 12], "destroi": 19, "det": [5, 19, 25, 26], "detail": [0, 6, 11, 13, 14, 19, 25, 26], "detect": [3, 8, 12], "determin": [0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25, 26], "determinist": [7, 13, 21, 26], "dev": 1, "develop": [0, 3, 5, 8, 10, 11, 12, 18, 19, 24, 25], "deviat": [0, 1, 2, 4, 5, 6, 17, 21, 24, 25], "devis": 12, "df": [4, 8, 11, 13, 24], "df1": 24, "di": [], "diag": [5, 8, 25, 26], "diagnost": [1, 10], "diagon": [0, 5, 7, 13, 19, 21, 24, 25, 26], "diagonaliz": [5, 25, 26], "diagram": 10, "diagsvd": 6, "dice": [6, 21], "dict": [6, 8], "dictionari": [], "did": [0, 1, 5, 6, 7, 10, 11, 14, 16, 24], "die": 1, "diff": 2, "diff1": 2, "diff2": 2, "diff_ag": 2, "diffeent": 8, "differ": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 23, 24, 25, 26], "differenti": [0, 3, 16, 18, 19, 24, 25, 26], "difficult": [0, 1, 6, 10, 13, 21, 24], "difficulti": [0, 1, 13, 24, 26], "diffonedim": 2, "digit": [0, 1, 3, 4, 6, 22, 24], "dilemma": 13, "dilut": 1, "dim": [4, 11, 14, 19], "dimens": [0, 1, 2, 3, 4, 5, 8, 11, 14, 16, 19, 24, 25, 26], "dimension": [0, 4, 5, 6, 9, 11, 13, 14, 18, 19, 24, 25, 26], "dimensionless": [0, 3, 24], "diment": 19, "dimnsion": 4, "diod": 3, "direct": [0, 1, 2, 4, 11, 12, 13, 14, 24, 25, 26], "directli": [1, 4, 5, 6, 21, 25, 26], "disadvantag": [0, 24], "disappear": [3, 6], "disc_loss": 4, "disc_tap": 4, "discard": [6, 11], "disciplin": [0, 3, 12], "disclaim": 21, "discord": 24, "discourag": [13, 15, 26], "discov": [0, 24], "discover": 5, "discret": [1, 3, 5, 7, 13], "discrimin": [4, 7, 10, 11], "discriminator_loss": 4, "discriminator_loss_list": 4, "discriminator_model": 4, "discriminator_optim": 4, "discuss": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 19, 21, 23, 24, 25, 26], "diseas": 7, "disguis": [6, 25], "disord": [1, 7], "displai": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 21, 24, 25], "displaystyl": [0, 5, 17, 24, 25, 26], "disregard": [0, 24], "dissimilar": [11, 14], "dist": 14, "distanc": [8, 9, 11, 14, 21], "distance_list": 9, "distinct": [3, 7, 8, 9, 10, 14], "distinctli": 8, "distinguish": [0, 4, 7, 8, 21, 24], "distplot": [], "distribut": [0, 1, 4, 6, 7, 10, 11, 13, 14, 18, 19, 24, 25, 26], "distrubut": [0, 18, 24], "dive": [0, 8, 19, 24], "diverg": [1, 13, 26], "divid": [0, 1, 3, 5, 6, 7, 8, 9, 11, 12, 21, 24, 25], "divis": [6, 8, 9, 13, 19, 21], "dna": 7, "dnn": [0, 1, 2, 4, 12, 24], "dnn1": 4, "dnn2_gru2": 4, "dnn_kera": 1, "dnn_model": 1, "dnn_numpi": 1, "dnn_scikit": [0, 1, 24], "do": [0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 24, 25, 26], "doc": [0, 15, 16, 18, 20, 22, 23, 24], "document": [4, 13, 15], "doe": [0, 1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 15, 16, 17, 19, 21, 24], "doesn": [3, 9, 12, 24], "dog": [1, 3, 4], "domain": [5, 8, 13, 26], "domin": [0, 24], "don": [0, 1, 3, 5, 6, 8, 11, 13, 15, 16, 18, 24, 25], "done": [0, 2, 3, 4, 5, 6, 9, 10, 11, 13, 16, 19, 24, 25, 26], "dot": [0, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25, 26], "doubl": [3, 4, 16, 19, 24], "doubli": 1, "down": [0, 3, 6, 9, 11, 12, 13, 26], "download": [0, 1, 3, 5, 6, 15, 19, 23, 24], "downsampl": 3, "dozen": 1, "dq": 6, "drag": 13, "dramat": 11, "drastic": 4, "draw": [4, 6, 10, 13, 26], "drawback": [0, 1, 3, 13, 25, 26], "drawn": [1, 4, 6, 7, 11, 21, 24], "drive": [3, 4], "driven": 3, "drop": [0, 1, 5, 6, 11, 13, 21, 24, 25, 26], "dropna": [0, 6, 24], "dropout": 4, "dt": [2, 3, 13, 21], "dtype": [0, 1, 3, 4, 14, 19, 24], "dub": [0, 24], "due": [1, 2, 5, 6, 8, 10, 12, 13, 22, 24, 25, 26], "dummi": [], "dure": [0, 1, 3, 4, 8, 9, 11, 18, 24], "dwell": [], "dwh": 1, "dwo": 1, "dx": [2, 3, 8, 21], "dx_1": 21, "dx_1p": 6, "dx_2p": 6, "dx_mp": 6, "dx_n": 21, "dxp": 6, "dy": [1, 8, 21], "dynam": 4, "dz": 8, "e": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 21, 22, 24, 25, 26], "e_": [0, 2, 24], "each": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 24, 25, 26], "eapprox": [0, 24], "earli": [1, 13], "earlier": [0, 5, 7, 8, 9, 11, 12, 13, 24, 25], "earthexplor": 6, "eas": [6, 9, 14], "easi": [0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 18, 19, 24, 25, 26], "easier": [5, 6, 8, 9, 13, 15, 21, 24, 25, 26], "easiest": 13, "easili": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 24, 25, 26], "eastern": [22, 24], "ebind": [0, 24], "eblock": 9, "econometr": 24, "economi": 5, "ecosystem": [18, 24], "ect": 20, "edg": 3, "edgecolor": 6, "editor": 15, "edu": [13, 26], "educ": [0, 24], "eff": 21, "effect": [1, 4, 10, 13, 16, 17, 21], "effic": 1, "effici": [0, 3, 10, 13, 18, 19, 21, 24], "efron": 6, "egrad": 13, "eig": [5, 11, 13, 19, 21, 24, 25, 26], "eigen": 21, "eigenpair": [5, 11, 25, 26], "eigenvalu": [0, 5, 8, 11, 13, 19, 24, 25, 26], "eigenvector": [5, 11, 13, 25, 26], "eight": [19, 24], "eigval": [19, 21, 24], "eigvalu": [11, 13, 26], "eigvec": [19, 21, 24], "eigvector": [11, 13, 26], "eir": [22, 24], "eispack": [19, 24], "either": [1, 5, 6, 7, 8, 9, 10, 11, 13, 21, 24, 25, 26], "eivind": 22, "eivinsto": 22, "ekstr\u00f8m": 4, "elabor": 21, "elarn": 3, "electr": [0, 3, 12, 24], "electron": 24, "eleg": 11, "element": [1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 18, 19, 23, 25], "elementari": [10, 13, 19], "elementwis": [3, 13], "elementwise_grad": [2, 13], "elessar": 24, "elif": 14, "elim": 19, "elimin": [3, 8], "elin": [22, 24], "ellipsi": 16, "els": [1, 3, 4, 7, 9, 12, 13, 16, 19], "elu": 1, "elus": [0, 24], "email": [20, 22, 24], "embed": [0, 11, 25], "embodi": 6, "emit": 21, "emner": 23, "emphas": [0, 10, 18, 24], "emphasi": [0, 18, 23, 24], "empir": [1, 11, 21], "emploi": [0, 1, 5, 6, 11, 13, 21, 24, 25, 26], "employ": 0, "empti": [6, 10, 15], "emul": 12, "en": [18, 23], "enabl": 11, "enbodi": 6, "encod": [0, 3, 5, 9, 11, 14, 24, 25, 26], "encompass": [0, 21], "encount": [0, 1, 5, 7, 13, 15, 21, 24, 25, 26], "encourag": 15, "end": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 22, 24, 25, 26], "endpoint": [3, 6], "energi": [0, 4, 6], "enforc": 12, "eng": 23, "engin": [0, 1, 3, 4, 18, 24], "enorm": 3, "enough": [0, 6, 13, 24, 26], "ensembl": [1, 9, 24], "ensur": [0, 1, 2, 3, 5, 6, 11, 13, 21, 25, 26], "entail": 24, "enter": [5, 6, 25, 26], "enthought": [0, 18, 24], "entir": [1, 3, 7, 9, 18, 21, 24], "entiti": [9, 12, 19, 24], "entri": [0, 5, 8, 11, 12, 19, 24, 25], "entropi": [1, 3, 7, 10, 13, 24, 26], "enumer": [0, 1, 2, 3, 4, 6, 8, 24, 25], "env": 21, "environ": [2, 18, 24], "environemnt": 15, "eo": [0, 6], "eol": 0, "eosfit": 0, "epoch": [0, 1, 3, 4, 12, 13, 24], "epsilon": [0, 5, 6, 7, 13, 24, 25, 26], "epsilon_": [0, 24], "epsilon_0": [0, 24], "epsilon_1": [0, 24], "epsilon_2": [0, 24], "epsilon_i": [0, 24, 25], "eq": [3, 13, 14, 19, 21, 26], "eqnarrai": [3, 5, 6], "equal": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 13, 14, 16, 19, 21, 24, 25, 26], "equat": [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 17, 19, 21, 24], "equilibrium": [2, 12], "equiv": [3, 13, 19, 21, 26], "equival": [0, 1, 5, 7, 8, 11, 13, 18, 19, 24, 25, 26], "erf": 21, "eriador": 24, "err": [0, 10], "err_": 6, "err_sqr": 2, "errat": [13, 26], "erron": 2, "error": [1, 2, 4, 5, 6, 7, 9, 11, 12, 13, 15, 16, 17, 18, 19, 21], "error_estimate_corr_tim": 21, "error_hidden": 1, "error_output": 1, "escap": [13, 26], "especi": [1, 3, 9, 12, 13, 15], "essenti": [0, 5, 6, 9, 10, 12, 14, 15, 21, 25, 26], "establish": [0, 6, 10, 11, 16], "estim": [0, 1, 5, 6, 7, 10, 11, 13, 18, 21, 24, 25, 26], "estimated_mse_fold": 6, "estimated_mse_kfold": 6, "estimated_mse_sklearn": 6, "et": [0, 2, 4, 16, 17, 23, 24, 25, 26], "eta": [0, 1, 3, 8, 12, 13, 24, 26], "eta0": [8, 13, 26], "eta_": 13, "eta_t": 13, "eta_v": [0, 1, 3, 24], "etc": [0, 1, 3, 5, 7, 8, 9, 11, 12, 13, 14, 18, 19, 21, 25, 26], "ethic": 18, "euclidean": [0, 14, 25], "evalu": [0, 2, 3, 4, 5, 6, 9, 13, 15, 16, 17, 21, 24, 25, 26], "evalut": 13, "even": [0, 1, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 24, 25, 26], "evenli": 4, "event": [5, 7, 10, 21], "eventu": [0, 5, 6, 11, 12, 13, 22, 25, 26], "everi": [0, 1, 2, 3, 4, 5, 6, 9, 10, 11, 12, 13, 14, 15, 18, 21, 22, 24, 25, 26], "everyth": [4, 12, 16], "everywher": [4, 13, 26], "evolv": 0, "exact": [0, 5, 11, 12, 13, 19, 21, 24, 25], "exactli": [0, 3, 4, 6, 12, 18, 25], "exam": 24, "examin": 6, "exampl": [0, 5, 11, 12, 13, 15, 16, 18, 19, 21, 23], "exce": [1, 12, 13], "excel": [0, 1, 4, 5, 10, 24, 25], "except": [3, 4, 6, 8, 9, 19], "excess": [0, 24], "excit": 0, "exclud": [1, 6, 12, 25], "exclus": [0, 1, 3, 6, 21, 24], "execut": [2, 5, 13, 15, 25, 26], "exemplifi": 13, "exercic": [22, 24], "exercis": [5, 18, 20, 22, 24, 26], "exhaust": 6, "exhibit": [0, 5, 6, 8, 24, 25], "exist": [0, 1, 2, 3, 5, 6, 7, 8, 9, 13, 19, 24, 26], "exit": [5, 19, 25, 26], "exp": [0, 1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 16, 17, 21, 25, 26], "exp_term": 1, "expand": [5, 7, 11, 13, 26], "expans": [0, 3, 5, 8, 10, 12, 13, 24, 25, 26], "expect": [0, 1, 5, 6, 7, 11, 12, 13, 15, 18, 24, 25], "expectation_value_of_h_wrt_p": 21, "expens": [6, 10, 13, 16, 26], "experi": [0, 1, 6, 8, 13, 15, 18, 24, 25, 26], "experiment": [0, 4, 6, 9, 21, 24], "expert": [1, 9], "explain": [0, 6, 9, 10, 11, 13, 16, 24, 26], "explained_variance_ratio_": 11, "explanatori": [0, 24], "explicit": [0, 3, 6, 13, 19, 24, 25, 26], "explicitli": [0, 4], "explod": 1, "exploit": [0, 3, 12, 13, 24], "explor": [1, 4, 6, 8, 13, 18, 24, 26], "expon": 1, "exponenti": [0, 1, 5, 6, 10, 13, 21, 24, 26], "export": [9, 15, 16], "export_graphviz": 9, "export_text": 9, "exporttext": 9, "expos": 18, "express": [0, 2, 3, 5, 6, 7, 10, 12, 13, 19, 21, 24, 26], "exptmean": 21, "exptvari": 21, "extend": [0, 2, 7, 11, 13, 18, 24], "extens": [0, 12, 15, 18, 24], "extent": [0, 1, 6, 23], "extern": [3, 6, 9], "extra": [1, 3, 5, 15, 22, 24, 25, 26], "extract": [0, 3, 5, 6, 7, 8, 11, 13, 16, 17, 19, 24, 25], "extrapol": [0, 24], "extrem": [0, 1, 4, 5, 6, 7, 8, 9, 13, 15, 16, 19, 25, 26], "extremum": [13, 26], "extrins": 11, "ey": [0, 5, 6, 13, 14, 19, 24, 25, 26], "f": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26], "f1": 13, "f11": [0, 24], "f12": [0, 24], "f13": [0, 24], "f1_grad": 13, "f1d": 13, "f2": 13, "f2_grad_x1": 13, "f2_grad_x1_analyt": 13, "f2_grad_x2": 13, "f2_grad_x2_analyt": 13, "f3": 13, "f3_grad": 13, "f3_grad_analyt": 13, "f4": 13, "f4_grad": 13, "f4_grad_analyt": 13, "f5": 13, "f5_grad": 13, "f6": 13, "f6_for": 13, "f6_for_grad": 13, "f6_grad_analyt": 13, "f6_while": 13, "f6_while_grad": 13, "f7": 13, "f7_grad": 13, "f7_grad_analyt": 13, "f8": 13, "f8_grad": 13, "f9": [0, 13, 24], "f9_altern": 13, "f9_alternative_grad": 13, "f9_grad": 13, "f_": 10, "f_0": [3, 10], "f_1": [10, 13, 26], "f_2": [12, 13, 26], "f_3": 12, "f_d": 21, "f_grad": 13, "f_grad_analyt": 13, "f_i": [0, 6, 12, 16], "f_m": [3, 10], "f_n": 3, "f_vec": 2, "face": [13, 24, 26], "facecolor": [6, 8, 21], "facil": [0, 18], "facilit": 12, "fact": [0, 1, 3, 5, 9, 11, 12, 13, 24, 25, 26], "factor": [0, 1, 3, 5, 6, 9, 10, 11, 13, 19, 21, 24, 25, 26], "factori": 13, "fade": 6, "fafab0": [9, 10], "fail": [0, 6, 13, 22, 24, 26], "failur": 7, "fairli": [1, 2, 21], "faisal": [16, 25], "fake": 4, "fake_loss": 4, "fake_output": 4, "fall": [8, 9, 20], "fals": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 14, 16, 17, 19, 24, 25, 26], "famili": [0, 7, 8, 21, 25], "familiar": [0, 3, 5, 6, 8, 15, 18, 19, 21, 24], "famou": [6, 12], "far": [0, 3, 4, 5, 6, 8, 11, 12, 13, 14, 16, 24, 25, 26], "fashion": [0, 9, 10, 24], "fast": [1, 3, 6, 10, 12, 13, 18, 21, 24, 26], "faster": [1, 11, 13], "fastest": [13, 19, 26], "favor": 7, "favorit": 21, "fc": 3, "featur": [0, 1, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 17, 18, 21, 24, 26], "feature_nam": [1, 7, 9], "feautur": 9, "fed": 1, "feed": [0, 2, 3, 11, 18, 24], "feed_forward": 1, "feed_forward_out": 1, "feed_forward_train": 1, "feedback": [4, 24], "feeddorward": 4, "feedforward": [1, 4, 12], "feel": [0, 5, 6, 11, 13, 15, 16, 18, 22, 24], "feet": [], "fetch": [6, 15], "few": [1, 3, 4, 5, 9, 17, 21, 24], "fewer": [0, 9, 11, 24], "ffnn": [1, 12], "field": [0, 3, 6, 12, 18], "fifth": [0, 6, 24], "fig": [0, 1, 2, 3, 4, 6, 7, 12, 13, 14, 24], "fig_id": [0, 6, 7, 9, 24], "figaxi": 21, "figsiz": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 24], "figur": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 18, 24, 25, 26], "figure_id": [0, 6, 7, 9, 24], "figurefil": [0, 6, 7, 9, 24], "file": [0, 4, 5, 6, 7, 9, 15, 24], "file_prefix": 4, "filenam": 24, "fill": [5, 9, 25, 26], "filter": [3, 4], "final": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 20, 21, 22, 24, 26], "financ": 0, "find": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 21, 24, 25, 26], "fine": [0, 14], "finish": 2, "finit": [3, 5, 6, 12, 13, 17, 21, 25, 26], "finnicki": 15, "first": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 19, 21, 22, 23, 25], "firsteigvector": 11, "fit": [1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 17, 21, 25], "fit_beta": 25, "fit_intercept": [0, 5, 6, 16, 25, 26], "fit_mod": 9, "fit_theta": 6, "fit_transform": [0, 6, 8, 9, 11, 15], "fiti": [0, 24], "five": [0, 9, 24, 25], "fix": [0, 3, 4, 6, 10, 11, 12, 13, 24], "flag": 4, "flat": [12, 13, 26], "flatten": [1, 3, 4, 5, 19], "flexibl": [1, 6, 8, 10, 12, 24], "flip": [22, 24], "float": [0, 3, 4, 5, 9, 11, 13, 14, 19, 24, 25, 26], "float32": [4, 9], "float64": [4, 19, 24], "flop": [5, 19, 25, 26], "flow": [1, 4, 12], "fluctuat": 5, "fly": 11, "fm": 0, "fmax": 3, "fmesh": 13, "fn": 7, "focu": [0, 3, 4, 5, 6, 15, 18, 23, 24, 25, 26], "focus": [1, 6, 7, 19, 25], "fold": [6, 9], "folder": [0, 4, 6, 15, 24], "follow": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 22, 23, 24, 25, 26], "font": [7, 21, 24], "fontdict": 21, "fontsiz": [1, 6, 8, 9, 10, 21], "fontweight": 1, "footprint": 3, "foral": [8, 25], "forc": [0, 5, 6, 10, 11, 25, 26], "forcast": 4, "forecast": [4, 12], "forest": [0, 1, 9, 18, 24], "forget": 11, "form": [0, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25, 26], "formal": [3, 4, 14, 21], "format": [0, 1, 3, 4, 6, 7, 8, 9, 10, 11, 18, 21, 23], "format_data": 4, "formatstrformatt": [6, 13, 26], "formul": [4, 6, 11, 14], "formula": [3, 13, 21, 26], "forth": [4, 12], "fortran": [0, 18, 19, 24], "fortran2003": [18, 24], "fortran90": 21, "fortun": [0, 11, 25], "forward": [0, 3, 6, 18, 19, 24], "found": [1, 2, 4, 5, 6, 12, 13, 24, 25], "foundat": [18, 24], "four": [4, 5, 6, 8, 12, 19, 20, 22, 24, 26], "fourier": [0, 24], "fourierdef1": 3, "fourierdef2": 3, "fourierseriessign": 3, "fourth": [12, 24, 25], "fp": 7, "frac": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 24, 25, 26], "fraction": 9, "frame": 7, "framework": [1, 8, 10, 21], "frank": [5, 11], "frankefunct": [5, 6, 11], "fredli": [22, 24], "free": [0, 6, 11, 13, 15, 16, 18, 19, 21, 22, 23, 24], "freecodecamp": 18, "freedom": [5, 26], "freeli": 0, "freez": 15, "frequenc": [3, 6, 7, 21], "frequent": [0, 8, 9, 13, 26], "frequentist": 18, "fresh": 10, "fridai": [15, 22, 24], "friedman": [6, 23, 24], "friendli": 4, "frodo": 24, "frog": 3, "from": [0, 1, 2, 3, 4, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23], "from_cod": 9, "from_logit": [3, 4], "from_tensor_slic": 4, "front": [0, 4, 5, 24, 25, 26], "frustrat": 15, "fulfil": [2, 5, 12, 25, 26], "full": [1, 3, 5, 7, 9, 10, 13, 21, 24, 25, 26], "full_matric": [5, 25, 26], "fulli": [3, 6, 12, 21], "fun": [18, 24], "func": 2, "function": [2, 3, 4, 5, 9, 14, 15, 16, 17, 18, 19], "functionali": 11, "fundament": [0, 6, 18, 24], "funtion": 2, "further": [2, 7, 9, 24], "furthermor": [0, 3, 5, 6, 7, 11, 12, 13, 18, 24, 25, 26], "futur": [0, 4, 8, 9, 24], "fy": [15, 20, 22, 23, 24], "fys5419": [23, 24], "fys5429": [23, 24], "f\u00f8470": [22, 24], "g": [0, 1, 2, 3, 4, 6, 8, 9, 10, 11, 13, 15, 21, 24, 25, 26], "g0": 2, "g_": [2, 9, 10], "g_0": 2, "g_1": [2, 10], "g_2": [2, 10], "g_analyt": 2, "g_dnn_ag": 2, "g_euler": 2, "g_i": 2, "g_m": [3, 10], "g_n": 3, "g_re": 2, "g_t": 2, "g_t_d2t": 2, "g_t_d2x": 2, "g_t_dt": 2, "g_t_hessian": 2, "g_t_hessian_func": 2, "g_t_jacobian": 2, "g_t_jacobian_func": 2, "g_trial": 2, "g_trial_deep": 2, "g_vec": 2, "gain": [1, 5, 7, 9, 10, 13, 25, 26], "galleri": [0, 24], "game": 4, "gamge": 24, "gamma": [0, 2, 8, 9, 10, 11, 13, 24, 26], "gamma1": 8, "gamma2": 8, "gamma_": [0, 24], "gamma_0": 10, "gamma_1": 10, "gamma_1x": 10, "gamma_i": [0, 8, 21, 24], "gamma_j": 13, "gamma_k": [13, 26], "gamma_m": 10, "gamma_x": [0, 24], "gap": 8, "gate": [4, 12], "gather": [0, 1, 12, 25], "gaug": 12, "gaussbacksub": 19, "gaussian": [4, 5, 6, 8, 14, 21, 24], "gaussian_point": 14, "gaussian_rbf": 8, "gave": 13, "gavra": 24, "gbc": 24, "gca": [2, 6, 8, 13], "gd": [1, 26], "gd_clf": 10, "gdclassiffiercgain": 10, "gdclassiffierconfus": 10, "gdclassiffierroc": 10, "gdm": 13, "gdregress": 10, "ge": [1, 5, 7, 21, 25, 26], "gen_loss": 4, "gen_tap": 4, "gender": [0, 24], "genener": 4, "gener": [0, 1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 14, 15, 16, 19, 21, 23, 25, 26], "generaliz": 16, "generallay": 12, "generate_and_save_imag": 4, "generate_imag": 4, "generate_latent_point": 4, "generate_simple_clustering_dataset": 14, "generated_imag": 4, "generator_loss": 4, "generator_loss_list": 4, "generator_model": 4, "generator_optim": 4, "genom": 18, "geodes": 11, "geometr": [0, 13, 24], "geometri": 5, "georg": 23, "geotif": 6, "geq": [2, 5, 8, 9, 13, 25, 26], "geron": [0, 23, 24], "get": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 15, 18, 19, 21, 22, 24, 25, 26], "get_dummi": 9, "get_paramet": 2, "get_split": 9, "get_yaxi": 8, "get_yticklabel": 6, "gh": 15, "gibb": [18, 24], "gif": 4, "gini": 10, "gini_index": 9, "ginvers": 13, "git": [0, 15, 18, 24], "giter": 13, "github": [0, 18, 20, 22, 23, 24, 25], "gitignor": 15, "gitlab": [0, 15, 18, 24], "give": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, 18, 21, 24, 25, 26], "given": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 19, 21, 24, 25, 26], "global": [6, 7, 13, 26], "glorot": 1, "gnew": 13, "go": [0, 1, 3, 5, 6, 8, 9, 11, 12, 13, 15, 16, 24, 25, 26], "goal": [0, 7, 9, 24], "goe": [0, 1, 2, 5, 6, 13, 14, 15, 19, 24, 25, 26], "golden": 13, "gone": [5, 25, 26], "gong": 1, "good": [1, 3, 4, 5, 6, 9, 10, 11, 13, 15, 18, 21, 23, 25, 26], "goodfellow": [4, 23, 24, 25, 26], "googl": [1, 4, 18, 24], "got": [1, 6], "gotten": 24, "gov": 6, "govern": 24, "gp": 23, "gpu": [1, 13, 18, 24], "grad": [2, 13], "grad_analyt": 13, "grade": 20, "gradient": [0, 3, 4, 7, 8, 9, 12, 18, 24, 25], "gradientboostingclassifi": 10, "gradientboostingregressor": 10, "gradients_of_discrimin": 4, "gradients_of_gener": 4, "gradienttap": 4, "gradual": [1, 14], "grai": [4, 6], "graph": [1, 9, 11, 12, 13, 16, 26], "graph_from_dot_data": 9, "graphic": [0, 1, 9, 15, 24], "grasp": 0, "gray_r": [1, 3], "grayscal": 3, "great": [5, 13, 15, 26], "greater": [1, 7, 21, 25], "greatli": 13, "greedi": 9, "green": [0, 3, 9, 21], "grei": 4, "grid": [1, 3, 6, 7, 8, 12, 21, 25], "grossli": [13, 26], "ground": [0, 24], "group": [0, 6, 7, 9, 14, 15, 18, 20, 22, 24], "groupbi": [0, 24], "grow": [1, 3, 9, 10], "growth": [0, 24], "gru": 4, "guarante": [0, 4, 13, 21, 24, 25, 26], "guess": [1, 4, 10, 13, 14, 26], "guestrin": 10, "gui": 15, "guid": 1, "h": [0, 1, 5, 6, 8, 13, 15, 21, 22, 23, 24, 25, 26], "h1": 2, "h_": [0, 13, 24, 26], "h_1": [2, 13, 26], "h_2": [2, 13, 26], "h_m": 10, "ha": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25, 26], "haanen": [22, 24], "habit": [0, 25], "had": [0, 1, 6, 7, 13, 24, 26], "hadamard": [1, 12, 13], "half": [1, 8, 9], "halv": 10, "hand": [0, 1, 2, 3, 5, 11, 12, 13, 18, 19, 21, 22, 23, 24, 25, 26], "handi": 3, "handl": [0, 1, 2, 5, 9, 11, 15, 18, 25, 26], "handle_unknown": 9, "handsid": 12, "handwrit": 12, "handwritten": [1, 5], "happen": [1, 2, 3, 4, 5, 6, 10, 13, 21, 25, 26], "hard": [1, 7, 8, 10, 13, 26], "hardcopi": [18, 24], "harder": [0, 1, 25], "harmon": 3, "hasn": [], "hassl": [0, 18, 24], "hast": [18, 24], "hasti": [0, 6, 16, 17, 23, 24, 25], "hat": [0, 1, 5, 6, 7, 9, 10, 11, 12, 13, 16, 17, 19, 25, 26], "have": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 25, 26], "haven": 1, "he": 7, "head": [4, 10, 21], "header": [0, 24], "heads_proba": 10, "health": [0, 25], "hear": [0, 13, 24], "heart": [0, 7, 24], "heatmap": [0, 1, 3, 7, 17, 24], "heavili": 0, "heavisid": 1, "height": [1, 3, 6, 25], "held": 13, "help": [0, 1, 4, 12, 13, 15, 16, 24], "helper": [4, 14], "henc": [0, 5, 6, 8, 9, 10, 12, 13, 24, 25, 26], "henrik": [22, 24], "her": 7, "here": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18, 19, 21, 24, 25, 26], "hereaft": [0, 8, 12, 24], "hermitian": 19, "hessenberg": 19, "hessian": [0, 2, 5, 13], "heterogen": [9, 10], "hi": 7, "hidden": [1, 3, 4, 12], "hidden_bia": 1, "hidden_bias_gradi": 1, "hidden_layer_s": [0, 1, 24], "hidden_neuron": 4, "hidden_weight": 1, "hidden_weights_gradi": 1, "hierarch": [5, 25, 26], "high": [0, 1, 2, 3, 4, 5, 6, 9, 10, 11, 13, 14, 18, 19, 24, 25, 26], "higher": [0, 1, 3, 5, 6, 8, 13, 24, 25, 26], "highest": [1, 2], "highli": [0, 3, 4, 10, 18, 19, 23, 24, 25, 26], "highwai": [], "hing": 8, "hint": [13, 15, 16, 25, 26], "hip": 18, "hire": 0, "hist": [4, 6, 7, 21], "histogram": [6, 7, 21], "histor": [7, 11], "histori": [3, 4, 12, 15], "hitherto": 5, "hjorth": [22, 24, 25, 26], "hobbi": 21, "hoc": [5, 25, 26], "hoff": 23, "hold": [1, 3, 6, 13, 14, 26], "holder": [0, 24], "home": [], "homepag": 24, "homework": [6, 13, 26], "homogen": [1, 3, 9, 10, 13], "honchar": 2, "hopefulli": [0, 11, 15, 21, 24], "horizont": 11, "horlyk": [22, 24], "hors": [3, 7, 24], "hot": [1, 9], "hour": [1, 18, 20, 21, 22, 24], "how": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 24, 25, 26], "howev": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 24, 25, 26], "hspace": [0, 4, 8, 10, 21, 24], "hstack": 1, "htf": 24, "html": [0, 16, 18, 20, 22, 23, 24, 25, 26], "http": [0, 3, 4, 6, 13, 15, 16, 18, 19, 20, 22, 23, 24, 25, 26], "huang": [0, 24], "huber": [0, 24], "huge": [1, 3, 4, 18], "human": [0, 1, 3, 6, 9, 12, 25], "humid": 9, "hundr": 1, "hungri": 1, "hybrid": 20, "hydrogen": [0, 24], "hyperbol": [1, 4, 12], "hyperparam": 8, "hyperparamet": [3, 4, 5, 6, 9, 13, 25, 26], "hyperplan": 11, "h\u00f8rlyk": [22, 24], "i": [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26], "i0": [0, 24], "i1": [0, 6, 8, 12, 24, 25], "i2": [0, 8, 12, 24], "i3": [0, 12, 24], "i5": [0, 24], "i_": [13, 26], "i_1": [5, 6], "i_2": [5, 6], "ian": 23, "ic": 1, "id": [7, 13, 26], "ida": [22, 24], "idea": [0, 1, 2, 3, 4, 6, 9, 10, 12, 13, 19, 25, 26], "ideal": [0, 2, 6, 8, 13, 21, 24], "idem": 6, "ident": [5, 6, 12, 13, 17, 19, 25, 26], "identifi": [0, 1, 7, 9, 11, 12, 13, 14, 24, 25], "ieor": 21, "ifi": 23, "ifs": [18, 24], "ignor": [0, 1, 3, 9, 15, 25], "ii": [19, 21], "iii": [19, 24], "ij": [0, 1, 3, 6, 8, 12, 14, 16, 19, 21, 24, 25], "ik": [0, 19, 24, 25], "illustr": [5, 7, 10, 12, 13, 14, 18, 24], "im": 6, "imag": [1, 3, 4, 6, 9, 11, 12, 14, 23, 24], "image_at_epoch_": 4, "image_batch": 4, "image_height": 3, "image_path": [0, 6, 7, 9, 24], "image_width": 3, "imageio": 6, "images_from_seed_imag": 4, "imagin": 1, "immedi": [0, 3, 4, 6, 18, 24], "implement": [0, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 21, 24, 25, 26], "impli": [3, 5, 6, 7, 13, 19, 25, 26], "implicit": 3, "implicitli": [11, 21], "import": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 21], "importantli": 3, "impos": [0, 6, 11, 12, 24], "imposs": [0, 5, 24, 25, 26], "impress": [0, 12, 24], "improv": [0, 4, 5, 9, 10, 11, 13, 15, 25, 26], "impur": 9, "imread": 6, "imshow": [1, 3, 4, 6], "in3050": [23, 24], "in3310": 24, "in4080": [23, 24], "in4300": [23, 24], "in4310": 23, "in5400": 3, "in5550": 23, "in_out_neuron": 4, "inaccur": [13, 26], "inact": 12, "inadequ": [0, 24], "inch": [6, 25], "includ": [0, 1, 2, 3, 4, 5, 6, 7, 11, 12, 15, 16, 17, 18, 21, 22, 23, 24, 25, 26], "include_bia": [6, 9], "incom": [12, 16], "incorrect": 1, "incoveni": 8, "increas": [0, 1, 3, 4, 5, 6, 9, 12, 13, 21, 24, 25], "increasingli": 21, "ind": 6, "inde": [0, 2, 4, 5, 6, 13, 24, 25, 26], "indefinit": 4, "independ": [0, 5, 6, 7, 8, 12, 13, 21, 24, 25, 26], "index": [0, 1, 3, 4, 10, 14, 18, 19, 21, 23, 24], "index_col": [0, 24], "indic": [0, 1, 3, 4, 5, 6, 9, 10, 11, 13, 16, 24, 25], "indispens": 6, "individu": [1, 6, 7, 10, 12, 21, 24, 25], "indu": [], "indx": 19, "indx1": 2, "indx2": 2, "indx3": 2, "ineffici": [3, 13], "inequ": [8, 13], "inequaltii": 26, "inertia": 13, "inf1000": [18, 24], "inf1100": [18, 24], "inf1100l": [18, 24], "inf1110": [18, 24], "inf3000": 24, "infeas": 9, "infer": [0, 1, 4, 6, 23, 24], "inferenc": 1, "infil": [0, 6, 7, 9, 24], "infin": [5, 6, 7, 11, 25, 26], "infinit": 3, "infinitesim": 21, "influenc": [6, 10], "influenti": 1, "info": 24, "inform": [0, 1, 3, 4, 6, 9, 11, 12, 13, 14, 19, 23, 24, 26], "inforom": 15, "infti": [3, 6, 13, 21, 26], "ingeni": [13, 26], "ingredi": [0, 9, 24], "inher": 6, "inherit": [19, 24], "initi": [0, 1, 2, 6, 10, 13, 14, 19, 21, 24, 26], "inject": 14, "inlin": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25, 26], "inner": [0, 13, 25], "inp": 4, "inplac": 13, "input": [0, 1, 3, 4, 5, 6, 7, 8, 12, 13, 14, 16, 21, 24, 25, 26], "input_dim": 1, "input_shap": [3, 4], "inputs": 1, "inputs_shuffl": [0, 1, 25], "insert": [3, 5, 6, 8, 10, 21, 25, 26], "insid": [4, 7], "insight": [0, 1, 5, 18, 24, 25, 26], "insist": [6, 13, 25], "inspir": [0, 1, 12, 24], "instabl": 2, "instal": [0, 1, 5, 6, 9, 15], "instanc": [0, 1, 2, 4, 6, 9, 11, 13, 16, 24, 25, 26], "instanti": 10, "instead": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 13, 14, 17, 19, 21, 24, 25], "institut": 1, "instruct": [0, 1, 15], "int": [0, 1, 2, 3, 4, 5, 6, 11, 13, 14, 19, 21, 25], "int32": 10, "int_": [3, 6, 21], "int_0": 21, "int_a": 21, "intak": [0, 25], "integ": [1, 2, 13, 14, 19, 21, 24], "integer_vector": 1, "integr": [3, 6, 21, 24], "intellig": [0, 14, 23, 24], "intend": 10, "intens": 1, "intention": 14, "interact": [0, 6, 9, 12, 18, 24], "intercept": [0, 6, 8, 11, 13, 16, 17, 24, 25, 26], "intercept_": [0, 6, 8, 9, 13, 24, 25, 26], "interchang": [5, 12, 19], "interconnect": 1, "interest": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 18, 21, 24, 25, 26], "interfac": [0, 1, 15, 19, 25], "interior": [0, 9, 24], "intermedi": [19, 25], "intern": [1, 10, 12], "interpol": [1, 3, 4, 6, 12], "interpr": [5, 25, 26], "interpret": [0, 1, 6, 9, 10, 12, 13, 15, 16, 19, 21], "interv": [0, 3, 5, 6, 7, 13, 21, 24, 25, 26], "intial": [13, 26], "intract": [0, 4, 25], "intrins": [3, 11, 19, 21, 24], "intro": [18, 23, 24], "introduc": [0, 1, 5, 6, 8, 10, 12, 19, 21, 24, 26], "introduct": [1, 2, 4, 13, 23, 25, 26], "introductori": [0, 4, 19, 23, 24, 25], "intuit": [0, 5, 6, 8, 12, 13, 24], "inv": [0, 5, 13, 17, 24, 25, 26], "invalu": [0, 13, 18, 24, 26], "invari": 1, "invd": 5, "inver": 8, "invers": [0, 3, 6, 13, 24, 25, 26], "inverse_transform": 8, "invert": [0, 5, 7, 10, 13, 16, 24], "invh": 13, "invok": 8, "involv": [0, 2, 6, 7, 11, 12, 24, 25], "io": [0, 18, 20, 22, 23, 24, 25], "ip": [0, 8, 21, 24], "ipca": 11, "ipynb": [18, 24], "ipython": [0, 5, 7, 9, 11, 14, 18, 24, 25], "iq": 6, "iri": [8, 9], "irreduc": 6, "irrelev": [5, 25, 26], "irrespect": [0, 24], "isn": 5, "isnul": [], "isomap": 11, "issu": [1, 9, 15, 19], "it_arrai": 13, "item": [0, 13, 24], "items": [19, 24], "iter": [1, 2, 4, 6, 8, 13, 14, 21, 26], "its": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 24, 26], "itself": [5, 6, 12, 21, 24, 25], "j": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 13, 14, 15, 16, 19, 21, 23, 24, 25, 26], "j1": 19, "j_": 6, "j_lasso_sk": 6, "j_ridge_sk": 6, "j_sk": 6, "jackknif": [6, 18, 24], "jacobian": [2, 13, 26], "jason": 4, "jax": [18, 24], "jensen": [22, 24, 25, 26], "jerom": 23, "ji": [12, 19], "jit": 13, "jj": [0, 5, 6, 24], "jk": [0, 1, 6, 12, 19, 24], "jl": [0, 24], "jm": 19, "jnp": 13, "job": [2, 8, 10, 15], "join": [0, 4, 6, 7, 9, 24], "joint": [4, 5], "judg": [13, 26], "judgement": 6, "julia": [18, 19], "jump": 21, "junk": 4, "jupit": 24, "jupyt": [0, 15, 16, 18, 23, 24], "just": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 18, 21, 24, 25, 26], "justif": 0, "justifi": [3, 10], "k": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 18, 19, 21, 22, 24, 25, 26], "k0": 7, "k1": 7, "kaggl": 6, "kappa_d": 21, "karl": [22, 24], "karush": 8, "katrin": [22, 24], "keep": [0, 1, 4, 5, 6, 11, 13, 14, 15, 19, 24, 25, 26], "keepdim": [1, 6, 10, 19], "kei": [1, 3, 6, 12], "kept": [4, 6, 14], "kera": [0, 4, 18, 24], "kernel": [0, 1, 3, 18, 24, 25], "kernel_regular": [1, 3], "kernel_s": 4, "kernelpca": 11, "kev": [0, 24], "kevin": [23, 24], "keyword": [19, 24], "kfold": 6, "kg": 1, "ki": 19, "kick": [1, 13], "kiener": 2, "kilomet": [6, 25], "kind": [0, 2, 3, 4, 8, 12, 13, 14, 24, 25], "kj": [6, 12, 19, 25], "kjm": [18, 24], "kkt": 8, "kl": 21, "km": [12, 24], "kmean": 14, "kmeanspoint": 14, "kn_k": 14, "know": [0, 1, 2, 5, 6, 8, 13, 15, 16, 17, 18, 24, 25, 26], "knowledg": [0, 18, 24], "known": [1, 3, 4, 5, 6, 7, 8, 9, 12, 19, 21, 23, 25], "kondev": [0, 24], "kp": 21, "kpca": 11, "kroneck": 14, "kuhn": 8, "kvalsund": [22, 24], "kwown": [0, 24], "l": [0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 19, 21, 24, 26], "l0": 7, "l1": [0, 1, 3, 7, 24], "l1_l2": [1, 3], "l1regl": 5, "l2": [1, 3], "l_": 19, "l_1": 7, "l_2": [7, 13, 26], "l_j": 12, "la": 13, "la_i": 12, "la_k": 12, "lab": [18, 24], "label": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 18, 19, 21, 24, 25, 26], "labelencod": [7, 10], "labels": [6, 8, 9], "labels_shuffl": [0, 1, 25], "laboratori": 20, "lack": [0, 24], "lagari": 2, "lagrang": [8, 11], "lambda": [0, 1, 2, 3, 5, 6, 7, 8, 10, 12, 13, 17, 21, 24, 25, 26], "lambda_": 11, "lambda_0": 11, "lambda_1": [5, 8, 11, 25, 26], "lambda_2": [8, 11], "lambda_i": [8, 11], "lambda_iy_i": 8, "lambda_jy_iy_j": 8, "lambda_k": 8, "lambda_n": [5, 8, 25, 26], "lamda": 1, "land": 8, "landmark": 8, "landscap": [13, 26], "langl": [0, 6, 11, 21, 24, 25], "languag": [0, 1, 4, 8, 18, 19, 23, 24], "lapack": [19, 24], "laplac": 5, "laptop": [15, 18], "larg": [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 13, 18, 19, 21, 23, 24, 25, 26], "larger": [0, 3, 5, 6, 8, 10, 11, 13, 17, 21, 24, 25, 26], "largest": [4, 8, 11], "lasso": [0, 7, 18, 24], "lasso_sk": 6, "last": [0, 1, 3, 4, 5, 6, 7, 8, 12, 16, 17, 19, 21, 22, 24, 26], "latent": 4, "latent_dim": 4, "latent_point": 4, "latent_space_value_rang": 4, "later": [0, 1, 4, 7, 8, 12, 13, 14, 15, 18, 24], "latest": [4, 15, 18], "latest_checkpoint": 4, "latex": 24, "latter": [0, 3, 6, 7, 8, 11, 13, 19, 21, 24, 25, 26], "lattic": 12, "law": 0, "layer": [0, 4, 13, 24], "lbfg": [7, 9, 10], "lcc": [5, 6], "lda": 11, "ldot": [0, 6, 11, 24], "le": [5, 7, 10, 13, 17, 21, 25, 26], "lead": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 19, 21, 24, 25, 26], "leaf": 9, "leaki": 1, "leakyrelu": 4, "lear": [13, 26], "learn": [3, 4, 5, 6, 7, 8, 9, 10, 12, 19, 22, 23], "learnabl": 3, "learner": 10, "learnig": 24, "learning_r": [8, 10], "learning_rate_init": [0, 1, 24], "learning_schedul": 13, "least": [0, 7, 8, 10, 11, 17, 18, 19, 21], "leat": 13, "leav": [0, 1, 3, 5, 6, 9, 11, 24, 26], "lectur": [0, 1, 5, 10, 11, 12, 13, 18, 19, 20, 22, 23, 25], "lecturenot": [0, 18, 23, 24], "left": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 24, 25, 26], "leftarrow": [8, 12], "legend": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 15, 24, 25, 26], "leinonen": 24, "len": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 16, 17, 19, 24, 25, 26], "length": [0, 1, 3, 4, 8, 9, 13, 16, 18, 24, 25, 26], "length_of_sequ": 4, "leq": [0, 5, 7, 8, 13, 14, 21, 24, 25, 26], "less": [0, 1, 3, 4, 5, 6, 8, 9, 13, 18, 21, 24, 25, 26], "lessen": 1, "let": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 21, 24, 25, 26], "letter": [0, 16, 19, 21, 24, 25], "level": [0, 1, 5, 6, 9, 18, 19, 20, 22, 24], "li": [8, 11], "lib": [], "liblinear": 10, "librari": [0, 1, 2, 3, 4, 5, 6, 9, 10, 11, 19, 21, 23, 25, 26], "licens": [0, 1, 18, 24], "lie": [0, 6, 11, 21, 24, 25], "life": [0, 1, 8, 12, 24], "lifetim": 13, "like": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25, 26], "likelihood": [0, 1, 5, 9, 24, 25], "lim_": 21, "limit": [0, 5, 6, 8, 12, 19, 24, 25], "lin_clf": 8, "lin_model": [], "lin_reg": 9, "linalg": [0, 2, 5, 6, 8, 11, 13, 17, 19, 21, 24, 25, 26], "line": [0, 3, 6, 8, 11, 13, 15, 16, 24, 26], "line1": 8, "line2": 8, "line3": 8, "line_model": 15, "line_ms": 15, "line_predict": 15, "linear": [1, 3, 5, 6, 7, 9, 10, 11, 12, 16, 17, 18, 21], "linear_model": [0, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, 24, 25, 26], "linear_regress": 6, "linearli": [5, 25, 26], "linearloc": [6, 13, 26], "linearregress": [0, 6, 7, 9, 15, 16, 24, 25], "linearsvc": 8, "lineat": 26, "liner": [1, 3], "linerar": 10, "linewidth": [0, 2, 4, 6, 8, 9, 10], "link": [0, 4, 9, 12, 15, 18, 20, 22, 24], "linlag": 5, "linpack": [19, 24], "linreg": [0, 24], "linspac": [0, 2, 3, 4, 6, 8, 9, 10, 13, 16, 17, 19, 21, 24, 25], "linu": 4, "linux": [0, 1, 18, 24], "liquid": [0, 24], "list": [1, 2, 3, 4, 9, 15, 18, 24], "listedcolormap": [9, 10], "literatur": [1, 7, 14, 23], "littl": [1, 3, 9, 12], "live": [8, 16], "ll": [0, 21, 24, 25], "lle": [0, 25], "lloyd": [4, 14], "lmb": [0, 2, 5, 6, 25, 26], "lmbd": [0, 1, 3, 24], "lmbd_val": [0, 1, 3, 24], "lmbda": [13, 26], "ln": [1, 13, 26], "load": [1, 4, 6, 7, 9, 10], "load_boston": [], "load_breast_canc": [1, 7, 9, 10, 11], "load_data": [3, 4], "load_digit": [1, 3], "load_iri": [8, 9], "loc": [3, 6, 7, 8, 9, 10, 24], "local": [0, 1, 3, 7, 12, 13, 15, 25, 26], "locat": [2, 3, 8, 15], "log": [0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 13, 15, 19, 24], "log10": [0, 5, 6, 25, 26], "log_": [0, 24], "log_clf": 10, "logarithm": [0, 5, 7, 17, 19, 24], "logic": [0, 1, 9, 24], "login": 15, "logist": [0, 1, 2, 8, 9, 10, 11, 12, 13, 18, 25, 26], "logisticregress": [7, 9, 10, 11], "logit": 7, "logreg": [7, 9, 10, 11], "logspac": [0, 1, 3, 5, 6, 24, 25, 26], "long": [0, 1, 3, 4, 12, 13, 24, 26], "longer": [2, 3, 8, 10, 14, 19, 21, 24], "loocv": 6, "look": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, 19, 21, 24, 25, 26], "loop": [1, 4, 6, 10, 12, 14, 16, 17, 18, 19, 24], "lose": 1, "loss": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 13, 19, 24], "loss_fil": 4, "lossfil": 4, "lost": 4, "lot": [1, 4, 6, 16], "low": [0, 6, 9, 10, 11, 24, 25], "lower": [0, 1, 3, 6, 9, 10, 16, 19, 25], "lowercas": [19, 24], "lowest": [9, 13, 21], "lr": [1, 3, 4, 10], "lstat": [], "lstm": 4, "lstm_2layer": 4, "lstsq": [0, 24, 25], "lt": 6, "lu": [0, 5, 24, 25, 26], "lubksb": 19, "luckili": 2, "ludcmp": 19, "lux": 19, "lvert": 1, "lw": [0, 24], "m": [0, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 13, 15, 19, 21, 22, 23, 24, 25, 26], "m_": [9, 12], "m_1": 14, "m_h": [0, 24], "m_k": 14, "m_l": 12, "m_n": [0, 24], "m_p": [0, 24], "m_t": 13, "ma": 11, "machin": [1, 3, 4, 5, 6, 7, 9, 10, 11, 12, 15, 16, 19, 23, 25], "machinelearn": [0, 6, 16, 18, 20, 22, 23, 24, 25], "mackai": 23, "made": [0, 1, 3, 4, 5, 6, 7, 9, 11, 12, 24, 25], "mae": [0, 24], "magic": 4, "magnitud": [1, 6, 7, 13, 25], "mai": [0, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 13, 18, 19, 21, 24, 25, 26], "mail": [20, 22], "main": [0, 1, 3, 4, 5, 6, 7, 9, 19, 23, 25, 26], "mainli": [0, 5, 6, 7, 9, 24, 25], "maintain": 6, "major": [1, 6, 9, 10, 13, 19, 24, 26], "make": [1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 15, 16, 18, 19, 21, 23, 24, 26], "make_axes_locat": 6, "make_moon": [8, 9, 10], "make_pipelin": [0, 6, 10, 25], "makedir": [0, 6, 7, 9, 24], "malcondit": 19, "malign": [1, 7, 9], "mammographi": 5, "manag": [0, 2, 3, 15, 18, 24], "mandatori": [22, 24], "mani": [0, 1, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 15, 16, 17, 18, 19, 21, 23, 24, 25, 26], "manifold": 11, "manner": 3, "manual": [6, 25], "map": [0, 1, 2, 6, 7, 8, 11, 12, 14, 21, 24], "marc": 25, "margin": [0, 5, 8], "marit": [0, 24], "mark": 24, "marker": [7, 19, 24], "markov": [18, 24], "marsaglia": 21, "mass": [0, 1, 5, 13, 25, 26], "massag": [0, 24], "masses2016": [0, 24], "masses2016ol": [0, 24], "masses2016tre": 0, "masseval2016": [0, 24], "master": [20, 22], "mat": [18, 24], "mat1100": [18, 24], "mat1110": [18, 24], "mat1120": [18, 24], "match": [1, 4, 5, 13, 14, 15, 25, 26], "materi": [4, 5, 7, 13, 15, 19, 20, 22], "math": [3, 7, 12, 13, 19, 21, 23, 24], "mathbb": [0, 4, 5, 6, 7, 8, 11, 12, 13, 14, 17, 19, 21, 24, 25, 26], "mathbf": [0, 5, 6, 7, 8, 13, 19, 24, 25, 26], "mathcal": [1, 5, 6, 7, 13], "matheemat": 3, "mathemat": [0, 6, 11, 12, 13, 18, 19, 21, 23, 24], "mathemati": 24, "mathrm": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 21, 24, 25, 26], "matmul": [1, 2, 5], "matnat": 23, "matplotlib": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 24, 25, 26], "matric": [0, 1, 3, 4, 6, 7, 8, 11, 13, 16, 17, 18, 25, 26], "matrix": [0, 2, 3, 4, 6, 7, 8, 10, 13, 17, 21], "matshow": 1, "matter": [2, 3, 13, 25, 26], "max": [0, 1, 2, 3, 4, 9, 10, 12, 13, 22, 24, 26], "max_depth": [0, 9, 10], "max_diff": 2, "max_diff1": 2, "max_diff2": 2, "max_it": [0, 1, 8, 13, 24, 26], "max_iter": 14, "max_leaf_nod": 10, "max_sampl": 10, "maxdegre": [0, 6, 10, 25], "maxdepth": 10, "maxim": [1, 4, 5, 7, 8, 11], "maximum": [0, 2, 3, 5, 7, 8, 9, 10, 13, 14, 24, 25, 26], "maxpolydegre": [5, 6, 25, 26], "maxpooling2d": 3, "mbox": [5, 6, 25, 26], "mcculloch": 12, "md": 11, "mdoel": 4, "mean": [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 24], "mean_absolute_error": [0, 24], "mean_divisor": 14, "mean_i": 21, "mean_matrix": 14, "mean_squared_error": [0, 4, 6, 7, 10, 15, 24, 25], "mean_squared_log_error": [0, 24], "mean_vector": 14, "mean_x": 21, "meaning": [0, 4, 7, 24], "meansquarederror": [0, 24], "meant": [3, 7, 10, 13], "measur": [0, 1, 2, 5, 6, 9, 11, 12, 14, 16, 21, 24, 25], "mechan": [0, 4, 21, 24], "median": [0, 24, 25], "medicin": 12, "medium": [4, 8, 13], "medv": [], "meet": [0, 22], "mehta": [0, 24, 25, 26], "memori": [3, 4, 11, 12, 13, 19], "mention": [0, 12, 13, 21, 24, 26], "mere": 0, "meshgrid": [2, 5, 6, 8, 9, 10, 11], "mess": 15, "messag": [5, 13], "messi": 2, "met": [0, 3, 8, 25], "meteorolog": 9, "meter": [6, 25], "method": [0, 1, 2, 3, 4, 5, 7, 8, 11, 12, 14, 15, 16, 17, 18, 19, 21, 23, 25], "metion": 6, "metric": [0, 1, 3, 6, 7, 9, 10, 14, 15, 24, 25], "metropoli": [18, 24], "mev": [0, 21, 24], "mgd": 13, "mglearn": [18, 24], "mgrid": 13, "mhjensen": [], "mi": 10, "mia": [22, 24], "microsoft": 23, "mid": 1, "midel": 4, "midnight": 15, "midpoint": 9, "might": [0, 1, 2, 4, 6, 9, 13, 15, 17, 25, 26], "migth": 17, "mild": 9, "millimet": [6, 25], "million": [0, 24, 25], "mimic": 12, "min": [0, 2, 5, 8, 9, 26], "min_": [0, 2, 5, 14, 17, 24, 25, 26], "min_samples_leaf": 9, "mind": [0, 6, 13, 15, 24, 25, 26], "mindboard": 4, "mine": [18, 24], "mini": [1, 11, 12, 13, 26], "minibatch": [1, 11, 13], "minibathc": 13, "miniforge3": [], "minim": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 25, 26], "minima": [0, 1, 7, 13, 24, 26], "minimum": [0, 1, 2, 6, 8, 9, 11, 13, 25, 26], "minmaxscal": [0, 25], "minor": 21, "minst": 1, "minu": 7, "mirjalili": 24, "mirror": 9, "misc": 6, "misclassif": [8, 9, 10], "misclassifi": [8, 10], "miser": 0, "mismatch": 1, "miss": [7, 10], "mistak": 4, "mit": 23, "mix": [1, 2, 24], "mixtur": 13, "mk": [9, 19], "mkdir": [0, 6, 7, 9, 24], "ml": [0, 1, 10, 13, 19, 25, 26], "mlab": 21, "mle": [5, 7], "mlp": 1, "mlpclassifi": 1, "mlpregressor": [0, 24], "mm": 19, "mml": 25, "mn": [12, 21], "mnist": [1, 11], "mod": 21, "mode": [20, 22, 24], "model": [2, 3, 5, 7, 8, 9, 10, 11, 13, 14, 16, 18, 21, 23, 25, 26], "model_select": [0, 1, 3, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25, 26], "moder": 10, "modern": [0, 6, 7, 18, 24], "modif": [2, 12, 13], "modifi": [0, 1, 3, 5, 7, 8, 10, 12, 13, 24, 25, 26], "modul": [0, 16, 19, 24], "modular": 21, "modulo": 21, "moe": [11, 25], "moment": [5, 6, 13, 21], "mondai": [22, 24], "monitor": 13, "monoton": [5, 12, 21], "mont": [0, 6, 18, 21, 23, 24], "montli": 16, "moor": [5, 6], "more": [0, 1, 2, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 21], "moreov": [0, 3], "morten": [22, 24, 25, 26], "mortenhj": 24, "most": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 21, 24, 25, 26], "mostli": [1, 11], "motion": [0, 13], "motiv": [1, 4], "move": [0, 4, 5, 6, 7, 9, 12, 13, 14, 15, 16, 21, 25, 26], "mpl": [7, 24], "mpl_toolkit": [2, 6, 13, 26], "mplot3d": [2, 6, 13, 26], "mplregressor": 1, "mse": [0, 4, 5, 6, 9, 10, 15, 16, 17, 24, 25, 26], "mse_simpletre": 10, "mselassopredict": [5, 26], "mselassotrain": [5, 26], "mseownridgepredict": [6, 25, 26], "msepredict": [5, 26], "mseridgepredict": [0, 5, 6, 25, 26], "msetrain": [5, 26], "msle": [0, 24], "mt": [7, 12], "mu": [0, 6, 11, 13, 21, 24], "mu0": 21, "mu1": 21, "mu2": 21, "mu_": [6, 21, 25], "mu_i": [6, 25], "mu_n": 11, "mu_x": 21, "much": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 15, 19, 21, 24, 25, 26], "multi": [0, 1, 3, 7, 18, 24], "multiclass": [1, 7], "multidimension": [11, 12, 24], "multilay": 1, "multinomi": 7, "multipl": [2, 4, 5, 6, 7, 12, 13, 15, 21, 25, 26], "multipli": [3, 5, 6, 11, 13, 19, 21, 25, 26], "multiplum": 8, "multivari": [0, 2, 10, 11, 18, 21, 24], "multivariate_norm": [11, 14], "multpli": 16, "murphi": [11, 23, 24], "must": [1, 2, 5, 6, 8, 10, 12, 13, 14, 15, 21, 25, 26], "mutat": 7, "mutual": [1, 3, 6, 13], "mx_": 21, "my": 24, "myenv": [], "myriad": [0, 18, 24], "mz1": 21, "mz2": 21, "m\u00f8svatn": 6, "n": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24, 25, 26], "n1": 19, "n2": 19, "n_": [1, 2, 3, 8, 12, 21], "n_0": [12, 21], "n_boostrap": [6, 10], "n_bootstrap": 6, "n_categori": [1, 3], "n_cluster": 14, "n_compon": 11, "n_epoch": 13, "n_estim": 10, "n_examples_to_gener": 4, "n_featur": 1, "n_filter": 3, "n_hidden": 2, "n_hidden_neuron": [0, 1, 24], "n_i": 21, "n_input": [0, 1, 3, 25], "n_instanc": 9, "n_job": 10, "n_k": 14, "n_l": [12, 21], "n_layer": 1, "n_m": 9, "n_neuron": 1, "n_neurons_connect": 3, "n_neurons_layer1": 1, "n_neurons_layer2": 1, "n_point": 14, "n_sampl": [6, 8, 9, 10, 14], "n_split": 6, "n_step": 4, "n_t": 2, "n_x": 2, "nabla": [1, 13, 26], "nabla_": [2, 13, 26], "nabla_w": 13, "nag": 13, "naimi": [0, 24], "naiv": 7, "naive_kmean": 14, "name": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 18, 19, 21, 22, 24, 25, 26], "narrow": 13, "nation": [1, 5], "nativ": [18, 24], "natur": [0, 1, 4, 8, 9, 12, 13, 21, 23, 24, 26], "navier": 12, "navig": 15, "nb": 21, "nb_": 19, "nbconvert": 24, "nd": 14, "ndarrai": 6, "ne": [9, 10, 19, 21, 25, 26], "nearest": [1, 3, 6, 11], "nearli": [13, 26], "neat": 24, "neccesari": 6, "necess": 2, "necessari": [0, 1, 3, 4, 8, 14, 24], "necessarili": [0, 4, 11, 21, 24], "necesserali": 5, "neck": 7, "need": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 25, 26], "neg": [0, 1, 3, 5, 6, 7, 10, 13, 19, 21, 24, 26], "neg_mean_squared_error": 6, "neglect": 21, "neglig": 21, "neighbor": [3, 6, 11], "neither": [4, 13], "neq": [13, 14, 21, 26], "nervou": 12, "nest": [9, 12], "nesterov": 13, "net": [2, 4, 12], "netlib": [19, 24], "network": [0, 9, 13, 18, 23, 25], "neural": [0, 13, 18, 23, 25], "neural_network": [0, 1, 2, 24], "neuralnetwork": 1, "neuron": [1, 2, 3, 4, 12], "neutral": [0, 24], "neutron": [0, 24], "never": [1, 4, 6, 9, 21], "new": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 17, 19, 24, 25, 26], "new_chang": 13, "new_hobbit": 24, "newaxi": [0, 3, 6, 9], "newli": [0, 24], "newton": [1, 7, 8, 13, 21], "next": [0, 1, 2, 3, 4, 5, 6, 8, 9, 13, 14, 15, 16, 24, 25, 26], "next_guess": 13, "next_input": 4, "ng": 1, "ni": 14, "nice": [0, 1, 5, 11, 24, 25, 26], "niter": [13, 26], "nitric": [], "nlambda": [0, 5, 6, 25, 26], "nlp": 23, "nm": 21, "nm_n": [0, 24], "nmse": 6, "nn": [2, 5, 6, 12, 19, 24], "nn_model": 1, "nnmin": 2, "node": [1, 3, 9, 10, 12], "nois": [0, 4, 5, 6, 8, 9, 10, 13, 24, 25, 26], "noise_dimens": 4, "noisi": [1, 6], "non": [0, 1, 3, 5, 6, 7, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25, 26], "none": [0, 1, 2, 4, 5, 9, 10, 13, 21, 24, 25, 26], "nonlinear": [3, 6, 8, 9, 11, 12], "nonneg": [6, 9, 13, 26], "nonparametr": 6, "nonsens": 21, "nonsingular": 19, "nonumb": [3, 7, 8, 13, 19], "nor": [1, 4, 13], "norm": [0, 1, 5, 6, 8, 11, 13, 24, 25, 26], "normal": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 18, 19, 21, 24, 25, 26], "normali": [19, 24], "norwai": [6, 24, 26], "notat": [0, 2, 5, 6, 13, 14, 21, 24, 25, 26], "note": [0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 18, 19, 21, 23, 24], "notebook": [0, 1, 3, 9, 15, 16, 18, 24], "noth": [1, 2, 5, 8, 12, 14, 21, 25, 26], "notic": [4, 5, 12, 13, 19, 21, 24], "notion": 3, "novel": [3, 6, 10, 24], "novemb": [1, 22, 24], "now": [0, 2, 4, 5, 6, 7, 8, 10, 11, 12, 14, 15, 16, 18, 19, 21, 24, 25], "nowadai": [0, 1, 3, 9, 18, 24], "nox": [], "np": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 24, 25, 26], "npr": 2, "nsampl": 6, "nt": 2, "nu": 21, "nuclear": [5, 25, 26], "nuclei": [0, 21, 24], "nucleon": [0, 24], "nucleu": [0, 24], "num": 4, "num_coordin": 2, "num_hidden_neuron": 2, "num_it": 2, "num_neuron": 2, "num_neurons_hidden": 2, "num_point": 2, "num_tre": 10, "num_valu": 2, "number": [1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20, 22, 24, 26], "numberid": 7, "numberparamet": 3, "numer": [0, 5, 6, 9, 10, 11, 12, 13, 18, 19, 23, 24, 25, 26], "numpi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 25, 26], "nunmpi": [5, 25], "nx": 2, "ny": 21, "o": [0, 1, 4, 5, 6, 7, 8, 9, 11, 19, 22, 23, 24, 25, 26], "obei": [6, 11, 13, 25], "object": [0, 1, 4, 8, 10, 15, 19, 24], "obliqu": [5, 25, 26], "observ": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 21, 24, 26], "obtain": [0, 1, 5, 6, 7, 8, 9, 10, 12, 13, 14, 17, 19, 21, 24, 25, 26], "obviou": [5, 6, 11, 21, 25, 26], "obviouli": 24, "obvious": [0, 4, 5, 6, 19, 24], "oc": [25, 26], "occupi": [], "occur": [0, 6, 8, 9, 19, 21, 24], "octob": [22, 24], "od": 0, "odd": [0, 3, 7, 24, 25], "odenum": 2, "odesi": 2, "oen": 0, "off": [1, 3, 4, 5, 9, 13, 21], "offer": [6, 11, 18, 19, 20, 22, 24], "offic": [22, 24], "offici": [20, 24], "often": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 24, 25, 26], "ofter": [19, 24], "ol": [0, 13, 17, 25], "old": [1, 5, 10, 13, 15], "ols_paramet": 16, "ols_sk": 6, "ols_svd": 6, "olsbeta": 26, "olstheta": [0, 5], "omega": [2, 3, 6], "omega_0": 3, "omit": [0, 5, 24, 25, 26], "onc": [1, 6, 9, 11, 13], "one": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 19, 21, 22, 24, 25], "onehot": 1, "onehot_vector": 1, "onehotencod": 9, "ones": [0, 2, 5, 6, 8, 9, 10, 11, 13, 16, 19, 24, 25, 26], "ones_lik": 4, "ong": 25, "onl": 3, "onli": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25, 26], "onlin": [11, 15, 20], "onto": [5, 11, 25, 26], "open": [0, 1, 4, 6, 7, 9, 15, 18, 20, 22, 24], "oper": [0, 1, 3, 5, 6, 10, 11, 12, 13, 15, 16, 18, 21, 24, 25, 26], "operation": 21, "oplu": 21, "opmiz": 13, "opportun": 0, "oppos": [6, 13], "opposit": [1, 5, 8, 25, 26], "opt": [1, 5, 24, 26], "optim": [0, 2, 3, 4, 5, 6, 7, 9, 10, 11, 14, 16, 17], "optimis": [1, 3], "option": [0, 1, 3, 5, 6, 8, 11, 15, 19, 25], "optmiz": [1, 8, 13, 25], "oral": 24, "orang": 0, "order": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 15, 19, 21, 24, 25, 26], "ordinari": [0, 2, 3, 7, 11, 13, 17, 18], "oreilli": [23, 24], "org": [0, 3, 4, 16, 18, 19, 23, 24, 25, 26], "organ": [6, 7, 10, 19], "orient": [1, 5, 21, 25, 26], "origin": [0, 3, 5, 6, 8, 11, 12, 13, 15, 19, 24, 25, 26], "orthogn": [5, 25, 26], "orthogon": [0, 5, 6, 8, 11, 13, 19, 24, 25, 26], "orthonorm": [5, 25, 26], "os": [22, 24], "oscar": 1, "oscil": [3, 13], "oskar": 24, "oskarlei": 24, "oslo": [0, 18, 20, 22, 24, 25, 26], "osx": [0, 18, 24], "other": [0, 1, 2, 3, 5, 6, 7, 8, 10, 13, 14, 16, 18, 20, 21, 22, 23, 25, 26], "otherwis": [0, 1, 4, 7, 13, 19, 24], "ouput": [5, 7, 12], "our": [1, 2, 3, 6, 7, 8, 9, 10, 12, 14, 15, 16, 17, 18, 19, 21], "ourmodel": 0, "ourselv": [0, 5, 6, 8, 11, 13, 24, 25, 26], "out": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25], "out_fil": 9, "outcom": [0, 7, 9, 10, 12, 21, 25], "outdoor": 9, "outer": [6, 12, 13], "outfil": 4, "outlier": [0, 8, 24, 25], "outlin": [6, 10, 11], "outlook": 9, "outperform": 10, "output": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 19, 21, 24, 25, 26], "output_bia": 1, "output_bias_gradi": 1, "output_shap": 4, "output_weight": 1, "output_weights_gradi": 1, "outputlayer1": 12, "outputlayer2": 12, "outsid": 4, "over": [0, 1, 3, 4, 5, 6, 9, 10, 12, 13, 15, 16, 19, 24, 25, 26], "over1": 13, "overal": [1, 10], "overcast": 9, "overcom": [12, 13], "overdetermin": [0, 24], "overfit": [0, 1, 3, 6, 9, 10, 13], "overflow": 5, "overhead": 12, "overlap": [3, 7, 8, 9], "overlin": [0, 5, 6, 9, 10, 11, 14, 19, 24, 25], "overst": 0, "overtrain": 4, "overview": 3, "own": [4, 5, 6, 8, 12, 13, 16, 18, 19, 26], "owner": [], "ownmsepredict": 0, "ownmsetrain": 0, "ownridgebeta": 25, "ownridgetheta": [0, 6, 25, 26], "ownypredictridg": 0, "ownytilderidg": 0, "oxid": [], "p": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 19, 21, 24, 25, 26], "p0": 2, "p1": 2, "p_": [2, 4, 8, 9], "p_hidden": 2, "p_i": [5, 21], "p_j": 21, "p_n": 21, "p_output": 2, "p_x": 21, "pack": [0, 24], "packag": [0, 1, 3, 4, 5, 8, 11, 13, 15, 18, 21, 25, 26], "packtpub": 24, "packtpublish": 24, "pad": [3, 4], "page": [0, 18, 24, 26], "pai": [0, 1, 9, 13, 15], "pair": [0, 2, 3, 9, 18, 21, 24], "paltform": 15, "panda": [0, 4, 5, 6, 7, 9, 11, 18, 26], "panel": 24, "paper": 1, "paradigm": [0, 24], "parallel": [10, 13, 18, 19, 24], "param": 2, "paramat": 2, "paramet": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 16, 17, 21, 26], "parameter": [0, 6, 10, 24, 25], "parametr": [0, 6, 24, 25], "paramt": [3, 5], "part": [0, 1, 3, 5, 6, 10, 17, 19, 20, 21, 22, 24, 25], "partial": [0, 1, 5, 6, 7, 8, 10, 11, 12, 13, 16, 21, 24, 25, 26], "particip": [15, 18, 20, 22, 24], "particl": [0, 4, 13, 21, 24], "particular": [0, 1, 2, 3, 5, 6, 9, 10, 11, 12, 13, 16, 21, 23, 24, 25, 26], "particularli": [5, 6, 8, 11, 13, 21, 25, 26], "partit": [1, 4, 9], "partli": [6, 24], "partner": 15, "pass": [2, 3, 12, 14], "past": [10, 21], "patch": [6, 21], "path": [0, 4, 6, 7, 9, 18, 24], "pathcollect": 17, "patient": 7, "patter": 4, "pattern": [0, 3, 4, 12, 23, 24], "pauli": [0, 24], "pc": [11, 15, 18], "pca": [0, 7, 18, 24, 25], "pd": [0, 4, 5, 6, 7, 9, 11, 24, 25, 26], "pde": 2, "pdf": [0, 3, 4, 5, 6, 9, 15, 16, 23, 24], "pedagog": [0, 24, 25], "penal": [6, 25], "penalti": [6, 13, 25, 26], "penros": [5, 6], "pentagon": [13, 26], "peopl": [1, 9, 13, 18], "per": [0, 1, 6, 20, 22, 24], "percentag": [10, 11, 22], "perceptron": [0, 1, 7, 24], "peregrin": 24, "perfect": [0, 1, 13, 24], "perfectli": [4, 6], "perform": [0, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 14, 16, 18, 19, 21, 24, 25, 26], "performac": 4, "perhap": [0, 5, 13, 24, 25, 26], "perimet": 1, "period": [1, 4, 21], "permiss": 15, "permut": 11, "persist": 13, "person": [5, 6, 7, 16, 20, 22, 24, 25], "perspect": 23, "pertin": [12, 24], "petal": [8, 9], "peter": [23, 25], "phantom": 21, "phase": [6, 12], "phenomena": 21, "phi": 8, "phi_k": 8, "philosophi": 13, "phone": [22, 24], "photo": [4, 24], "phrase": [0, 24], "physic": [0, 1, 4, 7, 12, 13, 21, 22, 23, 24, 25, 26], "pi": [2, 3, 5, 6, 7, 9, 12, 13, 21], "pick": [1, 9, 10, 11, 13, 14], "pickl": 1, "pictur": [0, 24], "pie": [18, 24], "piec": [11, 14], "pillow": [0, 18, 24], "pinv": [5, 6, 13, 25, 26], "pip": [0, 1, 15, 18, 24], "pip3": [0, 1, 24], "pipelin": [0, 6, 8, 10, 25], "pippin": 24, "pit": 4, "pitfal": [6, 25], "pitt": 12, "pixel": [1, 3, 4, 24], "pixel_height": [1, 3], "pixel_width": [1, 3], "place": [0, 4, 6, 8, 13, 15, 19, 24, 26], "plai": [0, 3, 4, 5, 6, 8, 11, 18, 24, 25, 26], "plain": [8, 10, 12, 13, 14, 26], "plan": [6, 9, 22, 23, 24], "plane": [8, 9], "plateau": [5, 26], "platform": [18, 24], "plausibl": 12, "pleas": [13, 22, 24], "plenti": 1, "plethora": [3, 12], "plot": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 21, 24, 25, 26], "plot_all_sc": 25, "plot_confusion_matrix": [7, 10], "plot_count": 6, "plot_cumulative_gain": [7, 10], "plot_data": 1, "plot_dataset": 8, "plot_decision_boundari": [9, 10], "plot_import": 10, "plot_max": 4, "plot_min": 4, "plot_model": 4, "plot_numb": 4, "plot_predict": 8, "plot_regression_predict": 9, "plot_result": 4, "plot_roc": [7, 10], "plot_surfac": [2, 6, 13], "plot_train": 9, "plot_tre": [9, 10], "plt": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25, 26], "plu": [0, 3, 5, 7, 24, 25], "pm": 8, "pmatrix": 2, "pml": 23, "pn": 3, "png": [0, 4, 6, 7, 9, 24], "point": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 19, 21, 22, 24, 25, 26], "point_1": 4, "point_2": 4, "poisson": [18, 21, 24], "poli": [6, 8], "poly100_kernel_svm_clf": 8, "poly3": 0, "poly3_plot": 0, "poly_featur": [8, 9, 15], "poly_features10": 9, "poly_fit": 9, "poly_fit10": 9, "poly_kernel_svm_clf": 8, "poly_model": 15, "poly_ms": 15, "poly_predict": 15, "polydegre": [0, 5, 6, 10, 25], "polygon": [13, 26], "polym": 12, "polynomi": [0, 5, 6, 7, 8, 9, 10, 11, 15, 17, 24, 25], "polynomial_featur": [6, 15, 16, 17], "polynomial_svm_clf": 8, "polynomialfeatur": [0, 6, 8, 9, 15, 16, 25], "polytrop": [0, 6], "pool": 3, "pool_siz": 3, "poor": [1, 13, 26], "poorli": [0, 25], "popul": [0, 5, 24, 25], "popular": [0, 1, 3, 6, 7, 8, 9, 11, 12, 15, 18, 19, 21, 25], "popularli": [0, 24], "portabl": 10, "portion": [11, 13], "pose": [0, 4, 5, 6, 11, 21, 24], "posit": [0, 1, 2, 3, 5, 7, 8, 10, 11, 13, 14, 19, 21, 24, 25, 26], "possibl": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 18, 19, 21, 22, 24, 25, 26], "possibli": [6, 8, 13], "posterior": 5, "postpon": [0, 25], "postul": 5, "potenti": [0, 3, 5, 6, 12, 13, 25], "pott": 12, "power": [0, 1, 5, 6, 8, 9, 12, 13, 24, 25, 26], "pp": [5, 6], "practic": [0, 5, 6, 7, 8, 16, 21, 25], "practition": [0, 1, 3, 24], "pre": 24, "preced": [1, 11, 12, 21], "preceed": 4, "preceq": 8, "precis": [0, 2, 5, 11, 13, 19, 21, 24, 25], "pred": 6, "predicit": 0, "predict": [0, 1, 5, 6, 7, 8, 9, 10, 15, 16, 17, 18, 23, 24, 25, 26], "predict_prob": 1, "predict_proba": [7, 10], "predictor": [0, 5, 6, 7, 9, 10, 11, 24, 25], "prefer": [0, 1, 6, 8, 9, 11, 13, 15, 18, 24], "prepar": [0, 6, 19, 24, 25], "preprocess": [0, 4, 6, 7, 8, 9, 10, 11, 15, 16, 17], "prerequisit": 0, "presenc": 13, "present": [0, 5, 6, 7, 9, 12, 13, 19, 21, 24, 25, 26], "preserv": [3, 11, 19], "press": [13, 15, 23, 26], "pretrain": [1, 4], "pretti": [0, 4, 8, 9, 18, 24], "prev_centroid": 14, "prevent": [13, 21], "previou": [0, 1, 2, 3, 4, 5, 6, 8, 10, 11, 12, 13, 15, 16, 19, 21, 25, 26], "previous": [2, 3, 9, 10, 21], "price": [0, 4, 9, 13], "primal": 8, "primari": [0, 7, 24], "prime": 21, "princip": [0, 5, 7, 18, 24, 25, 26], "principl": [0, 6, 7, 8, 14, 24], "print": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 19, 21, 24, 25, 26], "print_funct": [8, 9], "printout": [0, 24], "prior": [0, 5, 6, 24], "privat": 0, "prob": [1, 21], "probabilist": [0, 23, 24, 25], "probabl": [0, 1, 3, 4, 6, 7, 10, 13, 18, 24, 25], "problem": [0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 17, 18, 19, 21], "probml": 23, "proce": [0, 5, 6, 7, 8, 9, 10, 11, 13, 19, 24, 25], "procedur": [2, 4, 5, 6, 8, 10, 11, 13, 25, 26], "proceed": 19, "process": [0, 2, 4, 6, 9, 10, 12, 13, 18, 19, 21, 23, 24, 26], "prod": 23, "prod_": [1, 5, 7], "produc": [0, 3, 4, 5, 6, 9, 10, 11, 12, 13, 18, 19, 21, 24, 25], "product": [0, 1, 3, 5, 6, 7, 8, 12, 13, 16, 17, 18, 19, 24, 25], "profess": [0, 24], "program": [0, 1, 4, 5, 6, 8, 12, 14, 15, 18, 19, 20, 21, 22, 24, 25], "programm": 19, "progress": [1, 4, 14], "prohibit": 6, "project": [0, 1, 2, 3, 5, 11, 13, 15, 18, 20, 25, 26], "project_root_dir": [0, 6, 7, 9, 24], "promin": 12, "promis": 8, "promot": [22, 24], "prone": [9, 15], "pronounc": [13, 18, 24], "proof": [0, 11, 12, 13, 24, 26], "propag": [2, 3, 13], "proper": [0, 2, 6, 7], "properli": [1, 6, 8, 10, 13], "properti": [0, 1, 3, 12, 13, 16, 19, 24], "proport": [0, 1, 5, 9, 11, 13, 21, 24, 25], "propos": [1, 4, 6, 10, 24], "propto": [5, 13, 26], "proton": [0, 24], "prove": [3, 13, 26], "provid": [0, 1, 3, 4, 5, 6, 8, 9, 10, 12, 13, 18, 19, 21, 24, 25, 26], "proxi": [1, 13], "prune": 9, "pseudo": [19, 21], "pseudoinv": 5, "pseudoinvers": [5, 6], "pseudorandom": [6, 21], "psychologi": [0, 24], "pt": 13, "public": [0, 15, 18, 24], "pull": 15, "punish": [0, 1, 24], "pure": [3, 9, 21], "purest": 9, "puriti": 9, "purpos": [0, 3, 10, 12, 14, 24], "push": 15, "put": 1, "py": 5, "pycod": 24, "pydata": 18, "pydot": 9, "pyhton2": 24, "pylab": [7, 24], "pypi": 18, "pyplot": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 24, 25, 26], "pythagora": 5, "python": [1, 2, 3, 5, 6, 8, 11, 12, 13, 14, 21, 25], "python2": 0, "python3": [0, 18, 24], "pytorch": [0, 18, 24], "q": [5, 6, 8, 11, 21], "qp": 8, "qquad": [2, 11, 13, 19], "qr": [5, 6, 19, 25, 26], "quad": [1, 13, 19], "quadrat": [0, 8, 9, 13, 24], "qualit": [4, 9, 21], "qualiti": [0, 9, 18, 24, 25], "quantifi": 1, "quantil": 10, "quantit": [0, 6, 9, 24], "quantiti": [0, 2, 5, 6, 7, 9, 10, 11, 12, 14, 16, 19, 21, 24, 25, 26], "quantum": [4, 12, 23, 24], "quartil": [0, 25], "quench": 5, "queri": 9, "question": [0, 5, 6, 9, 11, 12, 13, 22, 24, 25], "qugan": 4, "quick": [4, 21], "quickli": [1, 3, 9, 11, 13, 26], "quit": [1, 5, 6, 9, 10, 12, 15, 25, 26], "quot": 4, "r": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 19, 21, 25, 26], "r2": [0, 5, 6, 24, 25, 26], "r2_score": [0, 24], "r2score": [0, 24], "r_1": 9, "r_2": 9, "r_j": 9, "r_m": 9, "rad": [], "radial": [8, 12], "radioact": 21, "radiu": [0, 1, 25], "rain": 9, "ramp": 1, "ran0": 21, "ran1": 21, "ran2": 21, "ran3": 21, "rand": [0, 4, 5, 6, 9, 10, 13, 15, 19, 24, 25, 26], "randint": [6, 9, 13], "randn": [0, 1, 2, 5, 6, 9, 11, 13, 15, 24, 25, 26], "random": [0, 1, 2, 3, 4, 5, 6, 8, 9, 13, 14, 15, 16, 17, 18, 19, 24, 25, 26], "random_forest_model": 10, "random_index": 13, "random_indic": [1, 3], "random_st": [7, 8, 9, 10, 11], "randomforestclassifi": 10, "randomli": [1, 6, 9, 13, 14, 26], "rang": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25, 26], "rangl": [0, 6, 11, 21, 24, 25], "rangle_x": 21, "rank": [5, 25, 26], "rankdir": 4, "raphson": [1, 8, 13], "rapidli": 0, "rare": [1, 13], "raschka": [24, 25], "rasckha": 24, "rashcka": 26, "rate": [1, 2, 3, 4, 8, 9, 10, 12, 13, 26], "rather": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25, 26], "ratio": [4, 7, 9, 10, 11], "rational": [0, 24], "ravel": [5, 6, 7, 8, 9, 10, 11, 13, 19, 26], "raw": 3, "rbf": [8, 11, 12], "rbf_kernel_svm_clf": 8, "rbf_pca": 11, "rc": 21, "rcond": [0, 24, 25], "rcparam": [1, 3, 7, 8, 9, 10, 21, 24], "re": [2, 4, 13, 15, 26], "reach": [1, 4, 5, 6, 9, 10, 12, 13, 14, 26], "read": [0, 2, 3, 4, 5, 6, 7, 8, 11, 12, 16, 17, 19, 21, 23, 26], "read_csv": [0, 6, 7, 9], "read_fwf": [0, 24], "reader": [0, 6, 19, 21, 24, 25], "readi": [0, 1, 5, 6, 8, 10, 11, 12, 19, 24], "readili": 1, "readm": 15, "readthedoc": 18, "real": [0, 1, 4, 7, 10, 11, 12, 16, 19, 25], "real_loss": 4, "real_output": 4, "realist": [8, 24], "realiti": 21, "realiz": [1, 12], "realli": [0, 1, 24], "rearrang": 13, "reason": [0, 1, 3, 4, 10, 13, 23, 24, 26], "reassign": 1, "recal": [5, 6, 9, 10, 11, 12, 19, 21, 24, 25, 26], "recast": 3, "receiv": [1, 3, 10, 12, 21], "recent": [0, 6, 13, 23], "recept": [3, 12], "receptive_field": 3, "recip": [0, 6, 7, 19, 24, 25], "reciproc": 5, "recogn": [0, 4, 5, 10, 24], "recognit": [0, 1, 3, 12, 23, 24], "recommen": 24, "recommend": [0, 2, 3, 4, 5, 6, 8, 13, 15, 18, 19, 23, 26], "reconsid": 9, "reconstruct": 11, "record": [10, 20, 22, 24], "recreat": 15, "rectangl": [9, 13, 26], "rectangular": [5, 25, 26], "rectifi": [1, 3, 12], "recur": [0, 18, 24], "recurr": [0, 1, 18, 24], "recurs": [9, 18, 19, 24], "red": [0, 3, 4, 6, 8, 9], "redefin": [0, 10, 24, 25, 26], "redefinit": 26, "reduc": [1, 3, 5, 6, 9, 10, 11, 13, 24, 26], "reduct": [0, 10, 11, 18, 21, 24, 25], "refer": [0, 1, 2, 3, 5, 6, 11, 12, 13, 14, 19, 23, 24, 25, 26], "referenc": 2, "refin": 12, "refit": 6, "reflect": [0, 1, 4, 5, 21, 24], "refresh": [18, 24], "refreshprogrammingskil": 24, "reg": [10, 11], "regard": [1, 9, 13], "regardless": [12, 16], "region": [3, 4, 6, 9, 12], "regist": [6, 21], "reglasso": [5, 26], "regr_1": [0, 9], "regr_2": [0, 9], "regr_3": [0, 9], "regress": [1, 8, 11, 12, 16, 18, 19], "regressor": [0, 7, 10], "regridg": [0, 5, 6, 25, 26], "regular": [0, 3, 4, 5, 6, 7, 9, 13, 17, 22, 24, 25, 26], "regularli": 15, "reilli": [0, 23, 24], "reinforc": [0, 8, 18, 24], "reiter": 1, "reject": 7, "rel": [0, 4, 6, 7, 9, 12, 13, 21, 24, 25], "relat": [0, 1, 3, 4, 5, 11, 13, 14, 19, 21, 24, 25, 26], "relationship": [0, 4, 9, 24], "relativeerror": [0, 24, 25], "releas": [1, 18, 24], "relev": [0, 1, 5, 7, 11, 18, 21, 24, 26], "reli": [0, 6, 8], "reliabl": [7, 21], "relu": [3, 4, 24], "remain": [1, 2, 4, 6, 12, 19, 21, 25], "remaind": 21, "reman": 2, "remark": 1, "rememb": [0, 8, 13, 19, 24], "remind": [0, 5, 11, 13, 19, 21], "remot": 15, "remov": [4, 5, 6, 25, 26], "renam": 15, "render": [0, 24, 25], "reorder": [5, 7, 25, 26], "reorgan": [0, 24], "repeat": [0, 1, 3, 4, 5, 6, 9, 10, 11, 13, 14, 19, 21, 24, 25, 26], "repeated": 24, "repeatedli": [0, 6, 10, 13], "repet": 3, "repetit": [6, 24, 25], "rephras": [13, 26], "replac": [0, 1, 3, 4, 5, 6, 10, 12, 14, 18, 24, 25, 26], "replica": 6, "repo": 15, "report": 24, "repositori": [4, 24], "repres": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 21, 24, 25, 26], "represent": [0, 1, 3, 6, 21, 24], "representd": 3, "reproduc": [0, 5, 6, 9, 12, 15, 16, 18, 21, 24, 25], "repuls": [0, 24], "request": [0, 13], "requir": [0, 1, 3, 4, 5, 6, 8, 9, 11, 12, 13, 15, 17, 19, 24, 25, 26], "res1": 2, "res2": 2, "res3": 2, "res_analyt": 2, "res_analytical1": 2, "res_analytical2": 2, "res_analytical3": 2, "resaml": 6, "resampl": [0, 7, 10, 18, 24, 25], "rescal": [0, 11, 12], "rescu": 5, "reseach": 6, "research": [0, 4, 13, 18, 23, 24], "resembl": [6, 21], "reserv": [1, 5, 6, 21], "reshap": [0, 1, 2, 3, 4, 6, 8, 9, 10, 19, 24, 25], "residenti": [], "residu": [0, 5, 13, 24], "resiz": [5, 25, 26], "resourc": 24, "respect": [0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 16, 17, 21, 24, 25, 26], "respond": 12, "respons": [0, 7, 9, 12, 24, 25], "rest": [0, 5, 25, 26], "restat": [0, 12, 24], "restor": 4, "restored_discrimin": 4, "restored_gener": 4, "restrict": [0, 3, 9, 12, 24], "result": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 24], "retail": [], "retain": [5, 6, 25, 26], "return": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 14, 16, 17, 19, 21, 24, 25, 26], "return_data": 14, "return_sequ": 4, "return_x_i": 9, "reus": [1, 3, 6], "reveal": [0, 12, 24], "revers": [1, 19], "review": [18, 19], "revisit": 14, "revolut": 24, "reward": [0, 4, 24], "rewrit": [0, 3, 5, 6, 7, 8, 10, 11, 12, 13, 16, 19, 21, 26], "rewritten": [2, 6, 8, 10, 21], "rewrot": 13, "rf": 10, "rgb": 3, "rgoj5yh7evk": 18, "rh": 6, "rho": [0, 10, 13], "rho_1": 10, "rho_2": 10, "rho_m": 10, "rich": [0, 24], "ride": 9, "rideclass": 9, "ridedata": 9, "ridg": [7, 11, 13, 18, 24], "ridge_paramet": 17, "ridge_sk": 6, "ridgebeta": 26, "ridgetheta": 5, "right": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 19, 21, 24, 25, 26], "right_sid": 2, "rightarrow": [0, 1, 5, 6, 8, 11, 12, 13, 21, 24, 25, 26], "rigor": [0, 24, 25, 26], "ring": 6, "rise": [0, 24], "risk": [0, 13, 24, 26], "rival": 4, "river": [], "rlm": 24, "rm": 21, "rmse": [], "rmsporp": 13, "rmsprop": [1, 3, 4, 13], "rnd_clf": 10, "rng": 21, "rnn": [4, 12], "rnn1": 4, "rnn2": 4, "rnn_2layer": 4, "rnn_input": 4, "rnn_output": 4, "rnn_train": 4, "rntrick1": 21, "rntrick2": 21, "rntrick3": 21, "rntrick4": 21, "ro": [0, 13, 24, 26], "robert": 23, "robust": [0, 24], "robustscal": [0, 25], "roc": [7, 10], "role": [0, 2, 5, 6, 8, 18, 24, 25, 26], "roll": 6, "room": [0, 22, 24], "root": [0, 5, 9, 13, 15, 21, 25, 26], "rot": 24, "rotat": [1, 8, 9, 10], "rotation_matrix": 9, "roughli": [1, 3], "round": [7, 9, 13], "routin": [13, 19, 24, 26], "row": [0, 1, 2, 5, 6, 9, 11, 16, 19, 24, 25, 26], "rr": [5, 25, 26], "rrr": [5, 25, 26], "rug": [13, 26], "rule": [0, 1, 5, 6, 13, 24, 25, 26], "run": [0, 1, 2, 4, 5, 6, 8, 9, 11, 13, 15, 18, 24, 25, 26], "runtim": [1, 6, 14, 15], "rust": [0, 18, 19, 24], "rvert": 1, "rvert_2": 1, "s_": [3, 6], "s_1": 6, "s_i": [6, 7], "s_j": 6, "s_k": 6, "saddl": [13, 26], "sai": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 19, 21, 24, 25, 26], "said": [6, 9, 13, 26], "sake": [0, 5, 7, 11, 24, 25, 26], "sale": [0, 24], "sam": 24, "same": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 12, 14, 15, 16, 19, 21, 24, 25, 26], "samm": 10, "sampl": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 18, 19, 21, 24, 25], "sample_vari": 14, "sampleexptvari": 21, "samwis": 24, "sastri": 11, "satisfactori": [0, 24], "satisfi": [1, 2, 3, 6, 8, 13, 19, 21, 26], "satur": [1, 6], "save": [0, 4, 6, 7, 9, 13, 24], "save_fig": [0, 6, 7, 9, 10, 24], "savefig": [0, 4, 6, 7, 9, 21, 24], "savetxt": 4, "saw": [5, 25], "scalabl": 10, "scalar": [2, 5, 6, 10, 25], "scale": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 18, 19, 22, 24, 26], "scale_mean": 4, "scale_std": 4, "scaler": [0, 7, 8, 9, 10, 11, 17, 25], "scan": [5, 7], "scari": 5, "scatter": [0, 1, 6, 7, 8, 9, 14, 15, 17, 24, 25], "scenario": [6, 13, 26], "schedul": 13, "scheme": [1, 13, 26], "schrage": 21, "sch\u00f8yen": [6, 25], "scienc": [0, 1, 10, 12, 13, 18, 20, 21, 22, 23, 26], "scientif": [0, 18, 24], "scientist": [0, 24], "scikit": [3, 5, 6, 8, 9, 10, 13, 15, 16, 18, 19, 23], "scikit_learn": 0, "scikitlearn": 24, "scikitplot": [7, 10], "scipi": [0, 3, 5, 6, 13, 18, 19, 24, 25, 26], "scl": 6, "scm": 15, "score": [0, 1, 3, 6, 7, 9, 10, 11, 15, 16, 22, 24, 25], "scores_kfold": 6, "scratch": [1, 13, 16], "sdg": 13, "sdv4f4s2sb8": 26, "seaborn": [0, 1, 3, 6, 7, 24], "seamless": [0, 18, 24], "search": [0, 1, 3, 5, 9, 13, 15, 24, 26], "sebastian": 24, "sebastianraschka": 24, "sec": 6, "second": [0, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 14, 15, 16, 18, 19, 21, 22, 24, 25, 26], "secondeigvector": 11, "secondli": 12, "section": [4, 11, 16, 19, 21, 25], "sector": 0, "see": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 18, 19, 21, 24, 25, 26], "seed": [0, 1, 2, 3, 4, 5, 6, 8, 9, 11, 13, 14, 21, 24, 25, 26], "seed_imag": 4, "seek": [1, 2, 8], "seem": [1, 3, 4], "seemingli": [0, 24], "seen": [0, 1, 3, 5, 10, 12, 21], "segment": [13, 26], "seismic": 6, "seldomli": [0, 24], "select": [1, 5, 6, 8, 9, 10, 11, 15, 20, 21, 22, 23, 24, 25, 26], "selevet": 15, "self": [1, 5, 25], "sell": 4, "semest": [7, 20], "semi": [8, 13, 26], "semilogx": 6, "send": [5, 12, 13, 22, 24], "senior": [20, 22], "sens": [0, 4, 6, 8, 24], "sensibl": 3, "sensit": [0, 5, 6, 9, 13, 24, 25], "sent": 2, "sentenc": [4, 12], "separ": [0, 1, 2, 4, 6, 8, 9, 12, 14, 18, 21, 24], "septemb": 24, "sequenc": [3, 4, 7, 9, 10, 12, 13, 18, 19, 21, 24, 26], "sequenti": [1, 3, 4, 10, 12, 21], "seri": [0, 1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 19, 24, 25, 26], "serif": [7, 21, 24], "serv": [0, 1, 2, 3, 5, 7, 13, 23, 24, 25, 26], "session": [1, 15, 20, 22, 24], "set": [1, 4, 5, 6, 7, 8, 10, 11, 13, 14, 16, 17, 18, 19, 21, 22], "set_major_formatt": 6, "set_major_loc": 6, "set_tick": [1, 8], "set_ticklabel": 1, "set_titl": [0, 1, 2, 3, 7, 12, 14, 24], "set_xlabel": [0, 1, 2, 3, 7, 12, 24], "set_xlim": [7, 12], "set_xticklabel": 1, "set_ylabel": [0, 1, 2, 3, 7, 24], "set_ylim": [7, 12], "set_ytick": 7, "set_yticklabel": [1, 6], "set_zlim": 6, "seth": 4, "setminu": 6, "setosa": [8, 9], "setosa_or_versicolor": 8, "setp": 6, "setup": [1, 4, 6, 8, 18, 24, 25, 26], "sever": [0, 3, 5, 6, 7, 8, 9, 11, 12, 13, 16, 18, 19, 21, 24, 25, 26], "sgd": [1, 3, 26], "sgd_clf": 8, "sgdclassifi": 8, "sgdreg": [13, 26], "sgdregressor": [13, 26], "sgn": [5, 25, 26], "shallow": 13, "shape": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 19, 24, 25, 26], "share": [1, 3, 15, 24], "shareabl": 15, "she": 7, "shift": [1, 6, 12, 15, 21, 25], "ship": 3, "shire": 24, "short": [4, 5], "shortcom": [13, 26], "shorten": 4, "shorter": 21, "shorthand": 24, "shortli": [19, 24], "should": [0, 2, 3, 5, 6, 8, 9, 11, 12, 15, 19, 21, 24, 25], "show": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24, 25, 26], "show_shap": 4, "shown": [0, 4, 5, 8, 12, 13, 19, 25, 26], "shrink": [3, 5, 6, 8, 11, 25, 26], "shrinkag": [5, 6, 25, 26], "shrunk": 11, "shuffl": [0, 1, 4, 6, 13, 25], "side": [0, 2, 5, 8, 12, 13, 19, 24, 26], "sigh": [18, 24], "sigma": [0, 1, 5, 6, 7, 10, 11, 12, 13, 19, 21, 24, 25, 26], "sigma0": 21, "sigma1": 21, "sigma2": 21, "sigma_": [5, 19, 24, 25, 26], "sigma_0": [5, 25, 26], "sigma_1": [5, 25, 26], "sigma_2": [5, 25, 26], "sigma_fn": [7, 12], "sigma_i": [0, 5, 24, 25, 26], "sigma_j": [5, 25, 26], "sigma_m": [6, 21], "sigma_n": [11, 21], "sigma_t": 13, "sigma_x": 21, "sigmoid": [1, 2, 4, 7, 8, 10, 12], "sigmundson": [6, 25], "sign": [1, 2, 7, 8, 10, 21, 22], "signal": [1, 3, 10, 12], "signifi": 4, "signific": 1, "significantli": [1, 13, 21, 26], "sim": [4, 5, 6, 13, 21], "similar": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14, 18, 19, 24, 26], "similarli": [0, 1, 3, 5, 8, 10, 13, 21, 24, 25, 26], "simpl": [1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 14, 16, 17, 18, 19, 21], "simplepredict": 10, "simpler": [0, 1, 5, 6, 7, 13, 16, 18, 24, 26], "simplernn": 4, "simplest": [0, 1, 3, 4, 9, 10, 12, 14, 24], "simpletre": 10, "simpli": [0, 1, 2, 4, 5, 6, 8, 9, 10, 11, 12, 18, 19, 21, 24, 25, 26], "simplic": [2, 5, 6, 7, 8, 9, 10, 11, 12, 14, 25, 26], "simplicti": [5, 25, 26], "simplifi": [0, 6, 9, 18, 24, 25], "simplist": [3, 6, 21], "simul": 6, "simultan": 6, "sin": [0, 1, 2, 3, 4, 9, 12, 13, 19, 24], "sinc": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 13, 16, 19, 21, 23, 24, 25, 26], "sine": [3, 12], "singl": [0, 1, 2, 3, 5, 6, 7, 8, 9, 12, 13, 19, 21, 24, 25, 26], "singular": [0, 6, 13, 19, 24], "sinusoid": 3, "site": [0, 20, 25], "situat": [0, 4, 5, 7, 13, 21, 24, 25, 26], "six": [3, 21], "size": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 13, 19, 21, 24], "sketch": 10, "ski": 9, "skill": 0, "skip": 11, "skl": [0, 6, 24, 25], "sklearn": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 17, 24, 25, 26], "skplt": [7, 10], "sl": [6, 25], "slack": 8, "slice": [2, 19, 24], "slide": [0, 3, 16, 21, 24, 25, 26], "slight": [6, 13], "slightli": [1, 2, 3, 5, 6, 7, 10, 21, 25, 26], "slope": [8, 11, 12], "slow": [0, 2, 8, 13, 25, 26], "slower": [5, 19, 24, 25, 26], "slowest": 19, "slowli": 12, "slp": 1, "small": [0, 1, 2, 3, 5, 6, 8, 9, 10, 11, 12, 13, 18, 19, 21, 24, 25, 26], "smaller": [0, 1, 2, 5, 6, 8, 9, 11, 13, 21, 24, 25, 26], "smallest": [0, 4, 14, 24], "smallest_row_index": 14, "smooth": [0, 3, 6, 13, 24, 26], "sn": [0, 1, 3, 6, 7, 24], "sne": 11, "so": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 21, 22, 24, 25, 26], "soar": 6, "social": 0, "soft": [1, 7, 10, 12], "soften": 8, "softmax": [3, 7], "softwar": [0, 8, 18, 19], "sol": 8, "sole": [0, 6, 24], "solid": [0, 7], "solut": [0, 1, 2, 3, 5, 6, 8, 10, 11, 13, 19, 21, 24, 25, 26], "soluton": 2, "solv": [0, 1, 3, 5, 6, 8, 10, 11, 12, 13, 16, 19, 24, 25], "solve_expdec": 2, "solve_ode_deep_neural_network": 2, "solve_ode_neural_network": 2, "solve_pde_deep_neural_network": 2, "solveod": 2, "solveode_popul": 2, "solver": [2, 7, 8, 9, 10, 19, 24], "some": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 21, 24], "some_model": [6, 25], "somehow": 4, "someon": 16, "someth": [0, 1, 3, 4, 7, 9, 11, 15, 21, 24, 25], "sometim": [0, 1, 11, 12, 13, 14, 25], "soon": [19, 22, 25], "sophist": [0, 24], "sopt": 13, "sort": [5, 6, 9, 11, 21], "sound": [3, 5], "sourc": [0, 1, 3, 6, 18, 19, 21, 24], "space": [0, 1, 4, 5, 8, 9, 11, 12, 13, 14, 21, 25, 26], "span": [0, 3, 5, 9, 11, 19, 24, 25, 26], "spare": 1, "spars": [3, 6, 19, 24], "sparse_mtx": [19, 24], "sparsecategoricalcrossentropi": 3, "sparsiti": 10, "spatial": [1, 2, 3, 12], "speak": 21, "special": [6, 7, 10, 12, 13, 19, 21, 24, 25, 26], "specif": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 15, 16, 18, 19, 21, 23, 24, 25, 26], "specifi": [0, 3, 5, 6, 7, 9, 11, 13, 14, 21, 24, 26], "specifici": [0, 10, 24], "spectacular": 3, "spectral": 1, "speech": [0, 1, 3, 4, 12], "speed": [1, 2, 4, 13], "spend": [16, 21], "sphere": [0, 25], "spin": 6, "spite": 0, "spline": 8, "split": [1, 3, 4, 5, 6, 8, 9, 10, 11, 14, 16, 17, 21, 24, 26], "splite": 0, "splitter": [1, 10], "spontan": 21, "spot": 3, "spread": [0, 11, 21, 24, 25], "springer": [23, 24], "spuriou": 13, "sqquar": 26, "sqrsignal": 3, "sqrt": [3, 4, 5, 6, 8, 10, 11, 13, 21, 25, 26], "squar": [1, 2, 3, 4, 7, 8, 9, 11, 13, 14, 15, 17, 18, 19, 21], "squarederror": 10, "squaredeuclidean": 14, "squash": 12, "srtm": 6, "srtm_data_norway_1": 6, "stabil": 5, "stabl": [0, 4, 5, 6, 9, 16, 18, 24, 25, 26], "stack": [3, 4], "stage": [5, 13, 15], "stai": [0, 2, 4, 5, 11, 24, 25], "stand": [0, 5, 9, 12, 24, 25, 26], "standard": [0, 1, 4, 5, 6, 7, 8, 10, 12, 17, 19, 21, 24, 26], "standardscal": [0, 6, 7, 8, 9, 10, 11, 17, 25], "stanford": [13, 26], "start": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 22, 24, 25, 26], "start_tim": 14, "stat": 6, "state": [1, 2, 4, 5, 6, 7, 8, 10, 11, 12, 13, 18, 21, 24, 25, 26], "statement": [0, 7, 19, 24], "stationari": 26, "statist": [0, 1, 3, 4, 7, 9, 10, 11, 12, 13, 14, 19, 23, 25, 26], "statu": [0, 7, 15, 24], "stavang": 6, "std": [0, 4, 6, 24, 25], "steep": [13, 26], "step": [0, 1, 2, 4, 6, 7, 9, 10, 11, 12, 13, 14, 15, 19, 24, 26], "step_fn": [7, 12], "step_length": 13, "steps_list": 9, "stereo": 3, "still": [0, 2, 3, 5, 6, 11, 13, 21, 25, 26], "stimuli": 12, "stk": [23, 24], "stk2100": [23, 24], "stk3155": [15, 20, 22], "stk4021": [23, 24], "stk4051": [23, 24], "stk4155": [20, 22], "stk5000": 23, "stochast": [0, 1, 5, 6, 8, 11, 12, 26], "stock": 4, "stoke": 12, "stone": [0, 7], "stop": [1, 4, 9, 13, 14, 26], "storag": [5, 25, 26], "store": [0, 1, 2, 3, 6, 11, 13, 21, 24], "storehaug": [22, 24], "str": [1, 3, 4], "straight": [0, 6, 8, 13, 24, 26], "straightforward": [0, 2, 3, 5, 6, 8, 9, 10, 13, 19, 24, 25, 26], "strategi": [0, 1, 9, 24], "stratifi": 6, "strength": [0, 5, 14, 25, 26], "stretch": 11, "strict": [8, 13, 26], "strictli": [8, 13, 26], "stride": [4, 19], "strike": 6, "string": 1, "stroke": 7, "strong": [3, 6, 9, 10, 12, 19, 21], "strongli": [0, 8, 15, 18, 19], "stronli": [], "structur": [0, 1, 2, 3, 6, 9, 10, 12, 18, 24], "stuck": [1, 13, 26], "student": [0, 15, 20, 22, 23, 24], "studi": [0, 3, 4, 5, 6, 7, 8, 11, 12, 13, 18, 23, 24, 25, 26], "studier": 23, "style": [7, 9, 19, 24], "st\u00f8land": 22, "sub": [9, 12], "subdivid": [0, 19, 24], "subfield": 0, "subject": [6, 8, 21], "submit": 24, "subplot": [0, 1, 3, 4, 6, 7, 8, 9, 10, 14, 24], "subplots_adjust": [8, 21], "subprogram": [19, 24], "subract": [0, 25], "subroutin": [0, 24], "subscript": 1, "subsequ": [1, 4, 5, 6, 12, 19, 21, 25, 26], "subset": [1, 6, 9, 12, 13, 18, 24, 26], "subspac": [0, 8, 11, 25], "substanti": [9, 10], "substep": 11, "substitut": [3, 6, 12, 16, 19], "subsubset": 9, "subtask": 6, "subtl": 1, "subtract": [0, 4, 5, 6, 11, 13, 19, 21, 25], "subtre": 9, "succeed": [0, 4, 24], "success": [3, 7, 9, 13, 21], "successfulli": [4, 9], "sudo": [0, 18, 24], "suffer": [0, 1, 2, 5, 10, 24, 25, 26], "suffici": [1, 6, 8, 11, 13, 26], "suggest": [1, 13, 23, 26], "suit": [8, 12], "suitabl": [0, 15, 21, 25], "sum": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25, 26], "sum_": [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 19, 21, 24, 25, 26], "sum_i": [0, 2, 5, 6, 8, 13, 25, 26], "sum_j": 6, "sum_ja_": 0, "sum_k": [6, 8, 12, 19], "sum_logist": 13, "sum_m": 3, "sum_n": 3, "sum_nx_": 3, "summar": [5, 6, 9], "summari": [1, 3, 4, 10, 20, 26], "summat": [0, 3, 16, 25, 26], "sunni": 9, "super": [5, 25, 26], "superfici": 3, "superscript": [1, 12], "supervis": [0, 5, 6, 7, 9, 12, 18, 24, 25, 26], "supplement": 7, "support": [0, 1, 9, 10, 11, 13, 18, 24, 25], "suppos": [0, 5, 6, 7, 8, 10, 11, 12, 13, 19, 24, 25, 26], "suppress": [5, 13, 26], "sure": [0, 1, 4, 6, 16], "surf": 6, "surfac": [0, 6, 24], "surpass": 6, "surpris": [0, 24], "surround": [3, 18], "survei": [0, 5, 6, 24, 25], "svc": [8, 9, 10], "svd": [0, 6, 11, 24], "svdinv": 5, "svm": [8, 9, 10, 11], "svm_clf": [8, 10], "swath": [5, 25, 26], "switch": 0, "sy": [13, 26], "symbol": [1, 5, 11, 13, 18, 21, 24, 25, 26], "symmeteri": 1, "symmetr": [0, 5, 8, 11, 12, 13, 19, 24, 25], "symmetri": 6, "sympi": [0, 18, 24], "synonim": 21, "syntax": 13, "system": [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15, 18, 19, 24, 26], "systemat": [4, 6], "t": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 26], "t0": [3, 6, 13], "t1": [2, 13], "t2": 2, "t3": 2, "t_": 2, "t_0": [2, 9, 13], "t_1": 13, "t_b": 10, "t_i": [1, 2, 5, 12, 25, 26], "t_j": 12, "t_k": 9, "tabl": [9, 21, 22, 24], "tabul": [0, 24], "tabular": 24, "tackl": 4, "tag": [2, 3, 4, 5, 6, 7, 12, 13, 14, 19, 21, 25, 26], "taht": [0, 24], "tail": 21, "tailor": [2, 8, 11, 24], "taiwan": [0, 24], "take": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 17, 18, 19, 21, 24, 25, 26], "taken": [0, 1, 3, 6, 10, 13, 19], "tan": 3, "tangent": [1, 4, 12, 13, 26], "tanh": [1, 4, 7, 8, 12], "target": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 15, 16, 24, 25, 26], "target_nam": 9, "task": [0, 1, 3, 6, 9, 11, 12, 14, 24], "tau": [3, 5, 21], "taught": 24, "tax": [], "taylor": [2, 13, 26], "taylornr": [13, 26], "tc": 8, "teach": [15, 20, 24], "team": 1, "teaser": 0, "technic": [0, 5, 6, 13, 26], "techniqu": [0, 1, 8, 10, 13, 18, 21, 23, 24, 25], "technologi": [0, 1], "tell": [0, 4, 6, 10, 11, 13, 16, 21], "temp": 1, "temp1": 1, "temp2": 1, "temperatur": [0, 9, 24], "temporarili": 1, "ten": [3, 24], "tend": [3, 5, 6, 8, 9, 10, 12, 13, 14, 25], "tendenc": [0, 24], "tension": 6, "tensor": 3, "tensorflow": [0, 2, 4, 8, 14, 18, 19, 23, 24, 25], "term": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21, 24, 25, 26], "term1": [5, 6, 11], "term2": [5, 6, 11], "term3": [5, 6, 11], "term4": [5, 6, 11], "termin": [0, 4, 5, 9, 10, 13, 15, 25, 26], "terminarl": 15, "terrain": 6, "terrain1": 6, "test": [3, 4, 5, 6, 7, 8, 9, 10, 13, 16, 19, 21, 24, 26], "test_acc": 3, "test_accuraci": [1, 3], "test_error": 6, "test_imag": [3, 4], "test_ind": 6, "test_input": 4, "test_label": [3, 4], "test_loss": 3, "test_pr": 1, "test_predict": 1, "test_rnn": 4, "test_scor": [7, 10], "test_siz": [0, 1, 3, 5, 6, 10, 15, 17, 25, 26], "test_split": 9, "testerror": [0, 6, 25], "testi": 4, "testpredict": 4, "testx": 4, "text": [0, 1, 2, 4, 5, 8, 9, 11, 13, 15, 19, 21, 23, 25, 26], "textbook": [16, 25, 26], "textual": 9, "textur": 1, "tf": [1, 3, 4, 13, 14, 26], "th": [0, 1, 2, 5, 6, 7, 9, 12, 13, 14, 19, 21, 24, 25], "than": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 17, 18, 21, 24, 25], "thank": [4, 6, 25], "theano": [1, 18, 24], "thei": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 19, 21, 24, 25, 26], "them": [0, 1, 3, 4, 6, 8, 9, 10, 11, 12, 13, 19, 24, 25], "theme": [0, 15, 24], "themselv": [0, 21, 24], "thenc": 6, "theorem": [2, 6, 7, 25, 26], "theoret": [0, 4, 10], "theori": [0, 1, 3, 8, 9, 12, 13, 18, 23, 24], "thereaft": [0, 5, 6, 11, 12, 19, 24], "therebi": [0, 5, 7, 11, 24, 25, 26], "therefor": [0, 1, 2, 3, 4, 6, 7, 8, 11, 13, 21, 24, 25, 26], "therein": 11, "thereof": [0, 6, 13, 24], "theta": [0, 1, 4, 5, 6, 7, 13, 16, 21, 24, 25, 26], "theta_": [0, 1, 6, 7, 13, 24, 25, 26], "theta_0": [0, 5, 6, 7, 16, 24, 25, 26], "theta_0x_": [0, 24, 25], "theta_1": [0, 5, 6, 7, 24, 25, 26], "theta_1x_": [0, 24, 25], "theta_1x_0": [0, 24], "theta_1x_1": [0, 7, 24], "theta_1x_2": [0, 24], "theta_1x_i": [7, 25, 26], "theta_2": [0, 24, 25], "theta_2x_": [0, 24, 25], "theta_2x_0": [0, 24], "theta_2x_1": [0, 24], "theta_2x_2": [0, 7, 24], "theta_2x_i": 25, "theta_3x_i": 25, "theta_4x_i": 25, "theta_i": [0, 1, 5, 24, 25, 26], "theta_j": [0, 5, 6, 24, 25], "theta_k": 26, "theta_linreg": [13, 26], "theta_p": 7, "theta_px_p": 7, "theta_t": 13, "thetavalu": 5, "thi": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 25, 26], "thing": [0, 1, 2, 4, 5, 7, 9, 15, 16, 21, 24], "think": [0, 1, 3, 4, 6, 9, 12, 13, 14, 21, 24, 25, 26], "third": [0, 3, 6, 13, 22, 24, 26], "thirti": 7, "thorughout": 24, "those": [0, 3, 5, 6, 8, 9, 10, 11, 19, 24, 25, 26], "though": [1, 2, 3, 4, 13, 16, 17, 19, 21], "thought": [6, 14, 21], "thousand": [0, 1, 25], "three": [0, 1, 3, 5, 6, 8, 9, 12, 19, 20, 21, 22, 24, 25, 26], "threshold": [1, 3, 9, 10, 11, 12, 13], "through": [0, 1, 2, 3, 4, 5, 6, 8, 11, 12, 13, 14, 15, 18, 19, 21, 24, 25, 26], "throughout": [0, 4, 5, 14, 15, 18, 19, 21, 24], "throw": [3, 6, 21], "thu": [0, 1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 22, 24, 25, 26], "thumb": [0, 6, 25], "thursdai": [], "tibshirani": [6, 23, 24], "tick_param": 6, "ticker": [6, 13, 21, 26], "tif": 6, "tight_layout": [1, 7], "tightli": 11, "tild": [0, 5, 6, 7, 11, 21, 24, 25, 26], "till": [0, 4, 7, 8, 9, 10, 12, 19, 24, 25], "time": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 24, 25, 26], "timeit": 4, "timer": 4, "tini": 1, "tip": 3, "titl": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 13, 15, 21, 24, 26], "tmp": 13, "tn": [2, 3, 7], "to_categor": [1, 3, 4], "to_categorical_numpi": 1, "to_numer": [0, 6, 24], "todai": 3, "togeth": [0, 3, 6, 8, 11, 13, 18, 24], "toi": 14, "told": 13, "toler": [2, 14], "tolist": 4, "tomographi": 12, "too": [0, 2, 4, 5, 6, 9, 11, 13, 17, 21, 23, 25, 26], "took": [8, 24], "tool": [0, 1, 3, 6, 13, 15, 18, 25], "toolbox": 8, "top": [0, 3, 5, 6, 9, 10, 18, 24], "topic": [0, 5, 6, 7, 8, 18, 25, 26], "topolog": [3, 12], "topologi": [1, 12], "torkjellsdatt": [22, 24], "toss": [10, 21], "total": [0, 1, 2, 3, 4, 6, 7, 8, 10, 11, 12, 13, 14, 19, 21, 22, 24, 25, 26], "total_loss": 4, "totalclustervari": 14, "totalscatt": 14, "toward": [1, 2, 7, 12, 13, 15, 26], "town": [], "tp": [4, 7], "tpng": 9, "tpu": [13, 18, 24], "tqdm": 6, "tr": [], "track": [3, 13, 14, 15, 19, 25, 26], "tract": [], "tractabl": [0, 24, 25], "trade": [5, 9], "tradeoff": [0, 5, 24, 25, 26], "tradit": [0, 1, 4, 6, 24], "train": [2, 3, 5, 6, 8, 9, 10, 11, 12, 13, 16, 17, 26], "train_accuraci": [0, 1, 3, 24], "train_dataset": 4, "train_end": [0, 1, 25], "train_error": 6, "train_imag": [3, 4], "train_ind": 6, "train_label": [3, 4], "train_pr": 1, "train_siz": [0, 1, 3, 25], "train_step": 4, "train_test_split": [0, 1, 3, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25, 26], "train_test_split_numpi": [0, 1, 25], "trainable_vari": 4, "trained_model": [6, 25], "trainerror": [0, 25], "traini": 4, "training_checkpoint": 4, "training_dataset": 4, "training_gradi": 13, "trainingerror": 6, "trainpredict": 4, "trainscor": 4, "trainx": 4, "trait": [0, 24], "trajectori": 4, "transfer": [9, 24], "transform": [0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 17, 18, 19, 24, 25, 26], "transit": [6, 12], "translat": [1, 4, 6, 10, 24, 25], "transpos": [1, 5, 11, 19, 25, 26], "travers": [0, 5], "treat": [0, 1, 3, 6, 12, 13, 21, 24, 25, 26], "tree": [0, 1, 18, 24], "tree_clf": [9, 10], "tree_clf_": 9, "tree_clf_sr": 9, "tree_reg": 9, "tree_reg1": 9, "tree_reg2": 9, "trend": 21, "treue": 7, "trevor": 23, "tri": [2, 3, 4, 9, 13, 16], "triain": 0, "trial": [0, 2, 4, 6, 13, 21, 24, 26], "triangl": [13, 26], "triangular": 19, "trick": [3, 4, 8, 11, 13, 21], "trickier": 21, "tridiagon": 19, "trillion": 18, "trivial": [0, 1, 5, 11, 21, 24, 26], "troubl": [0, 8, 12, 15, 25], "truck": 3, "true": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 19, 21, 24, 25, 26], "true_beta": 25, "true_fun": 6, "true_theta": 6, "truli": 24, "try": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 18, 19, 21, 24, 25, 26], "tucker": 8, "tuesdai": [22, 24], "tumor": [7, 9], "tumour": 7, "tunabl": 1, "tune": [4, 9, 13, 19, 24], "turn": [0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 21, 24, 25, 26], "tutori": [1, 4], "tv": 2, "tveito": 2, "tweak": [1, 4, 10, 21], "twice": [13, 26], "twist": 11, "two": [0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 12, 13, 15, 17, 19, 20, 21, 23, 24, 25, 26], "tx": [13, 26], "tx_1": [13, 26], "txt": [4, 15], "ty": [13, 26], "type": [0, 1, 3, 6, 8, 10, 13, 19, 21, 25, 26], "typic": [0, 1, 2, 3, 4, 5, 7, 9, 10, 12, 13, 15, 16, 21, 24, 25, 26], "u": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 23, 24, 25, 26], "u_": 19, "u_i": 12, "u_m": 10, "ua": [0, 24], "ubuntu": [0, 18, 24], "uci": [], "uio": [15, 22, 23], "un": 14, "unabl": 15, "unari": [19, 24], "unbalanc": [6, 9], "unbias": [0, 5, 6, 24], "uncent": [6, 25], "uncertainti": [0, 5, 24], "uncertitud": 21, "unchang": [1, 3], "uncorrel": [10, 21], "undefin": [5, 25, 26], "under": [0, 1, 5, 6, 10, 13, 18, 24, 25, 26], "underdetermin": [0, 24], "underfit": [1, 6], "underflowproblem": 5, "undergo": 5, "undergradu": [20, 22], "underli": [0, 1, 9, 13, 21, 24], "underset": [4, 14], "understand": [0, 1, 3, 5, 6, 10, 13, 14, 15, 18, 24, 25, 26], "understood": [8, 13], "undesir": 8, "undetermin": [5, 8], "undo": 4, "unexpect": 6, "unexpected": 21, "unfair": [6, 25], "unfortun": [1, 8, 9, 10], "unicode_liter": [8, 9], "uniform": [0, 1, 5, 6, 11, 13, 21, 24, 26], "uniformli": [13, 21, 26], "unifrompdf": 21, "unimport": [13, 26], "union": [5, 6], "uniqu": [0, 2, 6, 13, 14, 19, 24], "unique_cluster_label": 14, "unit": [0, 1, 3, 4, 5, 10, 12, 21, 24, 25, 26], "unitari": [5, 6, 19, 25, 26], "unitarili": [19, 24], "uniti": 21, "univari": 21, "univers": [0, 1, 2, 13, 18, 20, 22, 24, 25, 26], "unix": 1, "unknow": [0, 19, 24], "unknown": [0, 1, 3, 4, 5, 6, 8, 10, 13, 19, 24, 25, 26], "unknowwn": 12, "unlabel": 1, "unless": [0, 3, 6, 11, 13, 24, 26], "unlik": [1, 3, 8, 13, 26], "unnecessarili": 9, "unord": 3, "unravel": 1, "unrol": [3, 11], "unseen": [0, 7, 9, 15], "unstabl": 1, "unsupervis": [0, 1, 4, 12, 18, 24], "unsymmetr": [19, 24], "until": [1, 2, 4, 9, 12, 13, 14, 26], "untouch": 0, "unusu": 12, "up": [1, 3, 4, 5, 6, 8, 10, 11, 13, 14, 16, 18, 19, 21, 22], "updat": [1, 2, 10, 12, 13, 14, 15], "uploa": 24, "upload": [15, 18, 23], "upon": [0, 1, 6, 7, 11, 19], "upper": [0, 8, 9, 16, 19, 25], "uppercas": [19, 24], "upsampl": 4, "upscal": 4, "url": [24, 25], "us": [4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 17, 19, 21, 23], "usag": [0, 8, 18, 24, 25], "usd": [], "usd10000": [], "use_bia": 4, "usecol": [0, 24], "useless": 1, "user": [0, 1, 2, 4, 6, 7, 15, 18, 19, 24, 25], "usernam": 15, "usetex": 21, "usg": 6, "usr": 21, "usual": [0, 3, 4, 7, 12, 13, 14, 24], "ut": 5, "util": [1, 3, 4, 6, 7, 10, 14, 24], "ux": 19, "v": [2, 4, 5, 6, 11, 13, 15, 18, 25, 26], "v0": 21, "v1": 21, "v2": 21, "v_0": 11, "va": 1, "vahid": 24, "val": 13, "val_accuraci": 3, "val_loss": 4, "vale": 2, "valid": [0, 1, 4, 7, 9, 10, 13, 18, 21, 24, 25], "validation_data": 3, "validation_split": 4, "valu": [0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 16, 17, 18, 19, 24], "valuat": 9, "valy": 4, "van": [0, 24, 25, 26], "vandenbergh": [8, 13, 26], "vandermond": [0, 24], "vanilla": [0, 6, 11, 14, 25], "vanish": [1, 4, 13, 21, 26], "var": [5, 6, 10, 11, 21, 25], "var_x": 21, "varabl": 8, "varepsilon": [5, 6], "varepsilon_": [5, 6], "varepsilon_i": [5, 6], "vari": [0, 1, 3, 5, 6, 10, 24], "variabl": [0, 1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 14, 19, 24, 25], "varianc": [0, 1, 5, 7, 9, 10, 11, 13, 14, 18, 19, 21, 24, 25, 26], "variance_i": [5, 11, 25], "variance_x": [5, 11, 25], "variant": [0, 1, 6, 8, 12, 13, 24, 25, 26], "variat": [3, 4, 11, 24], "varieti": [0, 3, 12, 18, 24], "variou": [1, 3, 5, 6, 7, 8, 9, 11, 12, 13, 16, 18, 19, 21, 24, 25, 26], "varydimens": 4, "vastli": 3, "vaue": 1, "vault": 0, "vdot": [2, 13, 26], "vec": 6, "vector": [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 13, 14, 17, 18, 26], "vector_mean": 14, "ventur": [0, 8, 18, 24], "venv": 15, "verbos": [1, 3, 4], "veri": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 21, 23, 24, 25, 26], "verifi": [3, 11, 19, 24], "versatil": [8, 24], "versicolor": [8, 9], "version": [0, 3, 10, 13, 14, 15, 18, 19, 21, 24], "versu": 1, "vert": [0, 1, 5, 6, 7, 8, 9, 11, 13, 16, 17, 24, 25, 26], "vert_1": [5, 6, 25, 26], "vert_2": [5, 6, 11, 17, 25, 26], "via": [0, 5, 6, 7, 8, 9, 10, 11, 12, 18, 19, 20, 21, 22, 24, 25, 26], "vidal": 11, "video": [0, 1, 12, 18, 20, 22, 24, 25, 26], "view": [1, 3, 5, 6, 12, 13, 21, 23, 24, 26], "violat": 8, "virginica": 9, "viridi": [0, 1, 2, 3, 24], "virtual": 1, "viscos": 13, "viscou": 13, "visibl": 15, "vision": [0, 3], "visual": [0, 3, 11, 12, 18, 24, 25], "visualis": 1, "visualstudio": [15, 16], "viz": [6, 8, 21], "vmap": 13, "vmax": [1, 6], "vmin": [1, 6], "voic": 3, "volum": [0, 3, 24], "vote": [10, 24], "voting_clf": 10, "votingclassifi": 10, "votingsimpl": 10, "vstack": [5, 11, 19, 21, 24, 25], "vt": [5, 25, 26], "w": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 19, 21, 24, 25, 26], "w1": 8, "w2": [8, 11], "w3": 8, "w_": [1, 12], "w_1": [8, 19], "w_1x_": 8, "w_1x_1": 8, "w_2": [8, 19], "w_2x_": 8, "w_2x_2": 8, "w_3": 19, "w_4": 19, "w_hidden": 2, "w_i": [1, 2, 10], "w_ix_i": 12, "w_j": 19, "w_m": 19, "w_output": 2, "w_px_": 8, "w_px_p": 8, "wa": [1, 3, 4, 5, 6, 7, 10, 11, 12, 14, 17, 19, 24, 25], "wai": [0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 19, 21, 24, 25, 26], "walk": 9, "walker": 21, "wang": [0, 24], "want": [0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 21, 24, 25, 26], "warn": 4, "warrant": 6, "wast": 3, "watch": [18, 26], "wave": 3, "wavelet": 8, "we": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 25, 26], "weak": [9, 10, 14], "weather": [1, 12], "web": [18, 20, 22, 24], "webpag": 24, "websit": [6, 19, 20, 24], "wedg": [8, 21], "wednesdai": [22, 24], "wee": 11, "week": [0, 5, 6, 7, 20, 22], "weekli": [15, 16, 18, 20, 22, 23, 24], "weight": [1, 2, 3, 6, 7, 9, 10, 12, 13, 21], "weigth": 2, "welcom": [8, 15, 18], "well": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 18, 19, 21, 23, 24, 25, 26], "went": 8, "were": [0, 1, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 21, 24], "wessel": [0, 24, 25, 26], "what": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21], "whatev": 3, "when": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 19, 21, 24, 25, 26], "whenev": [13, 15, 21], "where": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 25, 26], "wherea": [6, 21], "wherein": [1, 12], "whether": [0, 3, 5, 7, 9, 21, 24], "which": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 26], "whichev": [1, 3], "while": [0, 1, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 16, 21, 24, 25, 26], "white": 9, "whiteboard": 25, "who": [0, 15], "whole": [1, 3, 4, 5, 9, 11, 13], "whose": [0, 6, 10, 21, 25], "whow": [11, 25], "why": [0, 1, 3, 6, 13, 15, 16, 17, 25, 26], "wide": [0, 1, 3, 6, 7, 12, 18, 19, 24], "widehat": 6, "width": [0, 3, 8, 9, 24], "wieringen": [0, 24, 25, 26], "win": 10, "wind": 9, "wing": [22, 24], "winther": 2, "wiothout": 6, "wiscons": 7, "wisconsin": 10, "wisdom": [6, 25], "wise": [1, 5, 12, 13, 25, 26], "wish": [0, 2, 5, 7, 8, 11, 13, 14, 19, 24, 25, 26], "with_std": [0, 25], "wither": 6, "within": [0, 2, 3, 4, 7, 9, 12, 13, 14, 21, 23, 24, 26], "withinclust": 14, "without": [0, 1, 5, 6, 8, 9, 11, 12, 13, 15, 24, 25, 26], "won": [0, 15, 24], "wonder": 8, "word": [0, 1, 3, 4, 5, 6, 7, 14, 21, 24, 25, 26], "work": [0, 1, 4, 6, 7, 8, 9, 13, 15, 16, 18, 20, 21, 22, 24, 25], "workshop": 24, "world": [0, 8, 16, 25], "worldwid": [0, 24], "worri": 15, "wors": [0, 1, 3, 4, 6, 24], "worth": 9, "would": [0, 1, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 19, 21, 24, 25, 26], "wrap": [6, 19, 24], "write": [0, 1, 2, 3, 5, 6, 7, 8, 12, 13, 15, 16, 19, 24, 25], "written": [0, 2, 3, 5, 11, 12, 13, 16, 18, 19, 21, 24, 25, 26], "wrong": [1, 8, 15], "wrongli": 10, "wrote": [5, 11, 25], "wrt": [10, 13], "wth": [10, 13], "www": [18, 19, 23, 24, 26], "wx_1": 8, "x": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24, 26], "x0": 8, "x1": [4, 8, 9, 10, 13], "x1_exampl": 8, "x1d": 8, "x2": [8, 9, 10, 13], "x2d": [8, 11], "x2d_train": 11, "x2dsl": 11, "x3": 8, "x_": [0, 2, 3, 5, 6, 8, 10, 11, 13, 14, 19, 21, 24, 25, 26], "x_0": [0, 5, 11, 19, 24, 25], "x_1": [0, 2, 5, 6, 7, 8, 9, 10, 11, 13, 19, 21, 24, 25, 26], "x_2": [0, 2, 5, 6, 7, 8, 9, 10, 11, 13, 19, 21, 24, 25, 26], "x_3": [8, 19, 21], "x_4": 19, "x_center": 11, "x_data": 1, "x_data_ful": 1, "x_hidden": 2, "x_i": [0, 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 19, 21, 24, 25, 26], "x_input": 2, "x_ix_": [0, 24], "x_iy_i": 8, "x_j": [0, 2, 8, 9, 12, 16, 21, 25], "x_jy_j": 8, "x_k": [12, 14, 19, 21, 25], "x_l": 21, "x_m": [6, 12, 19, 21], "x_n": [0, 2, 3, 6, 8, 11, 12, 13, 19, 21, 24, 26], "x_new": [9, 10], "x_offset": [6, 25], "x_output": 2, "x_p": [3, 7, 9], "x_poli": 9, "x_poly10": 9, "x_pred": 4, "x_prev": 2, "x_reduc": 11, "x_scale": 8, "x_small": 13, "x_test": [0, 1, 3, 5, 6, 7, 9, 10, 11, 15, 16, 17, 25, 26], "x_test_": 17, "x_test_own": 6, "x_test_scal": [0, 6, 7, 9, 10, 11, 25], "x_tot": 4, "x_train": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25, 26], "x_train_": 17, "x_train_mean": [6, 25], "x_train_own": 6, "x_train_scal": [0, 6, 7, 9, 10, 11, 25], "x_val": 1, "xarrai": [18, 24], "xavier": 1, "xbnew": [13, 26], "xcode": [0, 18, 24], "xdclassiffierconfus": 10, "xdclassiffierroc": 10, "xg_clf": 10, "xgb": 10, "xgbclassifi": 10, "xgboost": 9, "xgboot": 10, "xgbregressor": 10, "xgparam": 10, "xgtree": 10, "xi": [8, 13], "xi_": 8, "xi_1": 8, "xi_i": 8, "xk": 8, "xla": [13, 18, 24], "xlabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 21, 24, 25, 26], "xlim": [6, 10], "xm": 9, "xmesh": 13, "xnew": [0, 13, 24, 26], "xp": 21, "xpanda": [0, 25], "xpd": [5, 11, 25], "xplot": 0, "xscale": [0, 25], "xsr": 9, "xt_x": [13, 26], "xtest": 6, "xtick": [3, 6, 8, 9], "xtrain": 6, "xu": [0, 24], "xx": [0, 19, 24], "xy": [0, 6, 8, 19, 24], "xytext": 8, "xz": [19, 24], "y": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 21, 24, 25, 26], "y1": 4, "y2": 4, "y3": 4, "y_": [0, 1, 5, 6, 10, 11, 19, 24, 25], "y_0": [0, 5, 11, 19, 24, 25], "y_1": [0, 5, 8, 9, 11, 13, 19, 24, 25, 26], "y_1y_1": 8, "y_1y_1k": 8, "y_1y_2": 8, "y_1y_2k": 8, "y_1y_n": 8, "y_1y_nk": 8, "y_2": [0, 5, 8, 9, 11, 19, 24, 25], "y_2y_1": 8, "y_2y_1k": 8, "y_2y_2": 8, "y_2y_2k": 8, "y_3": [0, 9, 19], "y_4": 19, "y_data": [0, 1, 5, 6, 24, 25, 26], "y_data_ful": 1, "y_decis": 8, "y_fit": [0, 25], "y_i": [0, 1, 5, 6, 7, 8, 9, 10, 11, 12, 13, 19, 24, 25, 26], "y_if_": 10, "y_ix_": [0, 24], "y_ix_i": [7, 8, 13, 25, 26], "y_iy_jk": 8, "y_j": [6, 8, 12], "y_k": 12, "y_m": 19, "y_model": [0, 4, 5, 6, 24, 25, 26], "y_n": [8, 13, 26], "y_ny_1": 8, "y_ny_1k": 8, "y_ny_2": 8, "y_ny_2k": 8, "y_ny_n": 8, "y_ny_nk": 8, "y_offset": [6, 17, 25], "y_plot": 9, "y_pred": [0, 1, 4, 6, 7, 8, 9, 10, 25], "y_pred1": 9, "y_pred2": 9, "y_pred_rf": 10, "y_pred_tre": 10, "y_proba": [7, 10], "y_scaler": [6, 25], "y_test": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 15, 16, 17, 25, 26], "y_test_onehot": 1, "y_test_predict": [], "y_tot": 4, "y_train": [0, 1, 3, 4, 5, 6, 7, 9, 10, 11, 15, 16, 17, 24, 25, 26], "y_train_mean": [6, 25], "y_train_onehot": 1, "y_train_predict": [], "y_train_scal": [6, 25], "y_val": 1, "ye": [3, 6, 7], "year": [0, 18, 24], "yet": [0, 1, 6, 8, 11, 13, 24], "yi": 13, "yield": [0, 2, 5, 6, 8, 10, 12, 13, 14, 19, 21, 24, 26], "yk": 8, "ylabel": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13, 21, 24, 25, 26], "ylim": [3, 6], "ym": 9, "ymesh": 13, "yn": 0, "yo": [8, 9, 10], "yoshua": [1, 23], "you": [0, 1, 3, 4, 5, 6, 8, 9, 10, 11, 13, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26], "young": 0, "your": [1, 2, 4, 5, 6, 8, 11, 13, 15, 17, 18, 19, 24, 26], "your_model_object": 16, "yourself": [11, 13, 24, 26], "youtu": 25, "youtub": [18, 26], "ypred": 6, "ypredict": [0, 13, 24, 25, 26], "ypredict2": [13, 26], "ypredictlasso": [5, 26], "ypredictol": [0, 5, 26], "ypredictown": [6, 25], "ypredictownridg": [6, 25, 26], "ypredictridg": [0, 5, 6, 25, 26], "ypredictskl": [6, 25], "ytest": 6, "ytick": [3, 6, 8, 9], "ytild": [0, 6, 24, 25], "ytildelasso": [5, 26], "ytildenp": [0, 24, 25], "ytildeol": [0, 5, 26], "ytildeownridg": [6, 25, 26], "ytilderidg": [5, 6, 25, 26], "ytrain": 6, "yuxi": 24, "yx": [19, 24], "yy": [19, 24], "yz": [19, 24], "z": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 19, 21, 24, 25], "z_": [1, 2, 12, 19, 24], "z_0": [19, 24], "z_1": [19, 24], "z_2": [19, 24], "z_c": 1, "z_h": 1, "z_hidden": 2, "z_i": [1, 12], "z_j": [1, 12], "z_k": [12, 25], "z_m": 1, "z_mod": 9, "z_o": 1, "z_output": 2, "zaman": 21, "zaxi": 6, "zero": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 24, 25, 26], "zeros_lik": 4, "zeroth": 25, "zfill": 4, "zip": [4, 6], "zm_h": [0, 24], "zn": [], "zone": [], "zoom": 24, "zx": [19, 24], "zy": [19, 24], "zz": [19, 24], "\u00f8yvind": [6, 25]}, "titles": ["3. Linear Regression", "14. Building a Feed Forward Neural Network", "15. Solving Differential Equations with Deep Learning", "16. Convolutional Neural Networks", "17. Recurrent neural networks: Overarching view", "4. Ridge and Lasso Regression", "5. Resampling Methods", "6. Logistic Regression", "8. Support Vector Machines, overarching aims", "9. Decision trees, overarching aims", "10. Ensemble Methods: From a Single Tree to Many Trees and Extreme Boosting, Meet the Jungle of Methods", "11. Basic ideas of the Principal Component Analysis (PCA)", "13. Neural networks", "7. Optimization, the central part of any Machine Learning algortithm", "12. Clustering and Unsupervised Learning", "Exercises week 34", "Exercises week 35", "Exercises week 36", "Applied Data Analysis and Machine Learning", "2. Linear Algebra, Handling of Arrays and more Python Features", "Course setting", "1. Elements of Probability Theory and Statistical Data Analysis", "Teachers and Grading", "Textbooks", "Week 34: Introduction to the course, Logistics and Practicalities", "Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression", "Week 36: Linear Regression and Gradient descent"], "titleterms": {"": [8, 10, 26], "1": [0, 15, 16, 17, 25], "2": [0, 15, 16, 17, 24, 25, 26], "2023": 22, "3": [0, 15, 16, 17, 25], "34": [15, 24], "35": [16, 25], "36": [17, 26], "4": [0, 15, 16, 17, 25], "5": [0, 16], "A": [0, 1, 4, 8, 9, 24], "And": [24, 25, 26], "In": 22, "Ising": 6, "The": [0, 1, 2, 3, 5, 6, 7, 8, 9, 11, 12, 15, 18, 24, 25, 26], "To": 24, "With": [4, 26], "about": [24, 25, 26], "abov": 26, "activ": [1, 12], "ad": [0, 6, 24, 25], "adaboost": 10, "adagrad": 13, "adam": 13, "adapt": 10, "adjust": 1, "adversari": 4, "again": [3, 9], "ai": 24, "aim": [8, 9, 24], "aka": 24, "algebra": [19, 24], "algorithm": [9, 10, 11, 12, 24, 25, 26], "algortithm": [13, 26], "all": 8, "an": [0, 4, 10, 15, 24], "analys": [5, 25, 26], "analysi": [0, 5, 6, 11, 18, 21, 24, 25, 26], "analyt": [0, 16], "ani": [13, 26], "anoth": [9, 26], "appli": 18, "approach": [0, 8, 14, 24], "approxim": 12, "architectur": 1, "arrai": [19, 24], "assist": 22, "autocorrel": 21, "autograd": [2, 13], "automat": 13, "back": [1, 11, 12, 25, 26], "background": 18, "bag": 10, "base": 13, "basic": [0, 5, 7, 9, 10, 11, 19, 25, 26], "batch": 1, "bay": 5, "befor": 11, "better": 8, "bia": 6, "binari": 1, "bind": 24, "bird": 10, "boldsymbol": 25, "boost": 10, "bootstrap": [6, 10], "boston": [], "breast": 1, "brief": 24, "bring": 12, "build": [1, 3, 9], "c": 24, "calcul": [25, 26], "can": 24, "cancer": [1, 7, 9, 11], "cart": 9, "case": [8, 10, 21, 25, 26], "central": [13, 18, 21, 26], "chain": 12, "chang": 10, "channel": 24, "chi": [0, 24], "choic": 17, "choos": 1, "cifar01": 3, "classic": 11, "classif": [1, 9, 10], "classifi": 8, "clip": 1, "cluster": 14, "cnn": 3, "code": [1, 2, 5, 9, 11, 12, 13, 14, 15, 16, 24, 25, 26], "collect": [1, 3], "commun": 24, "compar": [2, 10, 16], "comparison": 26, "complet": 25, "complex": [0, 6, 25], "complic": 6, "compon": 11, "comput": 9, "computerlab": 24, "con": 9, "concept": 21, "condit": 26, "conjug": 13, "contn": 24, "convex": [8, 13, 26], "convolut": [3, 12], "correl": [11, 25], "correspond": 26, "cost": [1, 10, 25, 26], "cours": [18, 20, 23, 24], "covari": [5, 11, 21, 25], "cover": 24, "creat": 16, "cross": 6, "cython": 24, "data": [0, 1, 3, 6, 7, 9, 11, 15, 17, 18, 21, 24, 25], "dataset": [1, 3], "david": 24, "deadlin": 24, "deadllin": 22, "decai": 2, "decis": [9, 10], "decomposit": [5, 11, 19, 25, 26], "deeep": [], "deep": [1, 2, 24], "defin": [1, 24], "degre": [0, 17, 25], "deliver": [15, 16], "dens": 0, "deriv": [5, 12, 16, 17, 25, 26], "descent": [2, 10, 13, 26], "design": 25, "detail": [3, 24], "develop": 1, "diagon": 11, "differ": 8, "differenti": [2, 13], "diffus": 2, "dimension": [2, 3, 8], "disadvantag": 9, "discret": 21, "discrimin": 24, "distribut": [5, 21], "do": 1, "doe": [25, 26], "domain": 21, "down": 1, "dropout": 1, "economi": [25, 26], "element": [0, 21, 24], "elimin": 19, "energi": 24, "ensembl": 10, "entropi": 9, "environ": [0, 15], "equat": [0, 2, 12, 25, 26], "error": [0, 10, 24, 25, 26], "essenti": 24, "etc": 24, "euler": 2, "evalu": 1, "exampl": [1, 2, 3, 4, 6, 7, 8, 9, 10, 24, 25, 26], "exercis": [0, 6, 15, 16, 17, 25], "expect": 21, "experi": 21, "explor": 0, "exponenti": 2, "express": [16, 17, 25], "extend": 26, "extrapol": 4, "extrem": [10, 24], "ey": 10, "fall": 22, "famili": [1, 24], "famou": 19, "fantast": [25, 26], "featur": [9, 16, 19, 25], "feed": [1, 12], "final": [12, 25], "find": 16, "fine": 1, "first": [4, 12, 24, 26], "fit": [0, 10, 15, 16, 24, 26], "fix": [25, 26], "forc": 3, "forest": 10, "format": 24, "forward": [1, 2, 12], "foster": 24, "fourier": 3, "frank": 6, "freedom": [0, 17, 25], "frequent": 25, "frequentist": [0, 24], "from": [5, 10, 12, 24, 25, 26], "full": 2, "function": [0, 1, 6, 7, 8, 10, 11, 12, 13, 21, 24, 25, 26], "further": [3, 5, 25, 26], "gan": 4, "gaussian": 19, "gd": 13, "gener": [4, 9, 24], "geometr": [11, 26], "gini": 9, "github": 15, "goal": [15, 16, 17], "good": [0, 24], "grade": [22, 24], "gradient": [1, 2, 10, 13, 26], "growth": 2, "ha": 18, "handl": [19, 24], "hessian": [25, 26], "hidden": 2, "hous": [], "how": 16, "hyperparamet": [1, 17], "hyperplan": 8, "i": [0, 1, 24], "id3": 9, "idea": 11, "ideal": 26, "ii": 24, "illustr": 26, "implement": [1, 16, 17], "implic": [5, 25, 26], "import": [5, 19, 24, 25, 26], "improv": 1, "includ": 13, "increment": 11, "index": 9, "inform": 22, "input": 2, "instal": [18, 24], "instructor": 22, "interpret": [5, 11, 24, 25, 26], "introduc": [11, 13, 25], "introduct": [0, 6, 18, 19, 24], "invers": [5, 19], "invert": [25, 26], "iter": 10, "its": 25, "jacobian": 25, "jax": 13, "julia": 24, "jungl": 10, "kera": [1, 3], "kernel": [8, 11], "lab": 26, "lagrangian": 8, "lasso": [5, 6, 25, 26], "last": 25, "later": [5, 25, 26], "layer": [1, 2, 3, 12], "learn": [0, 1, 2, 11, 13, 14, 15, 16, 17, 18, 24, 25, 26], "least": [5, 6, 16, 24, 25, 26], "lectur": [24, 26], "level": 10, "librari": [18, 24], "likelihood": 7, "limit": [1, 13, 21, 26], "linear": [0, 8, 13, 15, 19, 24, 25, 26], "link": [5, 11, 23, 25], "logist": [7, 24], "loss": [25, 26], "lu": 19, "machin": [0, 8, 13, 18, 24, 26], "main": [21, 24], "make": [0, 9, 10, 25], "mani": [10, 12], "mass": 24, "materi": [24, 25, 26], "math": [5, 25, 26], "mathemat": [3, 5, 8, 25, 26], "matric": [5, 19, 24], "matrix": [1, 5, 11, 12, 16, 19, 24, 25, 26], "matter": 0, "max": 25, "mean": [0, 25, 26], "meet": [5, 10, 21, 24, 25], "mercer": 8, "method": [6, 9, 10, 13, 24, 26], "min": 25, "minim": 24, "ml": 24, "mlp": 12, "mnist": [3, 4], "model": [0, 1, 4, 6, 12, 15, 17, 24], "momentum": 13, "mondai": 26, "moon": [8, 9], "more": [3, 6, 19, 24, 25, 26], "multilay": 12, "multipl": [1, 3, 17], "multipli": 8, "need": 24, "network": [1, 2, 3, 4, 7, 12, 24], "neural": [1, 2, 3, 4, 7, 12, 24], "new": 4, "newton": 26, "non": 8, "normal": [0, 1], "notat": 12, "note": [25, 26], "now": [1, 9, 13, 26], "nuclear": [0, 24], "numba": 24, "number": [0, 2, 21, 25], "numer": [2, 21], "numpi": [19, 24], "object": 3, "obtain": 11, "od": 2, "off": 6, "ol": [5, 6, 15, 16, 26], "one": [2, 12, 26], "oper": 19, "optim": [1, 8, 13, 18, 24, 25, 26], "order": 13, "ordinari": [5, 6, 16, 24, 25, 26], "organ": [0, 24], "oslo": 23, "other": [4, 9, 11, 12, 19, 24], "our": [0, 4, 5, 11, 13, 24, 25, 26], "outcom": [18, 24], "output": 2, "overarch": [0, 4, 8, 9, 24, 25], "overview": [10, 24], "own": [0, 10, 11, 24, 25], "packag": [19, 24], "panda": [24, 25], "paramet": [24, 25], "part": [13, 18, 26], "partial": 2, "pass": 1, "pca": 11, "pdf": 21, "perceptron": 12, "perform": [1, 9], "period": 3, "perspect": 1, "plan": [25, 26], "plethora": 24, "point": 4, "poisson": 2, "polynomi": [3, 16, 26], "popul": 2, "popular": 24, "practic": [13, 22, 24], "pre": [1, 3], "predict": 4, "preprocess": 25, "prerequisit": [3, 18, 24], "princip": 11, "principl": 3, "pro": 9, "probabl": [5, 21], "problem": [1, 2, 13, 24, 25, 26], "procedur": [9, 24], "process": [1, 3], "program": [2, 13, 26], "project": [6, 22, 24], "prop": 13, "propag": [1, 12], "properti": [5, 21, 25, 26], "python": [0, 9, 15, 18, 19, 24], "quick": 8, "r": 24, "random": [10, 11, 21], "raphson": 26, "read": [9, 24, 25], "real": [6, 24], "recommend": [24, 25], "recurr": [4, 12], "reduc": [0, 25], "reduct": 3, "reformul": 2, "regress": [0, 5, 6, 7, 9, 10, 13, 15, 17, 24, 25, 26], "regular": 1, "relat": [], "relev": [23, 25], "relu": 1, "remark": 3, "remind": [6, 8, 24, 25, 26], "replac": 13, "repositori": 15, "requir": [2, 18], "resampl": 6, "rescal": [6, 25], "residu": [25, 26], "resourc": 2, "result": [25, 26], "revisit": [13, 26], "rewrit": [24, 25], "ridg": [0, 5, 6, 17, 25, 26], "rm": 13, "rule": 12, "same": 13, "sampl": 11, "scale": [17, 25], "schedul": 24, "schemat": 9, "scheme": 2, "scienc": 24, "scikit": [0, 1, 11, 24, 25, 26], "second": 13, "semest": 22, "sensit": 26, "septemb": 26, "session": 26, "set": [0, 2, 3, 9, 12, 15, 20, 24, 25, 26], "setup": 15, "sgd": 13, "should": 1, "similar": 13, "simpl": [0, 4, 9, 13, 24, 25, 26], "singl": 10, "singular": [5, 11, 25, 26], "size": [25, 26], "sklearn": 16, "soft": 8, "softmax": 1, "softwar": 24, "solv": [2, 26], "solver": 13, "some": [13, 19, 25, 26], "specifi": 2, "split": [0, 15, 25], "squar": [0, 5, 6, 10, 16, 24, 25, 26], "standard": [13, 25], "state": 0, "statist": [5, 6, 18, 21, 24], "steepest": [10, 13, 26], "stochast": [13, 21], "strongli": 24, "suggest": 24, "summari": [22, 24], "superposit": 3, "supervis": 1, "support": 8, "svd": [5, 25, 26], "systemat": 3, "t": 25, "take": 16, "taken": 24, "teach": 22, "teacher": [22, 24], "technic": 25, "techniqu": [6, 11], "technologi": 18, "tensorflow": [1, 3], "tent": [22, 24], "test": [0, 1, 15, 17, 25], "text": 24, "textbook": [23, 24], "than": 26, "theorem": [5, 8, 11, 12, 21], "theori": 21, "thi": 24, "tip": 13, "togeth": 12, "tool": 24, "top": 1, "topic": 24, "toward": 11, "trade": 6, "tradeoff": 6, "train": [0, 1, 4, 15, 24, 25], "transform": 3, "tree": [9, 10], "tuesdai": 26, "tune": 1, "two": [3, 8, 18], "type": [2, 4, 12, 24], "uio": 24, "univers": [12, 23], "unsupervis": 14, "up": [0, 2, 9, 12, 15, 24, 25, 26], "us": [0, 1, 2, 3, 7, 13, 16, 18, 24, 25, 26], "v": 3, "valid": 6, "valu": [5, 11, 21, 25, 26], "variabl": [21, 26], "varianc": 6, "variou": 0, "vector": [8, 12, 16, 19, 24, 25], "versu": 24, "view": [0, 4, 10, 25], "virtual": 15, "visual": [1, 9], "wai": 9, "wave": 2, "we": 24, "wednesdai": 26, "week": [15, 16, 17, 24, 25, 26], "weekli": [], "what": [0, 24, 25, 26], "which": 1, "why": 24, "wisconsin": 7, "write": [4, 11, 26], "x": 25, "xgboost": 10, "yet": 26, "your": [0, 10, 16, 25]}})
\ No newline at end of file
diff --git a/doc/LectureNotes/_build/html/statistics.html b/doc/LectureNotes/_build/html/statistics.html
index 3a03e544d..23d366736 100644
--- a/doc/LectureNotes/_build/html/statistics.html
+++ b/doc/LectureNotes/_build/html/statistics.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/teachers.html b/doc/LectureNotes/_build/html/teachers.html
index 6f7538d56..2b3a5152a 100644
--- a/doc/LectureNotes/_build/html/teachers.html
+++ b/doc/LectureNotes/_build/html/teachers.html
@@ -226,6 +226,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/textbooks.html b/doc/LectureNotes/_build/html/textbooks.html
index 6b95e1f10..6caebcd0e 100644
--- a/doc/LectureNotes/_build/html/textbooks.html
+++ b/doc/LectureNotes/_build/html/textbooks.html
@@ -226,6 +226,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/week34.html b/doc/LectureNotes/_build/html/week34.html
index c5511646b..045369103 100644
--- a/doc/LectureNotes/_build/html/week34.html
+++ b/doc/LectureNotes/_build/html/week34.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
diff --git a/doc/LectureNotes/_build/html/week35.html b/doc/LectureNotes/_build/html/week35.html
index 228c6323a..b1f16d53d 100644
--- a/doc/LectureNotes/_build/html/week35.html
+++ b/doc/LectureNotes/_build/html/week35.html
@@ -228,6 +228,7 @@
Exercises week 35
Week 35: From Ordinary Linear Regression to Ridge and Lasso Regression
Exercises week 36
+Week 36: Linear Regression and Gradient descent
@@ -883,22 +884,22 @@ We assume our data can represented by a fourth-order polynomial. For the It is rather straightforward to implement the matrix inversion and obtain the parameters \(\boldsymbol{\theta}\) . After having defined the matrix \(\boldsymbol{X}\) and the outputs \(\boldsymbol{y}\) we have