{"action":"created","comment":{"url":"https://api.github.com/repos/stripe/topmodel/pulls/comments/34837999","id":34837999,"diff_hunk":"@@ -111,9 +111,12 @@ def plot_scores_histogram_log(thresholds, counts, counts2, xlabel, ax=None):\n     # First graph\n     if ax is None:\n         _, ax = plt.subplots()\n-    plt.bar(thresholds, counts, width=thresholds[1] - thresholds[0],\n-            log=True, label=\"All items\")\n-    plt.bar(thresholds, counts2, width=thresholds[1] - thresholds[0],\n+    falses = [i - j for i, j in zip(counts, counts2)]","path":"topmodel/plot_helpers.py","position":7,"original_position":7,"commit_id":"41b030aa44ce075a07e105eaa87b598fafaf3d3a","original_commit_id":"41b030aa44ce075a07e105eaa87b598fafaf3d3a","user":{"login":"roban","id":113354,"avatar_url":"https://avatars.githubusercontent.com/u/113354?v=3","gravatar_id":"","url":"https://api.github.com/users/roban","html_url":"https://github.com/roban","followers_url":"https://api.github.com/users/roban/followers","following_url":"https://api.github.com/users/roban/following{/other_user}","gists_url":"https://api.github.com/users/roban/gists{/gist_id}","starred_url":"https://api.github.com/users/roban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roban/subscriptions","organizations_url":"https://api.github.com/users/roban/orgs","repos_url":"https://api.github.com/users/roban/repos","events_url":"https://api.github.com/users/roban/events{/privacy}","received_events_url":"https://api.github.com/users/roban/received_events","type":"User","site_admin":false},"body":"Maybe consider renaming counts and counts2 to all_counts and false_counts or something, just for clarity? (Ignore if that's out of scope for this PR.)","created_at":"2015-07-16T21:07:32Z","updated_at":"2015-07-16T21:07:32Z","html_url":"https://github.com/stripe/topmodel/pull/10#discussion_r34837999","pull_request_url":"https://api.github.com/repos/stripe/topmodel/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/stripe/topmodel/pulls/comments/34837999"},"html":{"href":"https://github.com/stripe/topmodel/pull/10#discussion_r34837999"},"pull_request":{"href":"https://api.github.com/repos/stripe/topmodel/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/stripe/topmodel/pulls/10","id":40161640,"html_url":"https://github.com/stripe/topmodel/pull/10","diff_url":"https://github.com/stripe/topmodel/pull/10.diff","patch_url":"https://github.com/stripe/topmodel/pull/10.patch","issue_url":"https://api.github.com/repos/stripe/topmodel/issues/10","number":10,"state":"open","locked":false,"title":"Add absolute score distribution graph and side-by-side log","user":{"login":"jocelynsarah","id":1316099,"avatar_url":"https://avatars.githubusercontent.com/u/1316099?v=3","gravatar_id":"","url":"https://api.github.com/users/jocelynsarah","html_url":"https://github.com/jocelynsarah","followers_url":"https://api.github.com/users/jocelynsarah/followers","following_url":"https://api.github.com/users/jocelynsarah/following{/other_user}","gists_url":"https://api.github.com/users/jocelynsarah/gists{/gist_id}","starred_url":"https://api.github.com/users/jocelynsarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jocelynsarah/subscriptions","organizations_url":"https://api.github.com/users/jocelynsarah/orgs","repos_url":"https://api.github.com/users/jocelynsarah/repos","events_url":"https://api.github.com/users/jocelynsarah/events{/privacy}","received_events_url":"https://api.github.com/users/jocelynsarah/received_events","type":"User","site_admin":false},"body":"r? @roban \r\n\r\nThis adds an absolute score distribution graph, and makes it so that the log score distribution graph shows True/False instead of True/All and has bars side-by-side for easy comparison (or, as easy as it gets to visually compare two logs).","created_at":"2015-07-16T18:41:36Z","updated_at":"2015-07-16T21:07:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea5de505ba6fbd5029841b79a1482ff7c24dbd65","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stripe/topmodel/pulls/10/commits","review_comments_url":"https://api.github.com/repos/stripe/topmodel/pulls/10/comments","review_comment_url":"https://api.github.com/repos/stripe/topmodel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stripe/topmodel/issues/10/comments","statuses_url":"https://api.github.com/repos/stripe/topmodel/statuses/41b030aa44ce075a07e105eaa87b598fafaf3d3a","head":{"label":"stripe:jj-nonlog-distribution","ref":"jj-nonlog-distribution","sha":"41b030aa44ce075a07e105eaa87b598fafaf3d3a","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":27005850,"name":"topmodel","full_name":"stripe/topmodel","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/topmodel","description":"Standard evaluations for binary classifiers so you don't have to","fork":false,"url":"https://api.github.com/repos/stripe/topmodel","forks_url":"https://api.github.com/repos/stripe/topmodel/forks","keys_url":"https://api.github.com/repos/stripe/topmodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/topmodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/topmodel/teams","hooks_url":"https://api.github.com/repos/stripe/topmodel/hooks","issue_events_url":"https://api.github.com/repos/stripe/topmodel/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/topmodel/events","assignees_url":"https://api.github.com/repos/stripe/topmodel/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/topmodel/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/topmodel/tags","blobs_url":"https://api.github.com/repos/stripe/topmodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/topmodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/topmodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/topmodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/topmodel/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/topmodel/languages","stargazers_url":"https://api.github.com/repos/stripe/topmodel/stargazers","contributors_url":"https://api.github.com/repos/stripe/topmodel/contributors","subscribers_url":"https://api.github.com/repos/stripe/topmodel/subscribers","subscription_url":"https://api.github.com/repos/stripe/topmodel/subscription","commits_url":"https://api.github.com/repos/stripe/topmodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/topmodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/topmodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/topmodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/topmodel/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/topmodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/topmodel/merges","archive_url":"https://api.github.com/repos/stripe/topmodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/topmodel/downloads","issues_url":"https://api.github.com/repos/stripe/topmodel/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/topmodel/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/topmodel/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/topmodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/topmodel/labels{/name}","releases_url":"https://api.github.com/repos/stripe/topmodel/releases{/id}","created_at":"2014-11-22T17:07:36Z","updated_at":"2015-06-28T02:57:37Z","pushed_at":"2015-07-16T20:41:08Z","git_url":"git://github.com/stripe/topmodel.git","ssh_url":"git@github.com:stripe/topmodel.git","clone_url":"https://github.com/stripe/topmodel.git","svn_url":"https://github.com/stripe/topmodel","homepage":"","size":1188,"stargazers_count":81,"watchers_count":81,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":81,"default_branch":"master"}},"base":{"label":"stripe:master","ref":"master","sha":"09f3882318b5e9885f829ca34bee90cbfe551f8c","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":27005850,"name":"topmodel","full_name":"stripe/topmodel","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/topmodel","description":"Standard evaluations for binary classifiers so you don't have to","fork":false,"url":"https://api.github.com/repos/stripe/topmodel","forks_url":"https://api.github.com/repos/stripe/topmodel/forks","keys_url":"https://api.github.com/repos/stripe/topmodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/topmodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/topmodel/teams","hooks_url":"https://api.github.com/repos/stripe/topmodel/hooks","issue_events_url":"https://api.github.com/repos/stripe/topmodel/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/topmodel/events","assignees_url":"https://api.github.com/repos/stripe/topmodel/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/topmodel/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/topmodel/tags","blobs_url":"https://api.github.com/repos/stripe/topmodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/topmodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/topmodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/topmodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/topmodel/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/topmodel/languages","stargazers_url":"https://api.github.com/repos/stripe/topmodel/stargazers","contributors_url":"https://api.github.com/repos/stripe/topmodel/contributors","subscribers_url":"https://api.github.com/repos/stripe/topmodel/subscribers","subscription_url":"https://api.github.com/repos/stripe/topmodel/subscription","commits_url":"https://api.github.com/repos/stripe/topmodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/topmodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/topmodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/topmodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/topmodel/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/topmodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/topmodel/merges","archive_url":"https://api.github.com/repos/stripe/topmodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/topmodel/downloads","issues_url":"https://api.github.com/repos/stripe/topmodel/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/topmodel/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/topmodel/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/topmodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/topmodel/labels{/name}","releases_url":"https://api.github.com/repos/stripe/topmodel/releases{/id}","created_at":"2014-11-22T17:07:36Z","updated_at":"2015-06-28T02:57:37Z","pushed_at":"2015-07-16T20:41:08Z","git_url":"git://github.com/stripe/topmodel.git","ssh_url":"git@github.com:stripe/topmodel.git","clone_url":"https://github.com/stripe/topmodel.git","svn_url":"https://github.com/stripe/topmodel","homepage":"","size":1188,"stargazers_count":81,"watchers_count":81,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":3,"forks":10,"open_issues":3,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stripe/topmodel/pulls/10"},"html":{"href":"https://github.com/stripe/topmodel/pull/10"},"issue":{"href":"https://api.github.com/repos/stripe/topmodel/issues/10"},"comments":{"href":"https://api.github.com/repos/stripe/topmodel/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/stripe/topmodel/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/stripe/topmodel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stripe/topmodel/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/stripe/topmodel/statuses/41b030aa44ce075a07e105eaa87b598fafaf3d3a"}}}}