{"action":"created","comment":{"url":"https://api.github.com/repos/biopython/biopython/pulls/comments/82232105","pull_request_review_id":3154038,"id":82232105,"diff_hunk":"@@ -25,6 +25,58 @@ class MaxEntropy(object):\n     alphas       List of the weights for each feature.\n     feature_fns  List of the feature functions.\n \n+    Car data from example Naive Bayes Classifier example by Eric Meisner November 22, 2003\n+    http://www.inf.u-szeged.hu/~ormandi/teaching\n+    >>> from Bio.MaxEntropy import train, classify\n+    >>> xcar = [\n+    ...     ['Red', 'Sports', 'Domestic'],\n+    ...     ['Red', 'Sports', 'Domestic'],\n+    ...     ['Red', 'Sports', 'Domestic'],\n+    ...     ['Yellow', 'Sports', 'Domestic'],\n+    ...     ['Yellow', 'Sports', 'Imported'],\n+    ...     ['Yellow', 'SUV', 'Imported'],\n+    ...     ['Yellow', 'SUV', 'Imported'],\n+    ...     ['Yellow', 'SUV', 'Domestic'],\n+    ...     ['Red', 'SUV', 'Imported'],\n+    ...     ['Red', 'Sports', 'Imported']]\n+    >>> ycar = ['Yes','No','Yes','No','Yes','No','Yes','No','No','Yes']\n+\n+    Requires some rules or features\n+    >>> def udf1(ts, cl):\n+    ...     if ts[0] == 'Red':\n+    ...         return 0\n+    ...     else:\n+    ...         return 1","path":"Bio/MaxEntropy.py","position":25,"original_position":25,"commit_id":"1db33b200e278a45030e7109142cde0972ea04fa","original_commit_id":"1db33b200e278a45030e7109142cde0972ea04fa","user":{"login":"vincentdavis","id":232564,"avatar_url":"https://avatars.githubusercontent.com/u/232564?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdavis","html_url":"https://github.com/vincentdavis","followers_url":"https://api.github.com/users/vincentdavis/followers","following_url":"https://api.github.com/users/vincentdavis/following{/other_user}","gists_url":"https://api.github.com/users/vincentdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdavis/subscriptions","organizations_url":"https://api.github.com/users/vincentdavis/orgs","repos_url":"https://api.github.com/users/vincentdavis/repos","events_url":"https://api.github.com/users/vincentdavis/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdavis/received_events","type":"User","site_admin":false},"body":"actually: return ts[0] != 'Red'","created_at":"2016-10-06T16:45:00Z","updated_at":"2016-10-06T16:45:00Z","html_url":"https://github.com/biopython/biopython/pull/950#discussion_r82232105","pull_request_url":"https://api.github.com/repos/biopython/biopython/pulls/950","_links":{"self":{"href":"https://api.github.com/repos/biopython/biopython/pulls/comments/82232105"},"html":{"href":"https://github.com/biopython/biopython/pull/950#discussion_r82232105"},"pull_request":{"href":"https://api.github.com/repos/biopython/biopython/pulls/950"}}},"pull_request":{"url":"https://api.github.com/repos/biopython/biopython/pulls/950","id":87487677,"html_url":"https://github.com/biopython/biopython/pull/950","diff_url":"https://github.com/biopython/biopython/pull/950.diff","patch_url":"https://github.com/biopython/biopython/pull/950.patch","issue_url":"https://api.github.com/repos/biopython/biopython/issues/950","number":950,"state":"open","locked":false,"title":"Convert MaxEntropy selftest to doctest","user":{"login":"vincentdavis","id":232564,"avatar_url":"https://avatars.githubusercontent.com/u/232564?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdavis","html_url":"https://github.com/vincentdavis","followers_url":"https://api.github.com/users/vincentdavis/followers","following_url":"https://api.github.com/users/vincentdavis/following{/other_user}","gists_url":"https://api.github.com/users/vincentdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdavis/subscriptions","organizations_url":"https://api.github.com/users/vincentdavis/orgs","repos_url":"https://api.github.com/users/vincentdavis/repos","events_url":"https://api.github.com/users/vincentdavis/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdavis/received_events","type":"User","site_admin":false},"body":"Remove self test from MaxEntropy, duplicates test_maxentropy.py, there are no doc tests.\r\nsee issue #820 ","created_at":"2016-09-30T12:48:18Z","updated_at":"2016-10-06T16:45:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fc0765b57d663d974eba0a0dcbd42f694f24fb5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/biopython/biopython/pulls/950/commits","review_comments_url":"https://api.github.com/repos/biopython/biopython/pulls/950/comments","review_comment_url":"https://api.github.com/repos/biopython/biopython/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biopython/biopython/issues/950/comments","statuses_url":"https://api.github.com/repos/biopython/biopython/statuses/1db33b200e278a45030e7109142cde0972ea04fa","head":{"label":"vincentdavis:Move_selftests_misc","ref":"Move_selftests_misc","sha":"1db33b200e278a45030e7109142cde0972ea04fa","user":{"login":"vincentdavis","id":232564,"avatar_url":"https://avatars.githubusercontent.com/u/232564?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdavis","html_url":"https://github.com/vincentdavis","followers_url":"https://api.github.com/users/vincentdavis/followers","following_url":"https://api.github.com/users/vincentdavis/following{/other_user}","gists_url":"https://api.github.com/users/vincentdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdavis/subscriptions","organizations_url":"https://api.github.com/users/vincentdavis/orgs","repos_url":"https://api.github.com/users/vincentdavis/repos","events_url":"https://api.github.com/users/vincentdavis/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdavis/received_events","type":"User","site_admin":false},"repo":{"id":69491553,"name":"biopython","full_name":"vincentdavis/biopython","owner":{"login":"vincentdavis","id":232564,"avatar_url":"https://avatars.githubusercontent.com/u/232564?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdavis","html_url":"https://github.com/vincentdavis","followers_url":"https://api.github.com/users/vincentdavis/followers","following_url":"https://api.github.com/users/vincentdavis/following{/other_user}","gists_url":"https://api.github.com/users/vincentdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdavis/subscriptions","organizations_url":"https://api.github.com/users/vincentdavis/orgs","repos_url":"https://api.github.com/users/vincentdavis/repos","events_url":"https://api.github.com/users/vincentdavis/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdavis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vincentdavis/biopython","description":"Official git repository for Biopython (converted from CVS)","fork":true,"url":"https://api.github.com/repos/vincentdavis/biopython","forks_url":"https://api.github.com/repos/vincentdavis/biopython/forks","keys_url":"https://api.github.com/repos/vincentdavis/biopython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vincentdavis/biopython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vincentdavis/biopython/teams","hooks_url":"https://api.github.com/repos/vincentdavis/biopython/hooks","issue_events_url":"https://api.github.com/repos/vincentdavis/biopython/issues/events{/number}","events_url":"https://api.github.com/repos/vincentdavis/biopython/events","assignees_url":"https://api.github.com/repos/vincentdavis/biopython/assignees{/user}","branches_url":"https://api.github.com/repos/vincentdavis/biopython/branches{/branch}","tags_url":"https://api.github.com/repos/vincentdavis/biopython/tags","blobs_url":"https://api.github.com/repos/vincentdavis/biopython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vincentdavis/biopython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vincentdavis/biopython/git/refs{/sha}","trees_url":"https://api.github.com/repos/vincentdavis/biopython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vincentdavis/biopython/statuses/{sha}","languages_url":"https://api.github.com/repos/vincentdavis/biopython/languages","stargazers_url":"https://api.github.com/repos/vincentdavis/biopython/stargazers","contributors_url":"https://api.github.com/repos/vincentdavis/biopython/contributors","subscribers_url":"https://api.github.com/repos/vincentdavis/biopython/subscribers","subscription_url":"https://api.github.com/repos/vincentdavis/biopython/subscription","commits_url":"https://api.github.com/repos/vincentdavis/biopython/commits{/sha}","git_commits_url":"https://api.github.com/repos/vincentdavis/biopython/git/commits{/sha}","comments_url":"https://api.github.com/repos/vincentdavis/biopython/comments{/number}","issue_comment_url":"https://api.github.com/repos/vincentdavis/biopython/issues/comments{/number}","contents_url":"https://api.github.com/repos/vincentdavis/biopython/contents/{+path}","compare_url":"https://api.github.com/repos/vincentdavis/biopython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vincentdavis/biopython/merges","archive_url":"https://api.github.com/repos/vincentdavis/biopython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vincentdavis/biopython/downloads","issues_url":"https://api.github.com/repos/vincentdavis/biopython/issues{/number}","pulls_url":"https://api.github.com/repos/vincentdavis/biopython/pulls{/number}","milestones_url":"https://api.github.com/repos/vincentdavis/biopython/milestones{/number}","notifications_url":"https://api.github.com/repos/vincentdavis/biopython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vincentdavis/biopython/labels{/name}","releases_url":"https://api.github.com/repos/vincentdavis/biopython/releases{/id}","deployments_url":"https://api.github.com/repos/vincentdavis/biopython/deployments","created_at":"2016-09-28T18:22:57Z","updated_at":"2016-09-28T18:23:09Z","pushed_at":"2016-10-06T16:05:25Z","git_url":"git://github.com/vincentdavis/biopython.git","ssh_url":"git@github.com:vincentdavis/biopython.git","clone_url":"https://github.com/vincentdavis/biopython.git","svn_url":"https://github.com/vincentdavis/biopython","homepage":"http://biopython.org/","size":40495,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"biopython:master","ref":"master","sha":"857c8913ea09ac37a59eead088183ae12fed2947","user":{"login":"biopython","id":54555,"avatar_url":"https://avatars.githubusercontent.com/u/54555?v=3","gravatar_id":"","url":"https://api.github.com/users/biopython","html_url":"https://github.com/biopython","followers_url":"https://api.github.com/users/biopython/followers","following_url":"https://api.github.com/users/biopython/following{/other_user}","gists_url":"https://api.github.com/users/biopython/gists{/gist_id}","starred_url":"https://api.github.com/users/biopython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biopython/subscriptions","organizations_url":"https://api.github.com/users/biopython/orgs","repos_url":"https://api.github.com/users/biopython/repos","events_url":"https://api.github.com/users/biopython/events{/privacy}","received_events_url":"https://api.github.com/users/biopython/received_events","type":"Organization","site_admin":false},"repo":{"id":151541,"name":"biopython","full_name":"biopython/biopython","owner":{"login":"biopython","id":54555,"avatar_url":"https://avatars.githubusercontent.com/u/54555?v=3","gravatar_id":"","url":"https://api.github.com/users/biopython","html_url":"https://github.com/biopython","followers_url":"https://api.github.com/users/biopython/followers","following_url":"https://api.github.com/users/biopython/following{/other_user}","gists_url":"https://api.github.com/users/biopython/gists{/gist_id}","starred_url":"https://api.github.com/users/biopython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biopython/subscriptions","organizations_url":"https://api.github.com/users/biopython/orgs","repos_url":"https://api.github.com/users/biopython/repos","events_url":"https://api.github.com/users/biopython/events{/privacy}","received_events_url":"https://api.github.com/users/biopython/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biopython/biopython","description":"Official git repository for Biopython (converted from CVS)","fork":false,"url":"https://api.github.com/repos/biopython/biopython","forks_url":"https://api.github.com/repos/biopython/biopython/forks","keys_url":"https://api.github.com/repos/biopython/biopython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biopython/biopython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biopython/biopython/teams","hooks_url":"https://api.github.com/repos/biopython/biopython/hooks","issue_events_url":"https://api.github.com/repos/biopython/biopython/issues/events{/number}","events_url":"https://api.github.com/repos/biopython/biopython/events","assignees_url":"https://api.github.com/repos/biopython/biopython/assignees{/user}","branches_url":"https://api.github.com/repos/biopython/biopython/branches{/branch}","tags_url":"https://api.github.com/repos/biopython/biopython/tags","blobs_url":"https://api.github.com/repos/biopython/biopython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biopython/biopython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biopython/biopython/git/refs{/sha}","trees_url":"https://api.github.com/repos/biopython/biopython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biopython/biopython/statuses/{sha}","languages_url":"https://api.github.com/repos/biopython/biopython/languages","stargazers_url":"https://api.github.com/repos/biopython/biopython/stargazers","contributors_url":"https://api.github.com/repos/biopython/biopython/contributors","subscribers_url":"https://api.github.com/repos/biopython/biopython/subscribers","subscription_url":"https://api.github.com/repos/biopython/biopython/subscription","commits_url":"https://api.github.com/repos/biopython/biopython/commits{/sha}","git_commits_url":"https://api.github.com/repos/biopython/biopython/git/commits{/sha}","comments_url":"https://api.github.com/repos/biopython/biopython/comments{/number}","issue_comment_url":"https://api.github.com/repos/biopython/biopython/issues/comments{/number}","contents_url":"https://api.github.com/repos/biopython/biopython/contents/{+path}","compare_url":"https://api.github.com/repos/biopython/biopython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biopython/biopython/merges","archive_url":"https://api.github.com/repos/biopython/biopython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biopython/biopython/downloads","issues_url":"https://api.github.com/repos/biopython/biopython/issues{/number}","pulls_url":"https://api.github.com/repos/biopython/biopython/pulls{/number}","milestones_url":"https://api.github.com/repos/biopython/biopython/milestones{/number}","notifications_url":"https://api.github.com/repos/biopython/biopython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biopython/biopython/labels{/name}","releases_url":"https://api.github.com/repos/biopython/biopython/releases{/id}","deployments_url":"https://api.github.com/repos/biopython/biopython/deployments","created_at":"2009-03-15T21:09:53Z","updated_at":"2016-10-06T12:37:21Z","pushed_at":"2016-10-06T16:37:06Z","git_url":"git://github.com/biopython/biopython.git","ssh_url":"git@github.com:biopython/biopython.git","clone_url":"https://github.com/biopython/biopython.git","svn_url":"https://github.com/biopython/biopython","homepage":"http://biopython.org/","size":56198,"stargazers_count":856,"watchers_count":856,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":533,"mirror_url":null,"open_issues_count":215,"forks":533,"open_issues":215,"watchers":856,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biopython/biopython/pulls/950"},"html":{"href":"https://github.com/biopython/biopython/pull/950"},"issue":{"href":"https://api.github.com/repos/biopython/biopython/issues/950"},"comments":{"href":"https://api.github.com/repos/biopython/biopython/issues/950/comments"},"review_comments":{"href":"https://api.github.com/repos/biopython/biopython/pulls/950/comments"},"review_comment":{"href":"https://api.github.com/repos/biopython/biopython/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biopython/biopython/pulls/950/commits"},"statuses":{"href":"https://api.github.com/repos/biopython/biopython/statuses/1db33b200e278a45030e7109142cde0972ea04fa"}}}}
{"actor":{"display_login":"vincentdavis"}}