This commit is contained in:
mhjensen
2020-11-26 07:17:58 +01:00
parent 4a8f54db02
commit 8e183f639f
7 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -266,9 +266,9 @@ MathJax.Hub.Config({
<h2 id="___sec5" class="anchor">The equations </h2>
<p>
Suppose we define a polynomial transformation of degree two only (we continue to live in a plane with \( x_i \) and \( y_i \) as variables). We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
Suppose we define a polynomial transformation of degree two only. We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
$$
\boldsymbol{z}_i = \phi(\boldsymbol{x}_i)^T =\left(1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right).
\boldsymbol{z}_i^T = \phi(\boldsymbol{x}_i)^T =\left[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right].
$$
<p>
@@ -290,7 +290,7 @@ $$
For the above example, the kernel reads
$$
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]^T\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
$$
<p>
+3 -3
View File
@@ -294,10 +294,10 @@ plt.show()
<h2 id="___sec5">The equations </h2>
<p>
Suppose we define a polynomial transformation of degree two only (we continue to live in a plane with \( x_i \) and \( y_i \) as variables). We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
Suppose we define a polynomial transformation of degree two only. We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
<p>&nbsp;<br>
$$
\boldsymbol{z}_i = \phi(\boldsymbol{x}_i)^T =\left(1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right).
\boldsymbol{z}_i^T = \phi(\boldsymbol{x}_i)^T =\left[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right].
$$
<p>&nbsp;<br>
@@ -327,7 +327,7 @@ $$
For the above example, the kernel reads
<p>&nbsp;<br>
$$
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]^T\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
$$
<p>&nbsp;<br>
+3 -3
View File
@@ -346,9 +346,9 @@ plt.show()
<h2 id="___sec5">The equations </h2>
<p>
Suppose we define a polynomial transformation of degree two only (we continue to live in a plane with \( x_i \) and \( y_i \) as variables). We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
Suppose we define a polynomial transformation of degree two only. We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
$$
\boldsymbol{z}_i = \phi(\boldsymbol{x}_i)^T =\left(1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right).
\boldsymbol{z}_i^T = \phi(\boldsymbol{x}_i)^T =\left[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right].
$$
<p>
@@ -370,7 +370,7 @@ $$
For the above example, the kernel reads
$$
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]^T\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
$$
<p>
+3 -3
View File
@@ -351,9 +351,9 @@ plt<span style="color: #666666">.</span>show()
<h2 id="___sec5">The equations </h2>
<p>
Suppose we define a polynomial transformation of degree two only (we continue to live in a plane with \( x_i \) and \( y_i \) as variables). We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
Suppose we define a polynomial transformation of degree two only. We define a vector \( \boldsymbol{x}_i=[x_i,y_i] \) and have
$$
\boldsymbol{z}_i = \phi(\boldsymbol{x}_i)^T =\left(1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right).
\boldsymbol{z}_i^T = \phi(\boldsymbol{x}_i)^T =\left[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right].
$$
<p>
@@ -375,7 +375,7 @@ $$
For the above example, the kernel reads
$$
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]^T\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
K(\boldsymbol{x}_i,\boldsymbol{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
$$
<p>
Binary file not shown.
+3 -3
View File
@@ -138,7 +138,7 @@
"source": [
"## The equations\n",
"\n",
"Suppose we define a polynomial transformation of degree two only (we continue to live in a plane with $x_i$ and $y_i$ as variables). We define a vector $\\boldsymbol{x}_i=[x_i,y_i]$ and have"
"Suppose we define a polynomial transformation of degree two only. We define a vector $\\boldsymbol{x}_i=[x_i,y_i]$ and have"
]
},
{
@@ -146,7 +146,7 @@
"metadata": {},
"source": [
"$$\n",
"\\boldsymbol{z}_i = \\phi(\\boldsymbol{x}_i)^T =\\left(1, \\sqrt{2}x_i, \\sqrt{2}y_i, x_i^2, y_i^2, \\sqrt{2}x_iy_i\\right).\n",
"\\boldsymbol{z}_i^T = \\phi(\\boldsymbol{x}_i)^T =\\left[1, \\sqrt{2}x_i, \\sqrt{2}y_i, x_i^2, y_i^2, \\sqrt{2}x_iy_i\\right].\n",
"$$"
]
},
@@ -211,7 +211,7 @@
"metadata": {},
"source": [
"$$\n",
"K(\\boldsymbol{x}_i,\\boldsymbol{x}_j)=[1, \\sqrt{2}x_i, \\sqrt{2}y_i, x_i^2, y_i^2, \\sqrt{2}x_iy_i]^T\\begin{bmatrix} 1\\\\ \\sqrt{2}x_j \\\\ \\sqrt{2}y_j \\\\ x_j^2\\\\ y_i^2\\\\ \\sqrt{2}x_jy_j \\end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.\n",
"K(\\boldsymbol{x}_i,\\boldsymbol{x}_j)=[1, \\sqrt{2}x_i, \\sqrt{2}y_i, x_i^2, y_i^2, \\sqrt{2}x_iy_i]\\begin{bmatrix} 1\\\\ \\sqrt{2}x_j \\\\ \\sqrt{2}y_j \\\\ x_j^2\\\\ y_i^2\\\\ \\sqrt{2}x_jy_j \\end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.\n",
"$$"
]
},
+3 -3
View File
@@ -119,10 +119,10 @@ plt.show()
!split
===== The equations =====
Suppose we define a polynomial transformation of degree two only (we continue to live in a plane with $x_i$ and $y_i$ as variables). We define a vector $\bm{x}_i=[x_i,y_i]$ and have
Suppose we define a polynomial transformation of degree two only. We define a vector $\bm{x}_i=[x_i,y_i]$ and have
!bt
\[
\bm{z}_i = \phi(\bm{x}_i)^T =\left(1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right).
\bm{z}_i^T = \phi(\bm{x}_i)^T =\left[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i\right].
\]
!et
@@ -148,7 +148,7 @@ K(\bm{x}_i,\bm{x}_j)=\bm{z}_i^T\bm{z}_j= \phi(\bm{x}_i)^T\phi(\bm{x}_j).
For the above example, the kernel reads
!bt
\[
K(\bm{x}_i,\bm{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]^T\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
K(\bm{x}_i,\bm{x}_j)=[1, \sqrt{2}x_i, \sqrt{2}y_i, x_i^2, y_i^2, \sqrt{2}x_iy_i]\begin{bmatrix} 1\\ \sqrt{2}x_j \\ \sqrt{2}y_j \\ x_j^2\\ y_i^2\\ \sqrt{2}x_jy_j \end{bmatrix}=1+2x_ix_j+2y_iy_j+(x_ix_j)^2+(y_iy_j)^2+2x_ix_jy_iy_j.
\]
!et