{"action":"created","comment":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/55674210","id":55674210,"diff_hunk":"@@ -0,0 +1,52 @@\n+/*\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by","path":"src/shogun/clustering/unittest_random_initialization.cc","position":3,"original_position":3,"commit_id":"966c578c7e98303a7b054f519cc7958fb2055536","original_commit_id":"966c578c7e98303a7b054f519cc7958fb2055536","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":"Can you use BSD?\r\nSee [here](https://gist.github.com/karlnapf/a535d810b7d78deaee81)\r\nPut your name. Check other files for how to do it","created_at":"2016-03-10T12:55:30Z","updated_at":"2016-03-10T12:55:30Z","html_url":"https://github.com/shogun-toolbox/shogun/pull/3026#discussion_r55674210","pull_request_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3026","_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/comments/55674210"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3026#discussion_r55674210"},"pull_request":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3026"}}},"pull_request":{"url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3026","id":61303903,"html_url":"https://github.com/shogun-toolbox/shogun/pull/3026","diff_url":"https://github.com/shogun-toolbox/shogun/pull/3026.diff","patch_url":"https://github.com/shogun-toolbox/shogun/pull/3026.patch","issue_url":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3026","number":3026,"state":"open","locked":false,"title":"random initialization of cluster centroids","user":{"login":"manantomar","id":13482152,"avatar_url":"https://avatars.githubusercontent.com/u/13482152?v=3","gravatar_id":"","url":"https://api.github.com/users/manantomar","html_url":"https://github.com/manantomar","followers_url":"https://api.github.com/users/manantomar/followers","following_url":"https://api.github.com/users/manantomar/following{/other_user}","gists_url":"https://api.github.com/users/manantomar/gists{/gist_id}","starred_url":"https://api.github.com/users/manantomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manantomar/subscriptions","organizations_url":"https://api.github.com/users/manantomar/orgs","repos_url":"https://api.github.com/users/manantomar/repos","events_url":"https://api.github.com/users/manantomar/events{/privacy}","received_events_url":"https://api.github.com/users/manantomar/received_events","type":"User","site_admin":false},"body":"Instead of randomly allocating each feature vector to a cluster centroid\r\n,it will be better to choose k random feature vectors and consider them\r\nas the initial centroids so that they are well separated.","created_at":"2016-03-01T20:34:44Z","updated_at":"2016-03-10T12:55:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce085895d7bdabe9dddb04638ee68d861b35fce7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3026/commits","review_comments_url":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3026/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/3026/comments","statuses_url":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/966c578c7e98303a7b054f519cc7958fb2055536","head":{"label":"manantomar:kmeans_minor_changes","ref":"kmeans_minor_changes","sha":"966c578c7e98303a7b054f519cc7958fb2055536","user":{"login":"manantomar","id":13482152,"avatar_url":"https://avatars.githubusercontent.com/u/13482152?v=3","gravatar_id":"","url":"https://api.github.com/users/manantomar","html_url":"https://github.com/manantomar","followers_url":"https://api.github.com/users/manantomar/followers","following_url":"https://api.github.com/users/manantomar/following{/other_user}","gists_url":"https://api.github.com/users/manantomar/gists{/gist_id}","starred_url":"https://api.github.com/users/manantomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manantomar/subscriptions","organizations_url":"https://api.github.com/users/manantomar/orgs","repos_url":"https://api.github.com/users/manantomar/repos","events_url":"https://api.github.com/users/manantomar/events{/privacy}","received_events_url":"https://api.github.com/users/manantomar/received_events","type":"User","site_admin":false},"repo":{"id":52527398,"name":"shogun","full_name":"manantomar/shogun","owner":{"login":"manantomar","id":13482152,"avatar_url":"https://avatars.githubusercontent.com/u/13482152?v=3","gravatar_id":"","url":"https://api.github.com/users/manantomar","html_url":"https://github.com/manantomar","followers_url":"https://api.github.com/users/manantomar/followers","following_url":"https://api.github.com/users/manantomar/following{/other_user}","gists_url":"https://api.github.com/users/manantomar/gists{/gist_id}","starred_url":"https://api.github.com/users/manantomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manantomar/subscriptions","organizations_url":"https://api.github.com/users/manantomar/orgs","repos_url":"https://api.github.com/users/manantomar/repos","events_url":"https://api.github.com/users/manantomar/events{/privacy}","received_events_url":"https://api.github.com/users/manantomar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manantomar/shogun","description":"The Shogun Machine Learning Toolbox (Source Code)","fork":true,"url":"https://api.github.com/repos/manantomar/shogun","forks_url":"https://api.github.com/repos/manantomar/shogun/forks","keys_url":"https://api.github.com/repos/manantomar/shogun/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manantomar/shogun/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manantomar/shogun/teams","hooks_url":"https://api.github.com/repos/manantomar/shogun/hooks","issue_events_url":"https://api.github.com/repos/manantomar/shogun/issues/events{/number}","events_url":"https://api.github.com/repos/manantomar/shogun/events","assignees_url":"https://api.github.com/repos/manantomar/shogun/assignees{/user}","branches_url":"https://api.github.com/repos/manantomar/shogun/branches{/branch}","tags_url":"https://api.github.com/repos/manantomar/shogun/tags","blobs_url":"https://api.github.com/repos/manantomar/shogun/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manantomar/shogun/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manantomar/shogun/git/refs{/sha}","trees_url":"https://api.github.com/repos/manantomar/shogun/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manantomar/shogun/statuses/{sha}","languages_url":"https://api.github.com/repos/manantomar/shogun/languages","stargazers_url":"https://api.github.com/repos/manantomar/shogun/stargazers","contributors_url":"https://api.github.com/repos/manantomar/shogun/contributors","subscribers_url":"https://api.github.com/repos/manantomar/shogun/subscribers","subscription_url":"https://api.github.com/repos/manantomar/shogun/subscription","commits_url":"https://api.github.com/repos/manantomar/shogun/commits{/sha}","git_commits_url":"https://api.github.com/repos/manantomar/shogun/git/commits{/sha}","comments_url":"https://api.github.com/repos/manantomar/shogun/comments{/number}","issue_comment_url":"https://api.github.com/repos/manantomar/shogun/issues/comments{/number}","contents_url":"https://api.github.com/repos/manantomar/shogun/contents/{+path}","compare_url":"https://api.github.com/repos/manantomar/shogun/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manantomar/shogun/merges","archive_url":"https://api.github.com/repos/manantomar/shogun/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manantomar/shogun/downloads","issues_url":"https://api.github.com/repos/manantomar/shogun/issues{/number}","pulls_url":"https://api.github.com/repos/manantomar/shogun/pulls{/number}","milestones_url":"https://api.github.com/repos/manantomar/shogun/milestones{/number}","notifications_url":"https://api.github.com/repos/manantomar/shogun/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manantomar/shogun/labels{/name}","releases_url":"https://api.github.com/repos/manantomar/shogun/releases{/id}","deployments_url":"https://api.github.com/repos/manantomar/shogun/deployments","created_at":"2016-02-25T13:45:06Z","updated_at":"2016-02-25T13:45:14Z","pushed_at":"2016-03-09T12:23:37Z","git_url":"git://github.com/manantomar/shogun.git","ssh_url":"git@github.com:manantomar/shogun.git","clone_url":"https://github.com/manantomar/shogun.git","svn_url":"https://github.com/manantomar/shogun","homepage":"http://www.shogun-toolbox.org","size":56884,"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":"d15e588e7b1e4e31c474b4b14615226d39335400","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-10T09:26:57Z","pushed_at":"2016-03-10T11:36:57Z","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":179967,"stargazers_count":997,"watchers_count":997,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":536,"mirror_url":null,"open_issues_count":412,"forks":536,"open_issues":412,"watchers":997,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3026"},"html":{"href":"https://github.com/shogun-toolbox/shogun/pull/3026"},"issue":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3026"},"comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/issues/3026/comments"},"review_comments":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/pulls/3026/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/3026/commits"},"statuses":{"href":"https://api.github.com/repos/shogun-toolbox/shogun/statuses/966c578c7e98303a7b054f519cc7958fb2055536"}}}}