Find support vectors in polynomial kernel of degree 2
Suppose we have 5 points in 1D feature space as follows:
x1=1, x2=2, x3=4, x4=5, x5=6, with 1, 2, 6 as class 1 and 4, 5 as class 2
Use a polynomial kernel of degree 2 as K(x,z) = (xz+1)^2
to find:
enter image description here
To do that, follow these steps:
1) Find αi (i=1, ..., 5) by
enter image description here
2) Find support vectors
3) Find the discriminant function f(z)
4) Find the bias b
5) Plot the discriminate function, 5 points and the regions for the classes
Note that
enter image description here
kernel svm libsvm pattern-recognition
add a comment |
Suppose we have 5 points in 1D feature space as follows:
x1=1, x2=2, x3=4, x4=5, x5=6, with 1, 2, 6 as class 1 and 4, 5 as class 2
Use a polynomial kernel of degree 2 as K(x,z) = (xz+1)^2
to find:
enter image description here
To do that, follow these steps:
1) Find αi (i=1, ..., 5) by
enter image description here
2) Find support vectors
3) Find the discriminant function f(z)
4) Find the bias b
5) Plot the discriminate function, 5 points and the regions for the classes
Note that
enter image description here
kernel svm libsvm pattern-recognition
add a comment |
Suppose we have 5 points in 1D feature space as follows:
x1=1, x2=2, x3=4, x4=5, x5=6, with 1, 2, 6 as class 1 and 4, 5 as class 2
Use a polynomial kernel of degree 2 as K(x,z) = (xz+1)^2
to find:
enter image description here
To do that, follow these steps:
1) Find αi (i=1, ..., 5) by
enter image description here
2) Find support vectors
3) Find the discriminant function f(z)
4) Find the bias b
5) Plot the discriminate function, 5 points and the regions for the classes
Note that
enter image description here
kernel svm libsvm pattern-recognition
Suppose we have 5 points in 1D feature space as follows:
x1=1, x2=2, x3=4, x4=5, x5=6, with 1, 2, 6 as class 1 and 4, 5 as class 2
Use a polynomial kernel of degree 2 as K(x,z) = (xz+1)^2
to find:
enter image description here
To do that, follow these steps:
1) Find αi (i=1, ..., 5) by
enter image description here
2) Find support vectors
3) Find the discriminant function f(z)
4) Find the bias b
5) Plot the discriminate function, 5 points and the regions for the classes
Note that
enter image description here
kernel svm libsvm pattern-recognition
kernel svm libsvm pattern-recognition
asked Dec 31 '18 at 14:56
samsam
14
14
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53988765%2ffind-support-vectors-in-polynomial-kernel-of-degree-2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53988765%2ffind-support-vectors-in-polynomial-kernel-of-degree-2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown