{"action":"opened","number":147,"pull_request":{"url":"https://api.github.com/repos/danforthcenter/plantcv/pulls/147","id":119210732,"html_url":"https://github.com/danforthcenter/plantcv/pull/147","diff_url":"https://github.com/danforthcenter/plantcv/pull/147.diff","patch_url":"https://github.com/danforthcenter/plantcv/pull/147.patch","issue_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/147","number":147,"state":"open","locked":false,"title":"Added a new naive Bayes training method","user":{"login":"nfahlgren","id":6233508,"avatar_url":"https://avatars2.githubusercontent.com/u/6233508?v=3","gravatar_id":"","url":"https://api.github.com/users/nfahlgren","html_url":"https://github.com/nfahlgren","followers_url":"https://api.github.com/users/nfahlgren/followers","following_url":"https://api.github.com/users/nfahlgren/following{/other_user}","gists_url":"https://api.github.com/users/nfahlgren/gists{/gist_id}","starred_url":"https://api.github.com/users/nfahlgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfahlgren/subscriptions","organizations_url":"https://api.github.com/users/nfahlgren/orgs","repos_url":"https://api.github.com/users/nfahlgren/repos","events_url":"https://api.github.com/users/nfahlgren/events{/privacy}","received_events_url":"https://api.github.com/users/nfahlgren/received_events","type":"User","site_admin":false},"body":"The new method can classify pixels for two or more classes given a\r\nsample of pixel RGB values for each class, using a color picker tool.\r\n\r\n<!--- \r\nThanks for contributing! Instructions are in comments, like this.\r\n \r\nPlease edit this template before submitting a new pull request.\r\n-->\r\n\r\n<!--- \r\nTitle: Please provide a descriptive title that summarizes your pull request. \r\n-->\r\n\r\n<!---\r\nLabels: Please select one or more relevant tags (menu on the right).\r\n--->\r\n\r\n### Description\r\n<!--- \r\nDescribe your changes, for example:\r\n* What did you change/add and why?\r\n* Does it close an open issue? (if so, please link to the issue)\r\n* Have you tested the changes, and if so, how?\r\n-->\r\n\r\nThis pull request adds a new machine learning training method that can be used with the existing naive Bayes classifier. The new naive Bayes training method differs from the existing method in two ways. First, the existing method `naive_bayes` explicitly defines two classes, plant and background, while the new method `naive_bayes_multiclass` allows for two or more user-defined classes. Second, the existing method is trained given a set of input RGB and binary mask images, while the new method is trained given a text file containing a table of pixel RGB values for each class.\r\n\r\nIn addition to adding the new training method as a function, a unit test was added, and `plantcv-train.py` was updated to support the new and existing method.\r\n\r\nDocumentation will need to be updated to address the new feature and these changes.\r\n\r\n### Types of changes\r\n<!---\r\nIs this a: \r\n* Bug fix?\r\n* New feature?\r\n* Does it change existing functionality?\r\n-->\r\nNew feature\r\n\r\n### Checklist:\r\n\r\n- [x] Relevant tests (and test data) have been added or updated and passed.\r\n- [ ] The documentation was added or updated.\r\n- [x] Relevant issues were updated or added.\r\n","created_at":"2017-05-05T16:20:36Z","updated_at":"2017-05-05T16:20:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/danforthcenter/plantcv/milestones/4","html_url":"https://github.com/danforthcenter/plantcv/milestone/4","labels_url":"https://api.github.com/repos/danforthcenter/plantcv/milestones/4/labels","id":1878658,"number":4,"title":"PlantCV release v2.0","description":"We are working on the second major release of PlantCV. We will use this milestone to organize open issues that directly relate to the release v2.0 so that everyone can see what still needs to be done.","creator":{"login":"nfahlgren","id":6233508,"avatar_url":"https://avatars2.githubusercontent.com/u/6233508?v=3","gravatar_id":"","url":"https://api.github.com/users/nfahlgren","html_url":"https://github.com/nfahlgren","followers_url":"https://api.github.com/users/nfahlgren/followers","following_url":"https://api.github.com/users/nfahlgren/following{/other_user}","gists_url":"https://api.github.com/users/nfahlgren/gists{/gist_id}","starred_url":"https://api.github.com/users/nfahlgren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfahlgren/subscriptions","organizations_url":"https://api.github.com/users/nfahlgren/orgs","repos_url":"https://api.github.com/users/nfahlgren/repos","events_url":"https://api.github.com/users/nfahlgren/events{/privacy}","received_events_url":"https://api.github.com/users/nfahlgren/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":63,"state":"open","created_at":"2016-07-12T15:12:45Z","updated_at":"2017-05-05T16:20:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/danforthcenter/plantcv/pulls/147/commits","review_comments_url":"https://api.github.com/repos/danforthcenter/plantcv/pulls/147/comments","review_comment_url":"https://api.github.com/repos/danforthcenter/plantcv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/147/comments","statuses_url":"https://api.github.com/repos/danforthcenter/plantcv/statuses/86ac6632c5c84d1b5a0018d395542d649d27ca6a","head":{"label":"danforthcenter:feature-naive-bayes-multiclass","ref":"feature-naive-bayes-multiclass","sha":"86ac6632c5c84d1b5a0018d395542d649d27ca6a","user":{"login":"danforthcenter","id":9678079,"avatar_url":"https://avatars3.githubusercontent.com/u/9678079?v=3","gravatar_id":"","url":"https://api.github.com/users/danforthcenter","html_url":"https://github.com/danforthcenter","followers_url":"https://api.github.com/users/danforthcenter/followers","following_url":"https://api.github.com/users/danforthcenter/following{/other_user}","gists_url":"https://api.github.com/users/danforthcenter/gists{/gist_id}","starred_url":"https://api.github.com/users/danforthcenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danforthcenter/subscriptions","organizations_url":"https://api.github.com/users/danforthcenter/orgs","repos_url":"https://api.github.com/users/danforthcenter/repos","events_url":"https://api.github.com/users/danforthcenter/events{/privacy}","received_events_url":"https://api.github.com/users/danforthcenter/received_events","type":"Organization","site_admin":false},"repo":{"id":17755890,"name":"plantcv","full_name":"danforthcenter/plantcv","owner":{"login":"danforthcenter","id":9678079,"avatar_url":"https://avatars3.githubusercontent.com/u/9678079?v=3","gravatar_id":"","url":"https://api.github.com/users/danforthcenter","html_url":"https://github.com/danforthcenter","followers_url":"https://api.github.com/users/danforthcenter/followers","following_url":"https://api.github.com/users/danforthcenter/following{/other_user}","gists_url":"https://api.github.com/users/danforthcenter/gists{/gist_id}","starred_url":"https://api.github.com/users/danforthcenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danforthcenter/subscriptions","organizations_url":"https://api.github.com/users/danforthcenter/orgs","repos_url":"https://api.github.com/users/danforthcenter/repos","events_url":"https://api.github.com/users/danforthcenter/events{/privacy}","received_events_url":"https://api.github.com/users/danforthcenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/danforthcenter/plantcv","description":"Plant image analysis using OpenCV","fork":false,"url":"https://api.github.com/repos/danforthcenter/plantcv","forks_url":"https://api.github.com/repos/danforthcenter/plantcv/forks","keys_url":"https://api.github.com/repos/danforthcenter/plantcv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danforthcenter/plantcv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danforthcenter/plantcv/teams","hooks_url":"https://api.github.com/repos/danforthcenter/plantcv/hooks","issue_events_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/events{/number}","events_url":"https://api.github.com/repos/danforthcenter/plantcv/events","assignees_url":"https://api.github.com/repos/danforthcenter/plantcv/assignees{/user}","branches_url":"https://api.github.com/repos/danforthcenter/plantcv/branches{/branch}","tags_url":"https://api.github.com/repos/danforthcenter/plantcv/tags","blobs_url":"https://api.github.com/repos/danforthcenter/plantcv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danforthcenter/plantcv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danforthcenter/plantcv/git/refs{/sha}","trees_url":"https://api.github.com/repos/danforthcenter/plantcv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danforthcenter/plantcv/statuses/{sha}","languages_url":"https://api.github.com/repos/danforthcenter/plantcv/languages","stargazers_url":"https://api.github.com/repos/danforthcenter/plantcv/stargazers","contributors_url":"https://api.github.com/repos/danforthcenter/plantcv/contributors","subscribers_url":"https://api.github.com/repos/danforthcenter/plantcv/subscribers","subscription_url":"https://api.github.com/repos/danforthcenter/plantcv/subscription","commits_url":"https://api.github.com/repos/danforthcenter/plantcv/commits{/sha}","git_commits_url":"https://api.github.com/repos/danforthcenter/plantcv/git/commits{/sha}","comments_url":"https://api.github.com/repos/danforthcenter/plantcv/comments{/number}","issue_comment_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/comments{/number}","contents_url":"https://api.github.com/repos/danforthcenter/plantcv/contents/{+path}","compare_url":"https://api.github.com/repos/danforthcenter/plantcv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danforthcenter/plantcv/merges","archive_url":"https://api.github.com/repos/danforthcenter/plantcv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danforthcenter/plantcv/downloads","issues_url":"https://api.github.com/repos/danforthcenter/plantcv/issues{/number}","pulls_url":"https://api.github.com/repos/danforthcenter/plantcv/pulls{/number}","milestones_url":"https://api.github.com/repos/danforthcenter/plantcv/milestones{/number}","notifications_url":"https://api.github.com/repos/danforthcenter/plantcv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danforthcenter/plantcv/labels{/name}","releases_url":"https://api.github.com/repos/danforthcenter/plantcv/releases{/id}","deployments_url":"https://api.github.com/repos/danforthcenter/plantcv/deployments","created_at":"2014-03-14T18:24:23Z","updated_at":"2017-04-27T15:18:12Z","pushed_at":"2017-05-03T18:12:15Z","git_url":"git://github.com/danforthcenter/plantcv.git","ssh_url":"git@github.com:danforthcenter/plantcv.git","clone_url":"https://github.com/danforthcenter/plantcv.git","svn_url":"https://github.com/danforthcenter/plantcv","homepage":"","size":239589,"stargazers_count":37,"watchers_count":37,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":12,"forks":27,"open_issues":12,"watchers":37,"default_branch":"master"}},"base":{"label":"danforthcenter:master","ref":"master","sha":"768f96b945cf3923eeabf70aca129559229c3d55","user":{"login":"danforthcenter","id":9678079,"avatar_url":"https://avatars3.githubusercontent.com/u/9678079?v=3","gravatar_id":"","url":"https://api.github.com/users/danforthcenter","html_url":"https://github.com/danforthcenter","followers_url":"https://api.github.com/users/danforthcenter/followers","following_url":"https://api.github.com/users/danforthcenter/following{/other_user}","gists_url":"https://api.github.com/users/danforthcenter/gists{/gist_id}","starred_url":"https://api.github.com/users/danforthcenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danforthcenter/subscriptions","organizations_url":"https://api.github.com/users/danforthcenter/orgs","repos_url":"https://api.github.com/users/danforthcenter/repos","events_url":"https://api.github.com/users/danforthcenter/events{/privacy}","received_events_url":"https://api.github.com/users/danforthcenter/received_events","type":"Organization","site_admin":false},"repo":{"id":17755890,"name":"plantcv","full_name":"danforthcenter/plantcv","owner":{"login":"danforthcenter","id":9678079,"avatar_url":"https://avatars3.githubusercontent.com/u/9678079?v=3","gravatar_id":"","url":"https://api.github.com/users/danforthcenter","html_url":"https://github.com/danforthcenter","followers_url":"https://api.github.com/users/danforthcenter/followers","following_url":"https://api.github.com/users/danforthcenter/following{/other_user}","gists_url":"https://api.github.com/users/danforthcenter/gists{/gist_id}","starred_url":"https://api.github.com/users/danforthcenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danforthcenter/subscriptions","organizations_url":"https://api.github.com/users/danforthcenter/orgs","repos_url":"https://api.github.com/users/danforthcenter/repos","events_url":"https://api.github.com/users/danforthcenter/events{/privacy}","received_events_url":"https://api.github.com/users/danforthcenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/danforthcenter/plantcv","description":"Plant image analysis using OpenCV","fork":false,"url":"https://api.github.com/repos/danforthcenter/plantcv","forks_url":"https://api.github.com/repos/danforthcenter/plantcv/forks","keys_url":"https://api.github.com/repos/danforthcenter/plantcv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danforthcenter/plantcv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danforthcenter/plantcv/teams","hooks_url":"https://api.github.com/repos/danforthcenter/plantcv/hooks","issue_events_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/events{/number}","events_url":"https://api.github.com/repos/danforthcenter/plantcv/events","assignees_url":"https://api.github.com/repos/danforthcenter/plantcv/assignees{/user}","branches_url":"https://api.github.com/repos/danforthcenter/plantcv/branches{/branch}","tags_url":"https://api.github.com/repos/danforthcenter/plantcv/tags","blobs_url":"https://api.github.com/repos/danforthcenter/plantcv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danforthcenter/plantcv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danforthcenter/plantcv/git/refs{/sha}","trees_url":"https://api.github.com/repos/danforthcenter/plantcv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danforthcenter/plantcv/statuses/{sha}","languages_url":"https://api.github.com/repos/danforthcenter/plantcv/languages","stargazers_url":"https://api.github.com/repos/danforthcenter/plantcv/stargazers","contributors_url":"https://api.github.com/repos/danforthcenter/plantcv/contributors","subscribers_url":"https://api.github.com/repos/danforthcenter/plantcv/subscribers","subscription_url":"https://api.github.com/repos/danforthcenter/plantcv/subscription","commits_url":"https://api.github.com/repos/danforthcenter/plantcv/commits{/sha}","git_commits_url":"https://api.github.com/repos/danforthcenter/plantcv/git/commits{/sha}","comments_url":"https://api.github.com/repos/danforthcenter/plantcv/comments{/number}","issue_comment_url":"https://api.github.com/repos/danforthcenter/plantcv/issues/comments{/number}","contents_url":"https://api.github.com/repos/danforthcenter/plantcv/contents/{+path}","compare_url":"https://api.github.com/repos/danforthcenter/plantcv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danforthcenter/plantcv/merges","archive_url":"https://api.github.com/repos/danforthcenter/plantcv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danforthcenter/plantcv/downloads","issues_url":"https://api.github.com/repos/danforthcenter/plantcv/issues{/number}","pulls_url":"https://api.github.com/repos/danforthcenter/plantcv/pulls{/number}","milestones_url":"https://api.github.com/repos/danforthcenter/plantcv/milestones{/number}","notifications_url":"https://api.github.com/repos/danforthcenter/plantcv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danforthcenter/plantcv/labels{/name}","releases_url":"https://api.github.com/repos/danforthcenter/plantcv/releases{/id}","deployments_url":"https://api.github.com/repos/danforthcenter/plantcv/deployments","created_at":"2014-03-14T18:24:23Z","updated_at":"2017-04-27T15:18:12Z","pushed_at":"2017-05-03T18:12:15Z","git_url":"git://github.com/danforthcenter/plantcv.git","ssh_url":"git@github.com:danforthcenter/plantcv.git","clone_url":"https://github.com/danforthcenter/plantcv.git","svn_url":"https://github.com/danforthcenter/plantcv","homepage":"","size":239589,"stargazers_count":37,"watchers_count":37,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":27,"mirror_url":null,"open_issues_count":12,"forks":27,"open_issues":12,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danforthcenter/plantcv/pulls/147"},"html":{"href":"https://github.com/danforthcenter/plantcv/pull/147"},"issue":{"href":"https://api.github.com/repos/danforthcenter/plantcv/issues/147"},"comments":{"href":"https://api.github.com/repos/danforthcenter/plantcv/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/danforthcenter/plantcv/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/danforthcenter/plantcv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danforthcenter/plantcv/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/danforthcenter/plantcv/statuses/86ac6632c5c84d1b5a0018d395542d649d27ca6a"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1129,"deletions":54,"changed_files":6}}
{"actor":{"display_login":"nfahlgren"}}