{"action":"opened","number":7169,"pull_request":{"url":"https://api.github.com/repos/opencv/opencv/pulls/7169","id":82716525,"html_url":"https://github.com/opencv/opencv/pull/7169","diff_url":"https://github.com/opencv/opencv/pull/7169.diff","patch_url":"https://github.com/opencv/opencv/pull/7169.patch","issue_url":"https://api.github.com/repos/opencv/opencv/issues/7169","number":7169,"state":"open","locked":false,"title":"expose 2 extra methods from ml::TrainData","user":{"login":"vpisarev","id":2110786,"avatar_url":"https://avatars.githubusercontent.com/u/2110786?v=3","gravatar_id":"","url":"https://api.github.com/users/vpisarev","html_url":"https://github.com/vpisarev","followers_url":"https://api.github.com/users/vpisarev/followers","following_url":"https://api.github.com/users/vpisarev/following{/other_user}","gists_url":"https://api.github.com/users/vpisarev/gists{/gist_id}","starred_url":"https://api.github.com/users/vpisarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpisarev/subscriptions","organizations_url":"https://api.github.com/users/vpisarev/orgs","repos_url":"https://api.github.com/users/vpisarev/repos","events_url":"https://api.github.com/users/vpisarev/events{/privacy}","received_events_url":"https://api.github.com/users/vpisarev/received_events","type":"User","site_admin":false},"body":"This fixes the problem found when porting mushroom.cpp sample from OpenCV 2.4.x to 3.x. Namely, when a CSV uses symbolic labels for some features and/or responses, it's impossible to get the mapping from the those original labels to the numerical values that TrainData::loadFromCSV() creates for them. By using these new methods this mapping can be obtained.\r\n\r\nexpose 2 extra methods from ml::TrainData: getNames() and getVarSymbolFlags(). The first one returns text labels from CSV (if the data has been loaded from CSV); the second one returns a matrix of boolean values; its n-th element is 1 iff the corresponding column in the CSV uses symbolic names, not numbers.","created_at":"2016-08-25T13:09:54Z","updated_at":"2016-08-25T13:09:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/opencv/opencv/pulls/7169/commits","review_comments_url":"https://api.github.com/repos/opencv/opencv/pulls/7169/comments","review_comment_url":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/7169/comments","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/36a76e33a2db87e2e361f8c8592b11f11b9b1510","head":{"label":"vpisarev:ml_expose_csv_feature_names","ref":"ml_expose_csv_feature_names","sha":"36a76e33a2db87e2e361f8c8592b11f11b9b1510","user":{"login":"vpisarev","id":2110786,"avatar_url":"https://avatars.githubusercontent.com/u/2110786?v=3","gravatar_id":"","url":"https://api.github.com/users/vpisarev","html_url":"https://github.com/vpisarev","followers_url":"https://api.github.com/users/vpisarev/followers","following_url":"https://api.github.com/users/vpisarev/following{/other_user}","gists_url":"https://api.github.com/users/vpisarev/gists{/gist_id}","starred_url":"https://api.github.com/users/vpisarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpisarev/subscriptions","organizations_url":"https://api.github.com/users/vpisarev/orgs","repos_url":"https://api.github.com/users/vpisarev/repos","events_url":"https://api.github.com/users/vpisarev/events{/privacy}","received_events_url":"https://api.github.com/users/vpisarev/received_events","type":"User","site_admin":false},"repo":{"id":6227998,"name":"opencv","full_name":"vpisarev/opencv","owner":{"login":"vpisarev","id":2110786,"avatar_url":"https://avatars.githubusercontent.com/u/2110786?v=3","gravatar_id":"","url":"https://api.github.com/users/vpisarev","html_url":"https://github.com/vpisarev","followers_url":"https://api.github.com/users/vpisarev/followers","following_url":"https://api.github.com/users/vpisarev/following{/other_user}","gists_url":"https://api.github.com/users/vpisarev/gists{/gist_id}","starred_url":"https://api.github.com/users/vpisarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpisarev/subscriptions","organizations_url":"https://api.github.com/users/vpisarev/orgs","repos_url":"https://api.github.com/users/vpisarev/repos","events_url":"https://api.github.com/users/vpisarev/events{/privacy}","received_events_url":"https://api.github.com/users/vpisarev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vpisarev/opencv","description":"OpenCV GitHub Mirror","fork":true,"url":"https://api.github.com/repos/vpisarev/opencv","forks_url":"https://api.github.com/repos/vpisarev/opencv/forks","keys_url":"https://api.github.com/repos/vpisarev/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vpisarev/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vpisarev/opencv/teams","hooks_url":"https://api.github.com/repos/vpisarev/opencv/hooks","issue_events_url":"https://api.github.com/repos/vpisarev/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/vpisarev/opencv/events","assignees_url":"https://api.github.com/repos/vpisarev/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/vpisarev/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/vpisarev/opencv/tags","blobs_url":"https://api.github.com/repos/vpisarev/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vpisarev/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vpisarev/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/vpisarev/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vpisarev/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/vpisarev/opencv/languages","stargazers_url":"https://api.github.com/repos/vpisarev/opencv/stargazers","contributors_url":"https://api.github.com/repos/vpisarev/opencv/contributors","subscribers_url":"https://api.github.com/repos/vpisarev/opencv/subscribers","subscription_url":"https://api.github.com/repos/vpisarev/opencv/subscription","commits_url":"https://api.github.com/repos/vpisarev/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/vpisarev/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/vpisarev/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/vpisarev/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/vpisarev/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/vpisarev/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vpisarev/opencv/merges","archive_url":"https://api.github.com/repos/vpisarev/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vpisarev/opencv/downloads","issues_url":"https://api.github.com/repos/vpisarev/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/vpisarev/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/vpisarev/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/vpisarev/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vpisarev/opencv/labels{/name}","releases_url":"https://api.github.com/repos/vpisarev/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/vpisarev/opencv/deployments","created_at":"2012-10-15T14:08:09Z","updated_at":"2015-05-06T15:39:43Z","pushed_at":"2016-08-25T13:06:30Z","git_url":"git://github.com/vpisarev/opencv.git","ssh_url":"git@github.com:vpisarev/opencv.git","clone_url":"https://github.com/vpisarev/opencv.git","svn_url":"https://github.com/vpisarev/opencv","homepage":"code.opencv.org","size":424573,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":3,"default_branch":"master"}},"base":{"label":"opencv:master","ref":"master","sha":"554017673a09bd44b8f082ad12fae63b76c3d7e7","user":{"login":"opencv","id":5009934,"avatar_url":"https://avatars.githubusercontent.com/u/5009934?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"name":"opencv","full_name":"opencv/opencv","owner":{"login":"opencv","id":5009934,"avatar_url":"https://avatars.githubusercontent.com/u/5009934?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencv/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/opencv/opencv","forks_url":"https://api.github.com/repos/opencv/opencv/forks","keys_url":"https://api.github.com/repos/opencv/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencv/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencv/opencv/teams","hooks_url":"https://api.github.com/repos/opencv/opencv/hooks","issue_events_url":"https://api.github.com/repos/opencv/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/opencv/opencv/events","assignees_url":"https://api.github.com/repos/opencv/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/opencv/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/opencv/opencv/tags","blobs_url":"https://api.github.com/repos/opencv/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencv/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencv/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencv/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/opencv/opencv/languages","stargazers_url":"https://api.github.com/repos/opencv/opencv/stargazers","contributors_url":"https://api.github.com/repos/opencv/opencv/contributors","subscribers_url":"https://api.github.com/repos/opencv/opencv/subscribers","subscription_url":"https://api.github.com/repos/opencv/opencv/subscription","commits_url":"https://api.github.com/repos/opencv/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencv/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencv/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencv/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencv/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/opencv/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencv/opencv/merges","archive_url":"https://api.github.com/repos/opencv/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencv/opencv/downloads","issues_url":"https://api.github.com/repos/opencv/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/opencv/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/opencv/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/opencv/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencv/opencv/labels{/name}","releases_url":"https://api.github.com/repos/opencv/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/opencv/opencv/deployments","created_at":"2012-07-19T09:40:17Z","updated_at":"2016-08-25T09:38:54Z","pushed_at":"2016-08-25T13:09:30Z","git_url":"git://github.com/opencv/opencv.git","ssh_url":"git@github.com:opencv/opencv.git","clone_url":"https://github.com/opencv/opencv.git","svn_url":"https://github.com/opencv/opencv","homepage":"opencv.org","size":1082283,"stargazers_count":10837,"watchers_count":10837,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8978,"mirror_url":null,"open_issues_count":960,"forks":8978,"open_issues":960,"watchers":10837,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencv/opencv/pulls/7169"},"html":{"href":"https://github.com/opencv/opencv/pull/7169"},"issue":{"href":"https://api.github.com/repos/opencv/opencv/issues/7169"},"comments":{"href":"https://api.github.com/repos/opencv/opencv/issues/7169/comments"},"review_comments":{"href":"https://api.github.com/repos/opencv/opencv/pulls/7169/comments"},"review_comment":{"href":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencv/opencv/pulls/7169/commits"},"statuses":{"href":"https://api.github.com/repos/opencv/opencv/statuses/36a76e33a2db87e2e361f8c8592b11f11b9b1510"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":40,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"vpisarev"}}