{"action":"created","comment":{"url":"https://api.github.com/repos/numenta/nupic/pulls/comments/55767998","id":55767998,"diff_hunk":"@@ -201,6 +207,7 @@ class labels\n     self.replaceDuplicates = replaceDuplicates\n     self.cellsPerCol = cellsPerCol\n     self.maxStoredPatterns = maxStoredPatterns\n+    self.minSparsity = minSparsity","path":"src/nupic/algorithms/KNNClassifier.py","position":26,"original_position":26,"commit_id":"d6e04686f78a27e1dbd5ed20ac6c283dba94ccdd","original_commit_id":"d6e04686f78a27e1dbd5ed20ac6c283dba94ccdd","user":{"login":"subutai","id":1268932,"avatar_url":"https://avatars.githubusercontent.com/u/1268932?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai","html_url":"https://github.com/subutai","followers_url":"https://api.github.com/users/subutai/followers","following_url":"https://api.github.com/users/subutai/following{/other_user}","gists_url":"https://api.github.com/users/subutai/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai/subscriptions","organizations_url":"https://api.github.com/users/subutai/orgs","repos_url":"https://api.github.com/users/subutai/repos","events_url":"https://api.github.com/users/subutai/events{/privacy}","received_events_url":"https://api.github.com/users/subutai/received_events","type":"User","site_admin":false},"body":"@oxtopus  I was hoping I didn't need to worry about backward compatibility here since this class is not used much outside of research, but I can do that.","created_at":"2016-03-10T23:32:09Z","updated_at":"2016-03-10T23:32:09Z","html_url":"https://github.com/numenta/nupic/pull/3042#discussion_r55767998","pull_request_url":"https://api.github.com/repos/numenta/nupic/pulls/3042","_links":{"self":{"href":"https://api.github.com/repos/numenta/nupic/pulls/comments/55767998"},"html":{"href":"https://github.com/numenta/nupic/pull/3042#discussion_r55767998"},"pull_request":{"href":"https://api.github.com/repos/numenta/nupic/pulls/3042"}}},"pull_request":{"url":"https://api.github.com/repos/numenta/nupic/pulls/3042","id":62134067,"html_url":"https://github.com/numenta/nupic/pull/3042","diff_url":"https://github.com/numenta/nupic/pull/3042.diff","patch_url":"https://github.com/numenta/nupic/pull/3042.patch","issue_url":"https://api.github.com/repos/numenta/nupic/issues/3042","number":3042,"state":"closed","locked":false,"title":"Added minSparsity option","user":{"login":"subutai","id":1268932,"avatar_url":"https://avatars.githubusercontent.com/u/1268932?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai","html_url":"https://github.com/subutai","followers_url":"https://api.github.com/users/subutai/followers","following_url":"https://api.github.com/users/subutai/following{/other_user}","gists_url":"https://api.github.com/users/subutai/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai/subscriptions","organizations_url":"https://api.github.com/users/subutai/orgs","repos_url":"https://api.github.com/users/subutai/repos","events_url":"https://api.github.com/users/subutai/events{/privacy}","received_events_url":"https://api.github.com/users/subutai/received_events","type":"User","site_admin":false},"body":"Fixes #2975","created_at":"2016-03-08T20:51:07Z","updated_at":"2016-03-10T23:32:09Z","closed_at":"2016-03-09T21:07:48Z","merged_at":"2016-03-09T21:07:48Z","merge_commit_sha":"c56b6340f891797de149b2546566e2fa6995913c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numenta/nupic/pulls/3042/commits","review_comments_url":"https://api.github.com/repos/numenta/nupic/pulls/3042/comments","review_comment_url":"https://api.github.com/repos/numenta/nupic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/3042/comments","statuses_url":"https://api.github.com/repos/numenta/nupic/statuses/d6e04686f78a27e1dbd5ed20ac6c283dba94ccdd","head":{"label":"subutai:knn_min_sparsity","ref":"knn_min_sparsity","sha":"d6e04686f78a27e1dbd5ed20ac6c283dba94ccdd","user":{"login":"subutai","id":1268932,"avatar_url":"https://avatars.githubusercontent.com/u/1268932?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai","html_url":"https://github.com/subutai","followers_url":"https://api.github.com/users/subutai/followers","following_url":"https://api.github.com/users/subutai/following{/other_user}","gists_url":"https://api.github.com/users/subutai/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai/subscriptions","organizations_url":"https://api.github.com/users/subutai/orgs","repos_url":"https://api.github.com/users/subutai/repos","events_url":"https://api.github.com/users/subutai/events{/privacy}","received_events_url":"https://api.github.com/users/subutai/received_events","type":"User","site_admin":false},"repo":{"id":17252299,"name":"nupic","full_name":"subutai/nupic","owner":{"login":"subutai","id":1268932,"avatar_url":"https://avatars.githubusercontent.com/u/1268932?v=3","gravatar_id":"","url":"https://api.github.com/users/subutai","html_url":"https://github.com/subutai","followers_url":"https://api.github.com/users/subutai/followers","following_url":"https://api.github.com/users/subutai/following{/other_user}","gists_url":"https://api.github.com/users/subutai/gists{/gist_id}","starred_url":"https://api.github.com/users/subutai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subutai/subscriptions","organizations_url":"https://api.github.com/users/subutai/orgs","repos_url":"https://api.github.com/users/subutai/repos","events_url":"https://api.github.com/users/subutai/events{/privacy}","received_events_url":"https://api.github.com/users/subutai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/subutai/nupic","description":"Numenta Platform for Intelligent Computing: a brain-inspired machine intelligence platform, and biologically accurate neural network based on cortical learning algorithms.","fork":true,"url":"https://api.github.com/repos/subutai/nupic","forks_url":"https://api.github.com/repos/subutai/nupic/forks","keys_url":"https://api.github.com/repos/subutai/nupic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/subutai/nupic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/subutai/nupic/teams","hooks_url":"https://api.github.com/repos/subutai/nupic/hooks","issue_events_url":"https://api.github.com/repos/subutai/nupic/issues/events{/number}","events_url":"https://api.github.com/repos/subutai/nupic/events","assignees_url":"https://api.github.com/repos/subutai/nupic/assignees{/user}","branches_url":"https://api.github.com/repos/subutai/nupic/branches{/branch}","tags_url":"https://api.github.com/repos/subutai/nupic/tags","blobs_url":"https://api.github.com/repos/subutai/nupic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/subutai/nupic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/subutai/nupic/git/refs{/sha}","trees_url":"https://api.github.com/repos/subutai/nupic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/subutai/nupic/statuses/{sha}","languages_url":"https://api.github.com/repos/subutai/nupic/languages","stargazers_url":"https://api.github.com/repos/subutai/nupic/stargazers","contributors_url":"https://api.github.com/repos/subutai/nupic/contributors","subscribers_url":"https://api.github.com/repos/subutai/nupic/subscribers","subscription_url":"https://api.github.com/repos/subutai/nupic/subscription","commits_url":"https://api.github.com/repos/subutai/nupic/commits{/sha}","git_commits_url":"https://api.github.com/repos/subutai/nupic/git/commits{/sha}","comments_url":"https://api.github.com/repos/subutai/nupic/comments{/number}","issue_comment_url":"https://api.github.com/repos/subutai/nupic/issues/comments{/number}","contents_url":"https://api.github.com/repos/subutai/nupic/contents/{+path}","compare_url":"https://api.github.com/repos/subutai/nupic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/subutai/nupic/merges","archive_url":"https://api.github.com/repos/subutai/nupic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/subutai/nupic/downloads","issues_url":"https://api.github.com/repos/subutai/nupic/issues{/number}","pulls_url":"https://api.github.com/repos/subutai/nupic/pulls{/number}","milestones_url":"https://api.github.com/repos/subutai/nupic/milestones{/number}","notifications_url":"https://api.github.com/repos/subutai/nupic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/subutai/nupic/labels{/name}","releases_url":"https://api.github.com/repos/subutai/nupic/releases{/id}","deployments_url":"https://api.github.com/repos/subutai/nupic/deployments","created_at":"2014-02-27T14:51:26Z","updated_at":"2015-04-30T18:28:38Z","pushed_at":"2016-03-09T21:08:09Z","git_url":"git://github.com/subutai/nupic.git","ssh_url":"git@github.com:subutai/nupic.git","clone_url":"https://github.com/subutai/nupic.git","svn_url":"https://github.com/subutai/nupic","homepage":"http://numenta.org/","size":139289,"stargazers_count":1,"watchers_count":1,"language":"Python","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":1,"default_branch":"master"}},"base":{"label":"numenta:master","ref":"master","sha":"2a7cd1f545f9724cc03d17f4cd3de50fadf71dcd","user":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"repo":{"id":9252533,"name":"nupic","full_name":"numenta/nupic","owner":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numenta/nupic","description":"Numenta Platform for Intelligent Computing: a brain-inspired machine intelligence platform, and biologically accurate neural network based on cortical learning algorithms.","fork":false,"url":"https://api.github.com/repos/numenta/nupic","forks_url":"https://api.github.com/repos/numenta/nupic/forks","keys_url":"https://api.github.com/repos/numenta/nupic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numenta/nupic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numenta/nupic/teams","hooks_url":"https://api.github.com/repos/numenta/nupic/hooks","issue_events_url":"https://api.github.com/repos/numenta/nupic/issues/events{/number}","events_url":"https://api.github.com/repos/numenta/nupic/events","assignees_url":"https://api.github.com/repos/numenta/nupic/assignees{/user}","branches_url":"https://api.github.com/repos/numenta/nupic/branches{/branch}","tags_url":"https://api.github.com/repos/numenta/nupic/tags","blobs_url":"https://api.github.com/repos/numenta/nupic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numenta/nupic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numenta/nupic/git/refs{/sha}","trees_url":"https://api.github.com/repos/numenta/nupic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numenta/nupic/statuses/{sha}","languages_url":"https://api.github.com/repos/numenta/nupic/languages","stargazers_url":"https://api.github.com/repos/numenta/nupic/stargazers","contributors_url":"https://api.github.com/repos/numenta/nupic/contributors","subscribers_url":"https://api.github.com/repos/numenta/nupic/subscribers","subscription_url":"https://api.github.com/repos/numenta/nupic/subscription","commits_url":"https://api.github.com/repos/numenta/nupic/commits{/sha}","git_commits_url":"https://api.github.com/repos/numenta/nupic/git/commits{/sha}","comments_url":"https://api.github.com/repos/numenta/nupic/comments{/number}","issue_comment_url":"https://api.github.com/repos/numenta/nupic/issues/comments{/number}","contents_url":"https://api.github.com/repos/numenta/nupic/contents/{+path}","compare_url":"https://api.github.com/repos/numenta/nupic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numenta/nupic/merges","archive_url":"https://api.github.com/repos/numenta/nupic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numenta/nupic/downloads","issues_url":"https://api.github.com/repos/numenta/nupic/issues{/number}","pulls_url":"https://api.github.com/repos/numenta/nupic/pulls{/number}","milestones_url":"https://api.github.com/repos/numenta/nupic/milestones{/number}","notifications_url":"https://api.github.com/repos/numenta/nupic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numenta/nupic/labels{/name}","releases_url":"https://api.github.com/repos/numenta/nupic/releases{/id}","deployments_url":"https://api.github.com/repos/numenta/nupic/deployments","created_at":"2013-04-05T23:14:27Z","updated_at":"2016-03-10T10:16:39Z","pushed_at":"2016-03-10T02:22:12Z","git_url":"git://github.com/numenta/nupic.git","ssh_url":"git@github.com:numenta/nupic.git","clone_url":"https://github.com/numenta/nupic.git","svn_url":"https://github.com/numenta/nupic","homepage":"http://numenta.org/","size":279046,"stargazers_count":3909,"watchers_count":3909,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1086,"mirror_url":null,"open_issues_count":477,"forks":1086,"open_issues":477,"watchers":3909,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numenta/nupic/pulls/3042"},"html":{"href":"https://github.com/numenta/nupic/pull/3042"},"issue":{"href":"https://api.github.com/repos/numenta/nupic/issues/3042"},"comments":{"href":"https://api.github.com/repos/numenta/nupic/issues/3042/comments"},"review_comments":{"href":"https://api.github.com/repos/numenta/nupic/pulls/3042/comments"},"review_comment":{"href":"https://api.github.com/repos/numenta/nupic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numenta/nupic/pulls/3042/commits"},"statuses":{"href":"https://api.github.com/repos/numenta/nupic/statuses/d6e04686f78a27e1dbd5ed20ac6c283dba94ccdd"}}}}