-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slides polynomial kernel #109
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some smaller things @patriciomassaro
\begin{equation*} | ||
\begin{aligned} | ||
\left ( \xv^T \xtil + b \right)^2 &= \left ( (x_1 \ x_2) \cdot \mat{\xt_1 \\ \xt_2} + b \right) \cdot \left ( (x_1 \ x_2) \cdot \mat{\xt_1 \\ \xt_2} + b \right) \\[10pt] | ||
&= (x_1 \xt_1 + x_1 \xt_2 + x_2 \xt_1 + x_2 \xt_2 + b) \cdot \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be
&= (x_1 \xt_1 + x_1 \xt_2 + x_2 \xt_1 + x_2 \xt_2 + b) \cdot \\ | ||
& \ \ \ \ \ \ (x_1 \xt_1 + x_1 \xt_2 + x_2 \xt_1 + x_2 \xt_2 + b) \\[10pt] | ||
&= x_1^2 \xt_1^2 + x_2^2 \xt_2^2 + 2 x_1 \xt_1 x_2 \xt_2 + 2 b x_1 \xt_1 + 2 b x_2 \xt_2 + b^2 \\[10pt] | ||
&= ( x_1^2 , x_2^2 , \sqrt{2} x_1 x_2 , \sqrt{2b} x_1 , \sqrt{2b} x_2 , b )^T \cdot \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this vector is not transposed - but the one in the next line is :)
\begin{aligned} | ||
\left ( \xv^T \xtil + b \right)^2 &= \left ( (x_1 \ x_2) \cdot \mat{\xt_1 \\ \xt_2} + b \right) \cdot \left ( (x_1 \ x_2) \cdot \mat{\xt_1 \\ \xt_2} + b \right) \\[10pt] | ||
&= (x_1 \xt_1 + x_1 \xt_2 + x_2 \xt_1 + x_2 \xt_2 + b) \cdot \\ | ||
& \ \ \ \ \ \ (x_1 \xt_1 + x_1 \xt_2 + x_2 \xt_1 + x_2 \xt_2 + b) \\[10pt] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- same as line above => remove the two summands in the middle
- why not use proper alignment here instead of
\\\\\\
? :)
Adding new slide for the non-homogeneus poly kernel. Also solving the noted typo
Let me know if it fits what you and Bernd expected for the slide or if you want to change anything.