{"action":"created","comment":{"url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/comments/81789200","pull_request_review_id":2743480,"id":81789200,"diff_hunk":"@@ -0,0 +1,18 @@\n+// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-\n+\n+#include <RcppMLPACK.h>\t\t\t\t// MLPACK, Rcpp and RcppArmadillo\n+\n+#include <mlpack/methods/naive_bayes/naive_bayes_classifier.hpp> \t// particular algorithm used here\n+\n+// [[Rcpp::export]]\n+Rcpp::List naive_bayes(const arma::mat& train, const arma::mat& test, const arma::Row<size_t>& labels, const int& classes) {\n+    \n+    arma::Row<size_t> results;\n+\n+    // Initialize with the default arguments.\n+    mlpack::naive_bayes::NaiveBayesClassifier<> nbc(train, labels, classes);\n+    \n+    nbc.Classify(test, results);\n+\n+    return Rcpp::List::create(Rcpp::Named(\"results\") = results);","path":"src/naive_bayes.cpp","position":null,"original_position":17,"commit_id":"892dfea268a3027b2feb41cecd0beb029a24e5a2","original_commit_id":"a7141441b8ad1fd18795ddfeb61ea1fcc5a73b87","user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"body":"Did you re-run `compileAttributes()` (and remove old object files etc) ?  Same issue as yesterday -- you changed an interface.","created_at":"2016-10-04T15:50:48Z","updated_at":"2016-10-04T15:50:48Z","html_url":"https://github.com/eddelbuettel/rcppmlpack2/pull/3#discussion_r81789200","pull_request_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/comments/81789200"},"html":{"href":"https://github.com/eddelbuettel/rcppmlpack2/pull/3#discussion_r81789200"},"pull_request":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3","id":87910429,"html_url":"https://github.com/eddelbuettel/rcppmlpack2/pull/3","diff_url":"https://github.com/eddelbuettel/rcppmlpack2/pull/3.diff","patch_url":"https://github.com/eddelbuettel/rcppmlpack2/pull/3.patch","issue_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/issues/3","number":3,"state":"open","locked":false,"title":"new example src/naive_bayes.cpp","user":{"login":"MHenderson","id":23988,"avatar_url":"https://avatars.githubusercontent.com/u/23988?v=3","gravatar_id":"","url":"https://api.github.com/users/MHenderson","html_url":"https://github.com/MHenderson","followers_url":"https://api.github.com/users/MHenderson/followers","following_url":"https://api.github.com/users/MHenderson/following{/other_user}","gists_url":"https://api.github.com/users/MHenderson/gists{/gist_id}","starred_url":"https://api.github.com/users/MHenderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHenderson/subscriptions","organizations_url":"https://api.github.com/users/MHenderson/orgs","repos_url":"https://api.github.com/users/MHenderson/repos","events_url":"https://api.github.com/users/MHenderson/events{/privacy}","received_events_url":"https://api.github.com/users/MHenderson/received_events","type":"User","site_admin":false},"body":"update header, also include generated RcppExports.R","created_at":"2016-10-04T14:54:30Z","updated_at":"2016-10-04T15:50:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db2c21555a6b6879ec89a8602c6c2fc6061c2c0b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3/commits","review_comments_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3/comments","review_comment_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/issues/3/comments","statuses_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/statuses/892dfea268a3027b2feb41cecd0beb029a24e5a2","head":{"label":"MHenderson:naive_bayes","ref":"naive_bayes","sha":"892dfea268a3027b2feb41cecd0beb029a24e5a2","user":{"login":"MHenderson","id":23988,"avatar_url":"https://avatars.githubusercontent.com/u/23988?v=3","gravatar_id":"","url":"https://api.github.com/users/MHenderson","html_url":"https://github.com/MHenderson","followers_url":"https://api.github.com/users/MHenderson/followers","following_url":"https://api.github.com/users/MHenderson/following{/other_user}","gists_url":"https://api.github.com/users/MHenderson/gists{/gist_id}","starred_url":"https://api.github.com/users/MHenderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHenderson/subscriptions","organizations_url":"https://api.github.com/users/MHenderson/orgs","repos_url":"https://api.github.com/users/MHenderson/repos","events_url":"https://api.github.com/users/MHenderson/events{/privacy}","received_events_url":"https://api.github.com/users/MHenderson/received_events","type":"User","site_admin":false},"repo":{"id":69973812,"name":"rcppmlpack2","full_name":"MHenderson/rcppmlpack2","owner":{"login":"MHenderson","id":23988,"avatar_url":"https://avatars.githubusercontent.com/u/23988?v=3","gravatar_id":"","url":"https://api.github.com/users/MHenderson","html_url":"https://github.com/MHenderson","followers_url":"https://api.github.com/users/MHenderson/followers","following_url":"https://api.github.com/users/MHenderson/following{/other_user}","gists_url":"https://api.github.com/users/MHenderson/gists{/gist_id}","starred_url":"https://api.github.com/users/MHenderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MHenderson/subscriptions","organizations_url":"https://api.github.com/users/MHenderson/orgs","repos_url":"https://api.github.com/users/MHenderson/repos","events_url":"https://api.github.com/users/MHenderson/events{/privacy}","received_events_url":"https://api.github.com/users/MHenderson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MHenderson/rcppmlpack2","description":"Rcpp Interface to MLPACK","fork":true,"url":"https://api.github.com/repos/MHenderson/rcppmlpack2","forks_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/forks","keys_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/teams","hooks_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/hooks","issue_events_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/issues/events{/number}","events_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/events","assignees_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/assignees{/user}","branches_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/branches{/branch}","tags_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/tags","blobs_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/git/refs{/sha}","trees_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/statuses/{sha}","languages_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/languages","stargazers_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/stargazers","contributors_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/contributors","subscribers_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/subscribers","subscription_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/subscription","commits_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/commits{/sha}","git_commits_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/git/commits{/sha}","comments_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/comments{/number}","issue_comment_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/issues/comments{/number}","contents_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/contents/{+path}","compare_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/merges","archive_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/downloads","issues_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/issues{/number}","pulls_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/pulls{/number}","milestones_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/milestones{/number}","notifications_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/labels{/name}","releases_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/releases{/id}","deployments_url":"https://api.github.com/repos/MHenderson/rcppmlpack2/deployments","created_at":"2016-10-04T14:35:36Z","updated_at":"2016-10-04T14:35:37Z","pushed_at":"2016-10-04T15:29:00Z","git_url":"git://github.com/MHenderson/rcppmlpack2.git","ssh_url":"git@github.com:MHenderson/rcppmlpack2.git","clone_url":"https://github.com/MHenderson/rcppmlpack2.git","svn_url":"https://github.com/MHenderson/rcppmlpack2","homepage":null,"size":3464,"stargazers_count":0,"watchers_count":0,"language":"M4","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":"eddelbuettel:master","ref":"master","sha":"d552f8271d471a716e61abd0ffe493bf1729fc87","user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"repo":{"id":67216533,"name":"rcppmlpack2","full_name":"eddelbuettel/rcppmlpack2","owner":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eddelbuettel/rcppmlpack2","description":"Rcpp Interface to MLPACK","fork":false,"url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2","forks_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/forks","keys_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/teams","hooks_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/hooks","issue_events_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/issues/events{/number}","events_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/events","assignees_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/assignees{/user}","branches_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/branches{/branch}","tags_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/tags","blobs_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/git/refs{/sha}","trees_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/statuses/{sha}","languages_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/languages","stargazers_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/stargazers","contributors_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/contributors","subscribers_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/subscribers","subscription_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/subscription","commits_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/commits{/sha}","git_commits_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/git/commits{/sha}","comments_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/comments{/number}","issue_comment_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/issues/comments{/number}","contents_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/contents/{+path}","compare_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/merges","archive_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/downloads","issues_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/issues{/number}","pulls_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls{/number}","milestones_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/milestones{/number}","notifications_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/labels{/name}","releases_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/releases{/id}","deployments_url":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/deployments","created_at":"2016-09-02T11:18:05Z","updated_at":"2016-10-03T10:50:43Z","pushed_at":"2016-10-04T15:29:00Z","git_url":"git://github.com/eddelbuettel/rcppmlpack2.git","ssh_url":"git@github.com:eddelbuettel/rcppmlpack2.git","clone_url":"https://github.com/eddelbuettel/rcppmlpack2.git","svn_url":"https://github.com/eddelbuettel/rcppmlpack2","homepage":null,"size":3464,"stargazers_count":1,"watchers_count":1,"language":"M4","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3"},"html":{"href":"https://github.com/eddelbuettel/rcppmlpack2/pull/3"},"issue":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/issues/3"},"comments":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/eddelbuettel/rcppmlpack2/statuses/892dfea268a3027b2feb41cecd0beb029a24e5a2"}}}}
{"actor":{"display_login":"eddelbuettel"}}