Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

patriciomassaro
Copy link
Collaborator

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.

@patriciomassaro
Copy link
Collaborator Author

Copy link
Contributor

@ludwigbothmann ludwigbothmann left a 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

slides-pdf/slides-nonlinsvm-kernel-poly.pdf Show resolved Hide resolved
\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 \\
Copy link
Contributor

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_2 \xt_2 + b)$

&= (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 \\
Copy link
Contributor

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]
Copy link
Contributor

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 \\\\\\? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants