{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/44987422","id":44987422,"diff_hunk":"@@ -1403,3 +1403,29 @@ Drawbacks\n    the silhouette analysis is used to choose an optimal value for n_clusters.\n \n \n+.. _contingency_matrix:\n+Contingency Matrix\n+----------------------\n+\n+Contingency matrix is a format describing the relationship between discrete-valued random variables.\n+It shows the multivariate frequency distribution of the variables.\n+\n+Let the first random variable be :math:`X`, and the and the second random variable be :math:`Y`. In a contingency matrix :math:`M`, entry :math:`M(i, j)` ","path":"doc/modules/clustering.rst","position":11,"original_position":11,"commit_id":"9d7239087233f5b64b7284c319aa29baf9f0131e","original_commit_id":"9d7239087233f5b64b7284c319aa29baf9f0131e","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":"make sure lines are less than 80 characters.","created_at":"2015-11-16T21:39:46Z","updated_at":"2015-11-16T21:39:46Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5845#discussion_r44987422","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5845","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/44987422"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/5845#discussion_r44987422"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5845"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5845","id":50859415,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/5845","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/5845.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/5845.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5845","number":5845,"state":"open","locked":false,"title":"[MRG] add contingency_matrix documentation and example","user":{"login":"papadopc","id":3411724,"avatar_url":"https://avatars.githubusercontent.com/u/3411724?v=3","gravatar_id":"","url":"https://api.github.com/users/papadopc","html_url":"https://github.com/papadopc","followers_url":"https://api.github.com/users/papadopc/followers","following_url":"https://api.github.com/users/papadopc/following{/other_user}","gists_url":"https://api.github.com/users/papadopc/gists{/gist_id}","starred_url":"https://api.github.com/users/papadopc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papadopc/subscriptions","organizations_url":"https://api.github.com/users/papadopc/orgs","repos_url":"https://api.github.com/users/papadopc/repos","events_url":"https://api.github.com/users/papadopc/events{/privacy}","received_events_url":"https://api.github.com/users/papadopc/received_events","type":"User","site_admin":false},"body":"Fix https://github.com/scikit-learn/scikit-learn/issues/4805","created_at":"2015-11-16T20:12:55Z","updated_at":"2015-11-16T21:39:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4e3458248ad0b1a1f9948035dacc7f5db938272","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5845/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5845/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/5845/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/9d7239087233f5b64b7284c319aa29baf9f0131e","head":{"label":"papadopc:contingency_doc","ref":"contingency_doc","sha":"9d7239087233f5b64b7284c319aa29baf9f0131e","user":{"login":"papadopc","id":3411724,"avatar_url":"https://avatars.githubusercontent.com/u/3411724?v=3","gravatar_id":"","url":"https://api.github.com/users/papadopc","html_url":"https://github.com/papadopc","followers_url":"https://api.github.com/users/papadopc/followers","following_url":"https://api.github.com/users/papadopc/following{/other_user}","gists_url":"https://api.github.com/users/papadopc/gists{/gist_id}","starred_url":"https://api.github.com/users/papadopc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papadopc/subscriptions","organizations_url":"https://api.github.com/users/papadopc/orgs","repos_url":"https://api.github.com/users/papadopc/repos","events_url":"https://api.github.com/users/papadopc/events{/privacy}","received_events_url":"https://api.github.com/users/papadopc/received_events","type":"User","site_admin":false},"repo":{"id":45412759,"name":"scikit-learn","full_name":"papadopc/scikit-learn","owner":{"login":"papadopc","id":3411724,"avatar_url":"https://avatars.githubusercontent.com/u/3411724?v=3","gravatar_id":"","url":"https://api.github.com/users/papadopc","html_url":"https://github.com/papadopc","followers_url":"https://api.github.com/users/papadopc/followers","following_url":"https://api.github.com/users/papadopc/following{/other_user}","gists_url":"https://api.github.com/users/papadopc/gists{/gist_id}","starred_url":"https://api.github.com/users/papadopc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papadopc/subscriptions","organizations_url":"https://api.github.com/users/papadopc/orgs","repos_url":"https://api.github.com/users/papadopc/repos","events_url":"https://api.github.com/users/papadopc/events{/privacy}","received_events_url":"https://api.github.com/users/papadopc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/papadopc/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/papadopc/scikit-learn","forks_url":"https://api.github.com/repos/papadopc/scikit-learn/forks","keys_url":"https://api.github.com/repos/papadopc/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/papadopc/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/papadopc/scikit-learn/teams","hooks_url":"https://api.github.com/repos/papadopc/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/papadopc/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/papadopc/scikit-learn/events","assignees_url":"https://api.github.com/repos/papadopc/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/papadopc/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/papadopc/scikit-learn/tags","blobs_url":"https://api.github.com/repos/papadopc/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/papadopc/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/papadopc/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/papadopc/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/papadopc/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/papadopc/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/papadopc/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/papadopc/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/papadopc/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/papadopc/scikit-learn/subscription","commits_url":"https://api.github.com/repos/papadopc/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/papadopc/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/papadopc/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/papadopc/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/papadopc/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/papadopc/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/papadopc/scikit-learn/merges","archive_url":"https://api.github.com/repos/papadopc/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/papadopc/scikit-learn/downloads","issues_url":"https://api.github.com/repos/papadopc/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/papadopc/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/papadopc/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/papadopc/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/papadopc/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/papadopc/scikit-learn/releases{/id}","created_at":"2015-11-02T18:12:41Z","updated_at":"2015-11-02T18:12:54Z","pushed_at":"2015-11-16T21:33:42Z","git_url":"git://github.com/papadopc/scikit-learn.git","ssh_url":"git@github.com:papadopc/scikit-learn.git","clone_url":"https://github.com/papadopc/scikit-learn.git","svn_url":"https://github.com/papadopc/scikit-learn","homepage":"http://scikit-learn.org","size":69316,"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":"09c3fbfcaaf563da9cf73bdb3b6059ddf93ccceb","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-11-16T19:30:37Z","pushed_at":"2015-11-16T21:39:26Z","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":103431,"stargazers_count":8280,"watchers_count":8280,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4951,"mirror_url":null,"open_issues_count":891,"forks":4951,"open_issues":891,"watchers":8280,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5845"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/5845"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5845"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5845/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5845/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/5845/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/9d7239087233f5b64b7284c319aa29baf9f0131e"}}}}