{"action":"created","comment":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/57443204","id":57443204,"diff_hunk":"@@ -0,0 +1,61 @@\n+=============================\n+Linear Support Vector Machine\n+=============================\n+\n+Linear Support Vector Machine is a binary classifier which finds a hyper-plane such that the margins between the two classes are maximized. The loss function that needs to be minimized is:\n+\n+.. math::\n+\n+    \\min_{\\bf w} \\frac{1}{2}{\\bf w}^\\top{\\bf w} + C\\sum_{i=1}^{N}\\xi({\\bf w};{\\bf x_i}, y_i)\n+\n+where :math:`{\\bf w}` is vector of weights, :math:`{\\bf x_i}` is feature vector, :math:`y_i` is the corresponding label, :math:`C>0` is a penalty parameter and :math:`N` is the number of training samples.\n+\n+The solution takes the following form:\n+\n+.. math::\n+\n+    \\mathbf{w} = \\sum_i \\alpha_i y_i \\mathbf{x}_i\n+\n+here :math:`\\alpha_i` are sparse.","path":"doc/cookbook/source/examples/classifier/linear_svm.rst","position":19,"original_position":19,"commit_id":"e898cd4f585a1572cf3197172b4a337131f95dbc","original_commit_id":"e898cd4f585a1572cf3197172b4a337131f95dbc","user":{"login":"karlnapf","id":699071,"avatar_url":"https://avatars.githubusercontent.com/u/699071?v=3","gravatar_id":"","url":"https://api.github.com/users/karlnapf","html_url":"https://github.com/karlnapf","followers_url":"https://api.github.com/users/karlnapf/followers","following_url":"https://api.github.com/users/karlnapf/following{/other_user}","gists_url":"https://api.github.com/users/karlnapf/gists{/gist_id}","starred_url":"https://api.github.com/users/karlnapf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlnapf/subscriptions","organizations_url":"https://api.github.com/users/karlnapf/orgs","repos_url":"https://api.github.com/users/karlnapf/repos","events_url":"https://api.github.com/users/karlnapf/events{/privacy}","received_events_url":"https://api.github.com/users/karlnapf/received_events","type":"User","site_admin":false},"body":"where","created_at":"2016-03-25T13:23:13Z","updated_at":"2016-03-25T13:23:13Z","html_url":"https://github.com/shogun-toolbox/shogun/pull/3112#discussion_r57443204","pull_request_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112","_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/57443204"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3112#discussion_r57443204"},"pull_request":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112"}}},"pull_request":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112","id":63777786,"html_url":"https://github.com/shogun-toolbox/shogun/pull/3112","diff_url":"https://github.com/shogun-toolbox/shogun/pull/3112.diff","patch_url":"https://github.com/shogun-toolbox/shogun/pull/3112.patch","issue_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3112","number":3112,"state":"open","locked":false,"title":"add cookbook page for linear svm","user":{"login":"sanuj","id":4343847,"avatar_url":"https://avatars.githubusercontent.com/u/4343847?v=3","gravatar_id":"","url":"https://api.github.com/users/sanuj","html_url":"https://github.com/sanuj","followers_url":"https://api.github.com/users/sanuj/followers","following_url":"https://api.github.com/users/sanuj/following{/other_user}","gists_url":"https://api.github.com/users/sanuj/gists{/gist_id}","starred_url":"https://api.github.com/users/sanuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanuj/subscriptions","organizations_url":"https://api.github.com/users/sanuj/orgs","repos_url":"https://api.github.com/users/sanuj/repos","events_url":"https://api.github.com/users/sanuj/events{/privacy}","received_events_url":"https://api.github.com/users/sanuj/received_events","type":"User","site_admin":false},"body":"Looking forward to feedback. I'll send the data PR once this gets finalized.","created_at":"2016-03-22T19:21:17Z","updated_at":"2016-03-25T13:23:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93e788db951c6a9f3013cb866cf93e35b361b8c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112/commits","review_comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112/comments","review_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3112/comments","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/e898cd4f585a1572cf3197172b4a337131f95dbc","head":{"label":"sanuj:cookbook","ref":"cookbook","sha":"e898cd4f585a1572cf3197172b4a337131f95dbc","user":{"login":"sanuj","id":4343847,"avatar_url":"https://avatars.githubusercontent.com/u/4343847?v=3","gravatar_id":"","url":"https://api.github.com/users/sanuj","html_url":"https://github.com/sanuj","followers_url":"https://api.github.com/users/sanuj/followers","following_url":"https://api.github.com/users/sanuj/following{/other_user}","gists_url":"https://api.github.com/users/sanuj/gists{/gist_id}","starred_url":"https://api.github.com/users/sanuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanuj/subscriptions","organizations_url":"https://api.github.com/users/sanuj/orgs","repos_url":"https://api.github.com/users/sanuj/repos","events_url":"https://api.github.com/users/sanuj/events{/privacy}","received_events_url":"https://api.github.com/users/sanuj/received_events","type":"User","site_admin":false},"repo":{"id":27362302,"name":"shogun","full_name":"sanuj/shogun","owner":{"login":"sanuj","id":4343847,"avatar_url":"https://avatars.githubusercontent.com/u/4343847?v=3","gravatar_id":"","url":"https://api.github.com/users/sanuj","html_url":"https://github.com/sanuj","followers_url":"https://api.github.com/users/sanuj/followers","following_url":"https://api.github.com/users/sanuj/following{/other_user}","gists_url":"https://api.github.com/users/sanuj/gists{/gist_id}","starred_url":"https://api.github.com/users/sanuj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanuj/subscriptions","organizations_url":"https://api.github.com/users/sanuj/orgs","repos_url":"https://api.github.com/users/sanuj/repos","events_url":"https://api.github.com/users/sanuj/events{/privacy}","received_events_url":"https://api.github.com/users/sanuj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanuj/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":true,"url":"https://api.github.com/repos/sanuj/shogun","forks_url":"https://api.github.com/repos/sanuj/shogun/forks","keys_url":"https://api.github.com/repos/sanuj/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanuj/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanuj/shogun/teams","hooks_url":"https://api.github.com/repos/sanuj/shogun/hooks","issue_events_url":"https://api.github.com/repos/sanuj/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/sanuj/shogun/events","assignees_url":"https://api.github.com/repos/sanuj/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/sanuj/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/sanuj/shogun/tags","blobs_url":"https://api.github.com/repos/sanuj/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanuj/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanuj/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanuj/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanuj/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/sanuj/shogun/languages","stargazers_url":"https://api.github.com/repos/sanuj/shogun/stargazers","contributors_url":"https://api.github.com/repos/sanuj/shogun/contributors","subscribers_url":"https://api.github.com/repos/sanuj/shogun/subscribers","subscription_url":"https://api.github.com/repos/sanuj/shogun/subscription","commits_url":"https://api.github.com/repos/sanuj/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanuj/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanuj/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanuj/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanuj/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/sanuj/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanuj/shogun/merges","archive_url":"https://api.github.com/repos/sanuj/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanuj/shogun/downloads","issues_url":"https://api.github.com/repos/sanuj/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/sanuj/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/sanuj/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/sanuj/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanuj/shogun/labels{/name}","releases_url":"https://api.github.com/repos/sanuj/shogun/releases{/id}","deployments_url":"https://api.github.com/repos/sanuj/shogun/deployments","created_at":"2014-12-01T04:19:55Z","updated_at":"2016-02-21T03:45:13Z","pushed_at":"2016-03-24T04:55:27Z","git_url":"git://github.com/sanuj/shogun.git","ssh_url":"git@github.com:sanuj/shogun.git","clone_url":"https://github.com/sanuj/shogun.git","svn_url":"https://github.com/sanuj/shogun","homepage":"http://www.shogun-toolbox.org","size":59054,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"shogun-toolbox:develop","ref":"develop","sha":"d34da056c100935ec049168ca282e30ddba652b2","user":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"repo":{"id":1555094,"name":"shogun","full_name":"shogun-toolbox/shogun","owner":{"login":"shogun-toolbox","id":690673,"avatar_url":"https://avatars.githubusercontent.com/u/690673?v=3","gravatar_id":"","url":"https://api.github.com/users/shogun-toolbox","html_url":"https://github.com/shogun-toolbox","followers_url":"https://api.github.com/users/shogun-toolbox/followers","following_url":"https://api.github.com/users/shogun-toolbox/following{/other_user}","gists_url":"https://api.github.com/users/shogun-toolbox/gists{/gist_id}","starred_url":"https://api.github.com/users/shogun-toolbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shogun-toolbox/subscriptions","organizations_url":"https://api.github.com/users/shogun-toolbox/orgs","repos_url":"https://api.github.com/users/shogun-toolbox/repos","events_url":"https://api.github.com/users/shogun-toolbox/events{/privacy}","received_events_url":"https://api.github.com/users/shogun-toolbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shogun-toolbox/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":false,"url":"https://api.github.com/repos/shogun-toolbox/shogun","forks_url":"https://api.github.com/repos/shogun-toolbox/shogun/forks","keys_url":"https://api.github.com/repos/shogun-toolbox/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shogun-toolbox/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shogun-toolbox/shogun/teams","hooks_url":"https://api.github.com/repos/shogun-toolbox/shogun/hooks","issue_events_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/shogun-toolbox/shogun/events","assignees_url":"https://api.github.com/repos/shogun-toolbox/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/shogun-toolbox/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/tags","blobs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/shogun-toolbox/shogun/languages","stargazers_url":"https://api.github.com/repos/shogun-toolbox/shogun/stargazers","contributors_url":"https://api.github.com/repos/shogun-toolbox/shogun/contributors","subscribers_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscribers","subscription_url":"https://api.github.com/repos/shogun-toolbox/shogun/subscription","commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/shogun-toolbox/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/shogun-toolbox/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shogun-toolbox/shogun/merges","archive_url":"https://api.github.com/repos/shogun-toolbox/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shogun-toolbox/shogun/downloads","issues_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/shogun-toolbox/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/shogun-toolbox/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shogun-toolbox/shogun/labels{/name}","releases_url":"https://api.github.com/repos/shogun-toolbox/shogun/releases{/id}","deployments_url":"https://api.github.com/repos/shogun-toolbox/shogun/deployments","created_at":"2011-04-01T10:44:32Z","updated_at":"2016-03-24T12:14:06Z","pushed_at":"2016-03-25T13:17:54Z","git_url":"git://github.com/shogun-toolbox/shogun.git","ssh_url":"git@github.com:shogun-toolbox/shogun.git","clone_url":"https://github.com/shogun-toolbox/shogun.git","svn_url":"https://github.com/shogun-toolbox/shogun","homepage":"http://www.shogun-toolbox.org","size":180840,"stargazers_count":1012,"watchers_count":1012,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":550,"mirror_url":null,"open_issues_count":409,"forks":550,"open_issues":409,"watchers":1012,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3112"},"issue":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3112"},"comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3112/comments"},"review_comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112/comments"},"review_comment":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3112/commits"},"statuses":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/e898cd4f585a1572cf3197172b4a337131f95dbc"}}}}