Find support vectors in polynomial kernel of degree 2












0















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










share|improve this question



























    0















    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










    share|improve this question

























      0












      0








      0








      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










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 31 '18 at 14:56









      samsam

      14




      14
























          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
          });


          }
          });














          draft saved

          draft discarded


















          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
















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas