{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/31832650","id":31832650,"diff_hunk":"@@ -811,6 +811,9 @@ def cosine_similarity(X, Y=None):\n     Y : array_like, sparse matrix (optional)\n         with shape (n_samples_Y, n_features).\n \n+    dense_output : boolean (optional)\n+        Whether to return sparse output.","path":"sklearn/metrics/pairwise.py","position":14,"original_position":14,"commit_id":"0faa3e9329ea51b5e7a6834f9f2e76a2d95af2b8","original_commit_id":"0faa3e9329ea51b5e7a6834f9f2e76a2d95af2b8","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"body":"+1","created_at":"2015-06-05T17:21:47Z","updated_at":"2015-06-05T17:21:47Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/4823#discussion_r31832650","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/31832650"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/4823#discussion_r31832650"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823","id":37037147,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/4823","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/4823.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/4823.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4823","number":4823,"state":"open","locked":false,"title":"[MRG] Add option to get sparse output from cosine_similarity.","user":{"login":"jaidevd","id":1250388,"avatar_url":"https://avatars.githubusercontent.com/u/1250388?v=3","gravatar_id":"","url":"https://api.github.com/users/jaidevd","html_url":"https://github.com/jaidevd","followers_url":"https://api.github.com/users/jaidevd/followers","following_url":"https://api.github.com/users/jaidevd/following{/other_user}","gists_url":"https://api.github.com/users/jaidevd/gists{/gist_id}","starred_url":"https://api.github.com/users/jaidevd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaidevd/subscriptions","organizations_url":"https://api.github.com/users/jaidevd/orgs","repos_url":"https://api.github.com/users/jaidevd/repos","events_url":"https://api.github.com/users/jaidevd/events{/privacy}","received_events_url":"https://api.github.com/users/jaidevd/received_events","type":"User","site_admin":false},"body":"This PR adds a default argument to `sklearn.metrics.pairwise.cosine_similarity` that enables it to return  sparse output.","created_at":"2015-06-05T14:36:40Z","updated_at":"2015-06-05T17:21:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9d8cbe0eec683533f937f8abe5a21ebc9bdad85","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823/comments","review_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4823/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/0faa3e9329ea51b5e7a6834f9f2e76a2d95af2b8","head":{"label":"jaidevd:jd-sparse-cos-similarity","ref":"jd-sparse-cos-similarity","sha":"0faa3e9329ea51b5e7a6834f9f2e76a2d95af2b8","user":{"login":"jaidevd","id":1250388,"avatar_url":"https://avatars.githubusercontent.com/u/1250388?v=3","gravatar_id":"","url":"https://api.github.com/users/jaidevd","html_url":"https://github.com/jaidevd","followers_url":"https://api.github.com/users/jaidevd/followers","following_url":"https://api.github.com/users/jaidevd/following{/other_user}","gists_url":"https://api.github.com/users/jaidevd/gists{/gist_id}","starred_url":"https://api.github.com/users/jaidevd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaidevd/subscriptions","organizations_url":"https://api.github.com/users/jaidevd/orgs","repos_url":"https://api.github.com/users/jaidevd/repos","events_url":"https://api.github.com/users/jaidevd/events{/privacy}","received_events_url":"https://api.github.com/users/jaidevd/received_events","type":"User","site_admin":false},"repo":{"id":5700285,"name":"scikit-learn","full_name":"jaidevd/scikit-learn","owner":{"login":"jaidevd","id":1250388,"avatar_url":"https://avatars.githubusercontent.com/u/1250388?v=3","gravatar_id":"","url":"https://api.github.com/users/jaidevd","html_url":"https://github.com/jaidevd","followers_url":"https://api.github.com/users/jaidevd/followers","following_url":"https://api.github.com/users/jaidevd/following{/other_user}","gists_url":"https://api.github.com/users/jaidevd/gists{/gist_id}","starred_url":"https://api.github.com/users/jaidevd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaidevd/subscriptions","organizations_url":"https://api.github.com/users/jaidevd/orgs","repos_url":"https://api.github.com/users/jaidevd/repos","events_url":"https://api.github.com/users/jaidevd/events{/privacy}","received_events_url":"https://api.github.com/users/jaidevd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaidevd/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/jaidevd/scikit-learn","forks_url":"https://api.github.com/repos/jaidevd/scikit-learn/forks","keys_url":"https://api.github.com/repos/jaidevd/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaidevd/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaidevd/scikit-learn/teams","hooks_url":"https://api.github.com/repos/jaidevd/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/jaidevd/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/jaidevd/scikit-learn/events","assignees_url":"https://api.github.com/repos/jaidevd/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/jaidevd/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/jaidevd/scikit-learn/tags","blobs_url":"https://api.github.com/repos/jaidevd/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaidevd/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaidevd/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaidevd/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaidevd/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/jaidevd/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/jaidevd/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/jaidevd/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/jaidevd/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/jaidevd/scikit-learn/subscription","commits_url":"https://api.github.com/repos/jaidevd/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaidevd/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaidevd/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaidevd/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaidevd/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/jaidevd/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaidevd/scikit-learn/merges","archive_url":"https://api.github.com/repos/jaidevd/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaidevd/scikit-learn/downloads","issues_url":"https://api.github.com/repos/jaidevd/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/jaidevd/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/jaidevd/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/jaidevd/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaidevd/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/jaidevd/scikit-learn/releases{/id}","created_at":"2012-09-06T09:47:36Z","updated_at":"2015-04-18T02:31:06Z","pushed_at":"2015-06-05T15:36:06Z","git_url":"git://github.com/jaidevd/scikit-learn.git","ssh_url":"git@github.com:jaidevd/scikit-learn.git","clone_url":"https://github.com/jaidevd/scikit-learn.git","svn_url":"https://github.com/jaidevd/scikit-learn","homepage":"http://scikit-learn.org","size":60319,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"scikit-learn:master","ref":"master","sha":"5632cfcf19978df5849bec727cd5c3caea3f2b3e","user":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"repo":{"id":843222,"name":"scikit-learn","full_name":"scikit-learn/scikit-learn","owner":{"login":"scikit-learn","id":365630,"avatar_url":"https://avatars.githubusercontent.com/u/365630?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-learn","html_url":"https://github.com/scikit-learn","followers_url":"https://api.github.com/users/scikit-learn/followers","following_url":"https://api.github.com/users/scikit-learn/following{/other_user}","gists_url":"https://api.github.com/users/scikit-learn/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-learn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-learn/subscriptions","organizations_url":"https://api.github.com/users/scikit-learn/orgs","repos_url":"https://api.github.com/users/scikit-learn/repos","events_url":"https://api.github.com/users/scikit-learn/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-learn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-learn/scikit-learn","description":"scikit-learn: machine learning in Python","fork":false,"url":"https://api.github.com/repos/scikit-learn/scikit-learn","forks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/forks","keys_url":"https://api.github.com/repos/scikit-learn/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-learn/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-learn/scikit-learn/teams","hooks_url":"https://api.github.com/repos/scikit-learn/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/events","assignees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-learn/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/tags","blobs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-learn/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/scikit-learn/scikit-learn/subscription","commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-learn/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-learn/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-learn/scikit-learn/merges","archive_url":"https://api.github.com/repos/scikit-learn/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-learn/scikit-learn/downloads","issues_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-learn/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-learn/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/scikit-learn/scikit-learn/releases{/id}","created_at":"2010-08-17T09:43:38Z","updated_at":"2015-06-05T16:44:08Z","pushed_at":"2015-06-05T17:14:55Z","git_url":"git://github.com/scikit-learn/scikit-learn.git","ssh_url":"git@github.com:scikit-learn/scikit-learn.git","clone_url":"https://github.com/scikit-learn/scikit-learn.git","svn_url":"https://github.com/scikit-learn/scikit-learn","homepage":"http://scikit-learn.org","size":130646,"stargazers_count":6289,"watchers_count":6289,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3774,"mirror_url":null,"open_issues_count":681,"forks":3774,"open_issues":681,"watchers":6289,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/4823"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4823"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/4823/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/4823/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/0faa3e9329ea51b5e7a6834f9f2e76a2d95af2b8"}}}}