{"action":"opened","number":126,"pull_request":{"url":"https://api.github.com/repos/allenai/nlpstack/pulls/126","id":33483081,"html_url":"https://github.com/allenai/nlpstack/pull/126","diff_url":"https://github.com/allenai/nlpstack/pull/126.diff","patch_url":"https://github.com/allenai/nlpstack/pull/126.patch","issue_url":"https://api.github.com/repos/allenai/nlpstack/issues/126","number":126,"state":"open","locked":false,"title":"Justifying Classifier Outcomes","user":{"login":"sbhaktha","id":5631150,"avatar_url":"https://avatars.githubusercontent.com/u/5631150?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhaktha","html_url":"https://github.com/sbhaktha","followers_url":"https://api.github.com/users/sbhaktha/followers","following_url":"https://api.github.com/users/sbhaktha/following{/other_user}","gists_url":"https://api.github.com/users/sbhaktha/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhaktha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhaktha/subscriptions","organizations_url":"https://api.github.com/users/sbhaktha/orgs","repos_url":"https://api.github.com/users/sbhaktha/repos","events_url":"https://api.github.com/users/sbhaktha/events{/privacy}","received_events_url":"https://api.github.com/users/sbhaktha/received_events","type":"User","site_admin":false},"body":"@mhrmm : Here it is. Pruned Random Forest justification to top (highest KL divergence) decision tree node as discussed.\r\n\r\nOutput looks like this:\r\n\r\n```\r\nWho was made the first honorary citizen of the U.S. ?\r\nGood families, classified as weird:\r\n  nexus[nexus] -> ROOT:made[VERB]\r\nClassifier Explanation:\r\nRandom Forest with 12 trees, of which 12 trees voted for the current outcome\r\nTop 1 decision tree justification(s):\r\n[\r\n[\r\n  [ child1.cpos = VERB ],\r\n  [ self.cpos = nexus ],\r\n  [ child.cpos <> NOUN ],\r\n  [ child.keyword <> {have, are, is, what, must, do, has, did, can, on, me, from, were, let} ],\r\n  [ child.suffix <> {y, ing, tion, al, ion, ive} ],\r\n  [ child1.alabel <> DEP ],\r\n  [ child1.keyword <> {down, in, would, own, had, to, most, was, there, been, should, with, could, into, does, when, of, and, the} ],\r\n  [ child1.suffix <> {est, s, ed, ic, ment, er} ],\r\n  [ child3.alabel <> DEP ],\r\n  [ children.card <> 0 ],\r\n  [ parent.keyword <> of ],\r\n  [ parent2.alabel <> PUNCT ]\r\n] ]\r\n```","created_at":"2015-04-16T19:14:02Z","updated_at":"2015-04-16T19:14:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"mhrmm","id":1376035,"avatar_url":"https://avatars.githubusercontent.com/u/1376035?v=3","gravatar_id":"","url":"https://api.github.com/users/mhrmm","html_url":"https://github.com/mhrmm","followers_url":"https://api.github.com/users/mhrmm/followers","following_url":"https://api.github.com/users/mhrmm/following{/other_user}","gists_url":"https://api.github.com/users/mhrmm/gists{/gist_id}","starred_url":"https://api.github.com/users/mhrmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhrmm/subscriptions","organizations_url":"https://api.github.com/users/mhrmm/orgs","repos_url":"https://api.github.com/users/mhrmm/repos","events_url":"https://api.github.com/users/mhrmm/events{/privacy}","received_events_url":"https://api.github.com/users/mhrmm/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/allenai/nlpstack/pulls/126/commits","review_comments_url":"https://api.github.com/repos/allenai/nlpstack/pulls/126/comments","review_comment_url":"https://api.github.com/repos/allenai/nlpstack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allenai/nlpstack/issues/126/comments","statuses_url":"https://api.github.com/repos/allenai/nlpstack/statuses/ca59c2e520f1bd19c037f24caff5843a872074b5","head":{"label":"sbhaktha:justify","ref":"justify","sha":"ca59c2e520f1bd19c037f24caff5843a872074b5","user":{"login":"sbhaktha","id":5631150,"avatar_url":"https://avatars.githubusercontent.com/u/5631150?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhaktha","html_url":"https://github.com/sbhaktha","followers_url":"https://api.github.com/users/sbhaktha/followers","following_url":"https://api.github.com/users/sbhaktha/following{/other_user}","gists_url":"https://api.github.com/users/sbhaktha/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhaktha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhaktha/subscriptions","organizations_url":"https://api.github.com/users/sbhaktha/orgs","repos_url":"https://api.github.com/users/sbhaktha/repos","events_url":"https://api.github.com/users/sbhaktha/events{/privacy}","received_events_url":"https://api.github.com/users/sbhaktha/received_events","type":"User","site_admin":false},"repo":{"id":31919534,"name":"nlpstack","full_name":"sbhaktha/nlpstack","owner":{"login":"sbhaktha","id":5631150,"avatar_url":"https://avatars.githubusercontent.com/u/5631150?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhaktha","html_url":"https://github.com/sbhaktha","followers_url":"https://api.github.com/users/sbhaktha/followers","following_url":"https://api.github.com/users/sbhaktha/following{/other_user}","gists_url":"https://api.github.com/users/sbhaktha/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhaktha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhaktha/subscriptions","organizations_url":"https://api.github.com/users/sbhaktha/orgs","repos_url":"https://api.github.com/users/sbhaktha/repos","events_url":"https://api.github.com/users/sbhaktha/events{/privacy}","received_events_url":"https://api.github.com/users/sbhaktha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbhaktha/nlpstack","description":"NLP toolkit (tokenizer, POS-tagger, parser, etc.)","fork":true,"url":"https://api.github.com/repos/sbhaktha/nlpstack","forks_url":"https://api.github.com/repos/sbhaktha/nlpstack/forks","keys_url":"https://api.github.com/repos/sbhaktha/nlpstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbhaktha/nlpstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbhaktha/nlpstack/teams","hooks_url":"https://api.github.com/repos/sbhaktha/nlpstack/hooks","issue_events_url":"https://api.github.com/repos/sbhaktha/nlpstack/issues/events{/number}","events_url":"https://api.github.com/repos/sbhaktha/nlpstack/events","assignees_url":"https://api.github.com/repos/sbhaktha/nlpstack/assignees{/user}","branches_url":"https://api.github.com/repos/sbhaktha/nlpstack/branches{/branch}","tags_url":"https://api.github.com/repos/sbhaktha/nlpstack/tags","blobs_url":"https://api.github.com/repos/sbhaktha/nlpstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbhaktha/nlpstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbhaktha/nlpstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbhaktha/nlpstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbhaktha/nlpstack/statuses/{sha}","languages_url":"https://api.github.com/repos/sbhaktha/nlpstack/languages","stargazers_url":"https://api.github.com/repos/sbhaktha/nlpstack/stargazers","contributors_url":"https://api.github.com/repos/sbhaktha/nlpstack/contributors","subscribers_url":"https://api.github.com/repos/sbhaktha/nlpstack/subscribers","subscription_url":"https://api.github.com/repos/sbhaktha/nlpstack/subscription","commits_url":"https://api.github.com/repos/sbhaktha/nlpstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbhaktha/nlpstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbhaktha/nlpstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbhaktha/nlpstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbhaktha/nlpstack/contents/{+path}","compare_url":"https://api.github.com/repos/sbhaktha/nlpstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbhaktha/nlpstack/merges","archive_url":"https://api.github.com/repos/sbhaktha/nlpstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbhaktha/nlpstack/downloads","issues_url":"https://api.github.com/repos/sbhaktha/nlpstack/issues{/number}","pulls_url":"https://api.github.com/repos/sbhaktha/nlpstack/pulls{/number}","milestones_url":"https://api.github.com/repos/sbhaktha/nlpstack/milestones{/number}","notifications_url":"https://api.github.com/repos/sbhaktha/nlpstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbhaktha/nlpstack/labels{/name}","releases_url":"https://api.github.com/repos/sbhaktha/nlpstack/releases{/id}","created_at":"2015-03-09T19:58:42Z","updated_at":"2015-03-09T19:58:43Z","pushed_at":"2015-04-16T19:11:07Z","git_url":"git://github.com/sbhaktha/nlpstack.git","ssh_url":"git@github.com:sbhaktha/nlpstack.git","clone_url":"https://github.com/sbhaktha/nlpstack.git","svn_url":"https://github.com/sbhaktha/nlpstack","homepage":"http://nlpstack.dev.allenai.org:8062/tools.html","size":1407,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"allenai:master","ref":"master","sha":"48ace227717d38f59b4228d206fef52fd0859602","user":{"login":"allenai","id":5667695,"avatar_url":"https://avatars.githubusercontent.com/u/5667695?v=3","gravatar_id":"","url":"https://api.github.com/users/allenai","html_url":"https://github.com/allenai","followers_url":"https://api.github.com/users/allenai/followers","following_url":"https://api.github.com/users/allenai/following{/other_user}","gists_url":"https://api.github.com/users/allenai/gists{/gist_id}","starred_url":"https://api.github.com/users/allenai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenai/subscriptions","organizations_url":"https://api.github.com/users/allenai/orgs","repos_url":"https://api.github.com/users/allenai/repos","events_url":"https://api.github.com/users/allenai/events{/privacy}","received_events_url":"https://api.github.com/users/allenai/received_events","type":"Organization","site_admin":false},"repo":{"id":13838096,"name":"nlpstack","full_name":"allenai/nlpstack","owner":{"login":"allenai","id":5667695,"avatar_url":"https://avatars.githubusercontent.com/u/5667695?v=3","gravatar_id":"","url":"https://api.github.com/users/allenai","html_url":"https://github.com/allenai","followers_url":"https://api.github.com/users/allenai/followers","following_url":"https://api.github.com/users/allenai/following{/other_user}","gists_url":"https://api.github.com/users/allenai/gists{/gist_id}","starred_url":"https://api.github.com/users/allenai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenai/subscriptions","organizations_url":"https://api.github.com/users/allenai/orgs","repos_url":"https://api.github.com/users/allenai/repos","events_url":"https://api.github.com/users/allenai/events{/privacy}","received_events_url":"https://api.github.com/users/allenai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allenai/nlpstack","description":"NLP toolkit (tokenizer, POS-tagger, parser, etc.)","fork":false,"url":"https://api.github.com/repos/allenai/nlpstack","forks_url":"https://api.github.com/repos/allenai/nlpstack/forks","keys_url":"https://api.github.com/repos/allenai/nlpstack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allenai/nlpstack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allenai/nlpstack/teams","hooks_url":"https://api.github.com/repos/allenai/nlpstack/hooks","issue_events_url":"https://api.github.com/repos/allenai/nlpstack/issues/events{/number}","events_url":"https://api.github.com/repos/allenai/nlpstack/events","assignees_url":"https://api.github.com/repos/allenai/nlpstack/assignees{/user}","branches_url":"https://api.github.com/repos/allenai/nlpstack/branches{/branch}","tags_url":"https://api.github.com/repos/allenai/nlpstack/tags","blobs_url":"https://api.github.com/repos/allenai/nlpstack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allenai/nlpstack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allenai/nlpstack/git/refs{/sha}","trees_url":"https://api.github.com/repos/allenai/nlpstack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allenai/nlpstack/statuses/{sha}","languages_url":"https://api.github.com/repos/allenai/nlpstack/languages","stargazers_url":"https://api.github.com/repos/allenai/nlpstack/stargazers","contributors_url":"https://api.github.com/repos/allenai/nlpstack/contributors","subscribers_url":"https://api.github.com/repos/allenai/nlpstack/subscribers","subscription_url":"https://api.github.com/repos/allenai/nlpstack/subscription","commits_url":"https://api.github.com/repos/allenai/nlpstack/commits{/sha}","git_commits_url":"https://api.github.com/repos/allenai/nlpstack/git/commits{/sha}","comments_url":"https://api.github.com/repos/allenai/nlpstack/comments{/number}","issue_comment_url":"https://api.github.com/repos/allenai/nlpstack/issues/comments{/number}","contents_url":"https://api.github.com/repos/allenai/nlpstack/contents/{+path}","compare_url":"https://api.github.com/repos/allenai/nlpstack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allenai/nlpstack/merges","archive_url":"https://api.github.com/repos/allenai/nlpstack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allenai/nlpstack/downloads","issues_url":"https://api.github.com/repos/allenai/nlpstack/issues{/number}","pulls_url":"https://api.github.com/repos/allenai/nlpstack/pulls{/number}","milestones_url":"https://api.github.com/repos/allenai/nlpstack/milestones{/number}","notifications_url":"https://api.github.com/repos/allenai/nlpstack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allenai/nlpstack/labels{/name}","releases_url":"https://api.github.com/repos/allenai/nlpstack/releases{/id}","created_at":"2013-10-24T16:43:22Z","updated_at":"2015-04-16T15:02:10Z","pushed_at":"2015-04-16T16:18:03Z","git_url":"git://github.com/allenai/nlpstack.git","ssh_url":"git@github.com:allenai/nlpstack.git","clone_url":"https://github.com/allenai/nlpstack.git","svn_url":"https://github.com/allenai/nlpstack","homepage":"http://nlpstack.dev.allenai.org:8062/tools.html","size":3142,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":19,"forks":4,"open_issues":19,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/allenai/nlpstack/pulls/126"},"html":{"href":"https://github.com/allenai/nlpstack/pull/126"},"issue":{"href":"https://api.github.com/repos/allenai/nlpstack/issues/126"},"comments":{"href":"https://api.github.com/repos/allenai/nlpstack/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/allenai/nlpstack/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/allenai/nlpstack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allenai/nlpstack/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/allenai/nlpstack/statuses/ca59c2e520f1bd19c037f24caff5843a872074b5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":9,"additions":682,"deletions":74,"changed_files":8}}