{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/64169756","id":64169756,"diff_hunk":"@@ -313,8 +315,11 @@ class labels [2].\n     .. [1] J. Cohen (1960). \"A coefficient of agreement for nominal scales\".","path":"sklearn/metrics/classification.py","position":21,"original_position":21,"commit_id":"8e0fcdf6898e2723987d6f45268c631b09e3e32b","original_commit_id":"8e0fcdf6898e2723987d6f45268c631b09e3e32b","user":{"login":"jnothman","id":78827,"avatar_url":"https://avatars.githubusercontent.com/u/78827?v=3","gravatar_id":"","url":"https://api.github.com/users/jnothman","html_url":"https://github.com/jnothman","followers_url":"https://api.github.com/users/jnothman/followers","following_url":"https://api.github.com/users/jnothman/following{/other_user}","gists_url":"https://api.github.com/users/jnothman/gists{/gist_id}","starred_url":"https://api.github.com/users/jnothman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnothman/subscriptions","organizations_url":"https://api.github.com/users/jnothman/orgs","repos_url":"https://api.github.com/users/jnothman/repos","events_url":"https://api.github.com/users/jnothman/events{/privacy}","received_events_url":"https://api.github.com/users/jnothman/received_events","type":"User","site_admin":false},"body":"I'm not sure whether we prefer DOIs or URLs, or both... check the rest of the codebase.","created_at":"2016-05-23T05:03:36Z","updated_at":"2016-05-23T05:03:36Z","html_url":"https://github.com/scikit-learn/scikit-learn/pull/6811#discussion_r64169756","pull_request_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6811","_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/comments/64169756"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/6811#discussion_r64169756"},"pull_request":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6811"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6811","id":70997881,"html_url":"https://github.com/scikit-learn/scikit-learn/pull/6811","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/6811.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/6811.patch","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6811","number":6811,"state":"open","locked":false,"title":"[MRG] Added cohen kappa score class to API reference","user":{"login":"hlin117","id":1865885,"avatar_url":"https://avatars.githubusercontent.com/u/1865885?v=3","gravatar_id":"","url":"https://api.github.com/users/hlin117","html_url":"https://github.com/hlin117","followers_url":"https://api.github.com/users/hlin117/followers","following_url":"https://api.github.com/users/hlin117/following{/other_user}","gists_url":"https://api.github.com/users/hlin117/gists{/gist_id}","starred_url":"https://api.github.com/users/hlin117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlin117/subscriptions","organizations_url":"https://api.github.com/users/hlin117/orgs","repos_url":"https://api.github.com/users/hlin117/repos","events_url":"https://api.github.com/users/hlin117/events{/privacy}","received_events_url":"https://api.github.com/users/hlin117/received_events","type":"User","site_admin":false},"body":"Addresses issue #6808. @jnothman @larsmans \r\n\r\n# Roadmap\r\n\r\n* [x] Cohen Kappa Score is now in API reference.\r\n* [x] Fix the References link to `sklearn.metrics.cohen_kappa_score.html` page.\r\n* [x] Build `User Guide` links.\r\n\r\nCopy of the Sphinx [generated html page](https://www.dropbox.com/s/k3cu2536zvdf8ap/sklearn.metrics.cohen_kappa_score.html?dl=0). (To view it correctly with the CSS rendering, put it in the `scikit-learn/doc/_build/html/stable/modules/generated` source directory.)\r\n\r\n# Original post\r\n\r\nThis also creates the `sklearn.metrics.cohen_kappa_score.html` page. (Similar to any other automatically generated function / class reference page like [this one](http://scikit-learn.org/stable/modules/generated/sklearn.metrics.hamming_loss.html#sklearn.metrics.cohen_kappa_score).) However, after opening the html page, I noticed that the \"References\" links were not working.\r\n\r\nI'm not too familiar with Sphinx. Where would be the appropriate place to create the links in the references?\r\n\r\nI'd also like to build `See also` links to/from this page. Are there any suggestions to/from which pages we should link this metric? (It doesn't seem like a typical metric for a classifier.)","created_at":"2016-05-23T02:28:13Z","updated_at":"2016-05-23T05:03:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd9a161e460b62cfd352fec7c5d6d9340d6a1473","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6811/commits","review_comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6811/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/6811/comments","statuses_url":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/8e0fcdf6898e2723987d6f45268c631b09e3e32b","head":{"label":"hlin117:cohen-doc","ref":"cohen-doc","sha":"8e0fcdf6898e2723987d6f45268c631b09e3e32b","user":{"login":"hlin117","id":1865885,"avatar_url":"https://avatars.githubusercontent.com/u/1865885?v=3","gravatar_id":"","url":"https://api.github.com/users/hlin117","html_url":"https://github.com/hlin117","followers_url":"https://api.github.com/users/hlin117/followers","following_url":"https://api.github.com/users/hlin117/following{/other_user}","gists_url":"https://api.github.com/users/hlin117/gists{/gist_id}","starred_url":"https://api.github.com/users/hlin117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlin117/subscriptions","organizations_url":"https://api.github.com/users/hlin117/orgs","repos_url":"https://api.github.com/users/hlin117/repos","events_url":"https://api.github.com/users/hlin117/events{/privacy}","received_events_url":"https://api.github.com/users/hlin117/received_events","type":"User","site_admin":false},"repo":{"id":36590365,"name":"scikit-learn","full_name":"hlin117/scikit-learn","owner":{"login":"hlin117","id":1865885,"avatar_url":"https://avatars.githubusercontent.com/u/1865885?v=3","gravatar_id":"","url":"https://api.github.com/users/hlin117","html_url":"https://github.com/hlin117","followers_url":"https://api.github.com/users/hlin117/followers","following_url":"https://api.github.com/users/hlin117/following{/other_user}","gists_url":"https://api.github.com/users/hlin117/gists{/gist_id}","starred_url":"https://api.github.com/users/hlin117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlin117/subscriptions","organizations_url":"https://api.github.com/users/hlin117/orgs","repos_url":"https://api.github.com/users/hlin117/repos","events_url":"https://api.github.com/users/hlin117/events{/privacy}","received_events_url":"https://api.github.com/users/hlin117/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hlin117/scikit-learn","description":"scikit-learn: machine learning in Python","fork":true,"url":"https://api.github.com/repos/hlin117/scikit-learn","forks_url":"https://api.github.com/repos/hlin117/scikit-learn/forks","keys_url":"https://api.github.com/repos/hlin117/scikit-learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hlin117/scikit-learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hlin117/scikit-learn/teams","hooks_url":"https://api.github.com/repos/hlin117/scikit-learn/hooks","issue_events_url":"https://api.github.com/repos/hlin117/scikit-learn/issues/events{/number}","events_url":"https://api.github.com/repos/hlin117/scikit-learn/events","assignees_url":"https://api.github.com/repos/hlin117/scikit-learn/assignees{/user}","branches_url":"https://api.github.com/repos/hlin117/scikit-learn/branches{/branch}","tags_url":"https://api.github.com/repos/hlin117/scikit-learn/tags","blobs_url":"https://api.github.com/repos/hlin117/scikit-learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hlin117/scikit-learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hlin117/scikit-learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/hlin117/scikit-learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hlin117/scikit-learn/statuses/{sha}","languages_url":"https://api.github.com/repos/hlin117/scikit-learn/languages","stargazers_url":"https://api.github.com/repos/hlin117/scikit-learn/stargazers","contributors_url":"https://api.github.com/repos/hlin117/scikit-learn/contributors","subscribers_url":"https://api.github.com/repos/hlin117/scikit-learn/subscribers","subscription_url":"https://api.github.com/repos/hlin117/scikit-learn/subscription","commits_url":"https://api.github.com/repos/hlin117/scikit-learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/hlin117/scikit-learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/hlin117/scikit-learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/hlin117/scikit-learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/hlin117/scikit-learn/contents/{+path}","compare_url":"https://api.github.com/repos/hlin117/scikit-learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hlin117/scikit-learn/merges","archive_url":"https://api.github.com/repos/hlin117/scikit-learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hlin117/scikit-learn/downloads","issues_url":"https://api.github.com/repos/hlin117/scikit-learn/issues{/number}","pulls_url":"https://api.github.com/repos/hlin117/scikit-learn/pulls{/number}","milestones_url":"https://api.github.com/repos/hlin117/scikit-learn/milestones{/number}","notifications_url":"https://api.github.com/repos/hlin117/scikit-learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hlin117/scikit-learn/labels{/name}","releases_url":"https://api.github.com/repos/hlin117/scikit-learn/releases{/id}","deployments_url":"https://api.github.com/repos/hlin117/scikit-learn/deployments","created_at":"2015-05-31T06:06:00Z","updated_at":"2016-02-08T08:13:59Z","pushed_at":"2016-05-23T04:00:27Z","git_url":"git://github.com/hlin117/scikit-learn.git","ssh_url":"git@github.com:hlin117/scikit-learn.git","clone_url":"https://github.com/hlin117/scikit-learn.git","svn_url":"https://github.com/hlin117/scikit-learn","homepage":"http://scikit-learn.org","size":66503,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"scikit-learn:master","ref":"master","sha":"62f467e7f8b4f32ded7d54b5d2387d9f501885ef","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}","deployments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/deployments","created_at":"2010-08-17T09:43:38Z","updated_at":"2016-05-23T04:53:07Z","pushed_at":"2016-05-23T04:00:28Z","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":114433,"stargazers_count":11521,"watchers_count":11521,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6687,"mirror_url":null,"open_issues_count":1193,"forks":6687,"open_issues":1193,"watchers":11521,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6811"},"html":{"href":"https://github.com/scikit-learn/scikit-learn/pull/6811"},"issue":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6811"},"comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/6811/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/6811/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/6811/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-learn/scikit-learn/statuses/8e0fcdf6898e2723987d6f45268c631b09e3e32b"}}}}
{"actor":{"display_login":"jnothman"}}