{"action":"created","comment":{"url":"https://api.github.com/repos/vertica/DistributedR/pulls/comments/37077711","id":37077711,"diff_hunk":"@@ -0,0 +1,290 @@\n+####################################################################################\n+# Copyright [2013] Hewlett-Packard Development Company, L.P.                         \n+#                                                                                   \n+# This program is free software; you can redistribute it and/or                     \n+# modify it under the terms of the GNU General Public License                       \n+# as published by the Free Software Foundation; either version 2                    \n+# of the License, or (at your option) any later version.                            \n+#                                                                                   \n+# This program is distributed in the hope that it will be useful,                   \n+# but WITHOUT ANY WARRANTY; without even the implied warranty of                    \n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the                      \n+# GNU General Public License for more details.                                      \n+#                                                                                   \n+# You should have received a copy of the GNU General Public License                 \n+# along with this program; if not, write to the Free Software                       \n+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.    \n+####################################################################################\n+\n+####################################################################################\n+#  File hpdegbm.R\n+#  Distributed version of gbm \n+\n+#  This code is a distributed version of gbm function availabel in R gbm package.\n+\n+#  myModel <- hpdegbm (.....)\n+#  GBM_model <- myModel[[1]] # trained GBM sub-models\n+#  best.iter <- myModel[[2]] # best iteration of each sub-models\n+\n+####################################################################################\n+## A copy of gbm R package license:\n+#\n+#  Copyright (C) 1995-2012 The R Core Team\n+#\n+#  This program is free software; you can redistribute it and/or modify\n+#  it under the terms of the GNU General Public License as published by\n+#  the Free Software Foundation; either version 2 of the License, or\n+#  (at your option) any later version.\n+#\n+#  This program is distributed in the hope that it will be useful,\n+#  but WITHOUT ANY WARRANTY; without even the implied warranty of\n+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+#  GNU General Public License for more details.\n+#\n+#  A copy of the GNU General Public License is available at\n+#  http://www.r-project.org/Licenses/\n+\n+####################################################################################\n+\n+\n+\n+\n+####################################################################################\n+###                Model training function of distributed GBM\n+####################################################################################\n+hpdegbm <- function(\n+       X_train,Y_train, \n+       dl_GBM_model,\n+       dbest.iter, \n+       nExecutor,                                         \n+       #distribution = \"adaboost\",\n+       distribution = \"bernoulli\",\n+       n.trees = 1000, \n+       interaction.depth = 3, \n+       n.minobsinnode = 10,\n+       shrinkage = 0.50,     #[0.001, 1]\n+       bag.fraction = 0.632, #0.5-0.8,\n+       offset = NULL, \n+       misc = NULL, \n+       w = NULL,\n+       var.monotone = NULL,\n+       nTrain = NULL,\n+       train.fraction = NULL,\n+       keep.data = TRUE,\n+       verbose = FALSE, # If TRUE, gbm will print out progress and performanc eindicators","path":"algorithms/HPdclassifier/R/hpdegbm.R","position":74,"original_position":74,"commit_id":"6ec72cee57f3cc4c0b03b19ffa232b965d35cbf0","original_commit_id":"6ec72cee57f3cc4c0b03b19ffa232b965d35cbf0","user":{"login":"afard","id":6831558,"avatar_url":"https://avatars.githubusercontent.com/u/6831558?v=3","gravatar_id":"","url":"https://api.github.com/users/afard","html_url":"https://github.com/afard","followers_url":"https://api.github.com/users/afard/followers","following_url":"https://api.github.com/users/afard/following{/other_user}","gists_url":"https://api.github.com/users/afard/gists{/gist_id}","starred_url":"https://api.github.com/users/afard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afard/subscriptions","organizations_url":"https://api.github.com/users/afard/orgs","repos_url":"https://api.github.com/users/afard/repos","events_url":"https://api.github.com/users/afard/events{/privacy}","received_events_url":"https://api.github.com/users/afard/received_events","type":"User","site_admin":false},"body":"You have never used the value of this input argument!","created_at":"2015-08-14T13:51:57Z","updated_at":"2015-08-14T13:51:57Z","html_url":"https://github.com/vertica/DistributedR/pull/19#discussion_r37077711","pull_request_url":"https://api.github.com/repos/vertica/DistributedR/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/vertica/DistributedR/pulls/comments/37077711"},"html":{"href":"https://github.com/vertica/DistributedR/pull/19#discussion_r37077711"},"pull_request":{"href":"https://api.github.com/repos/vertica/DistributedR/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/vertica/DistributedR/pulls/19","id":40710911,"html_url":"https://github.com/vertica/DistributedR/pull/19","diff_url":"https://github.com/vertica/DistributedR/pull/19.diff","patch_url":"https://github.com/vertica/DistributedR/pull/19.patch","issue_url":"https://api.github.com/repos/vertica/DistributedR/issues/19","number":19,"state":"open","locked":false,"title":"adding hpdegbm codes and man","user":{"login":"WinstonGitVertica","id":12200761,"avatar_url":"https://avatars.githubusercontent.com/u/12200761?v=3","gravatar_id":"","url":"https://api.github.com/users/WinstonGitVertica","html_url":"https://github.com/WinstonGitVertica","followers_url":"https://api.github.com/users/WinstonGitVertica/followers","following_url":"https://api.github.com/users/WinstonGitVertica/following{/other_user}","gists_url":"https://api.github.com/users/WinstonGitVertica/gists{/gist_id}","starred_url":"https://api.github.com/users/WinstonGitVertica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WinstonGitVertica/subscriptions","organizations_url":"https://api.github.com/users/WinstonGitVertica/orgs","repos_url":"https://api.github.com/users/WinstonGitVertica/repos","events_url":"https://api.github.com/users/WinstonGitVertica/events{/privacy}","received_events_url":"https://api.github.com/users/WinstonGitVertica/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-23T19:51:27Z","updated_at":"2015-08-14T13:51:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49d1664ae9e571b8713beb0b9e4faac20cd91ffc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vertica/DistributedR/pulls/19/commits","review_comments_url":"https://api.github.com/repos/vertica/DistributedR/pulls/19/comments","review_comment_url":"https://api.github.com/repos/vertica/DistributedR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vertica/DistributedR/issues/19/comments","statuses_url":"https://api.github.com/repos/vertica/DistributedR/statuses/6ec72cee57f3cc4c0b03b19ffa232b965d35cbf0","head":{"label":"vertica:hpdegbm","ref":"hpdegbm","sha":"6ec72cee57f3cc4c0b03b19ffa232b965d35cbf0","user":{"login":"vertica","id":10060,"avatar_url":"https://avatars.githubusercontent.com/u/10060?v=3","gravatar_id":"","url":"https://api.github.com/users/vertica","html_url":"https://github.com/vertica","followers_url":"https://api.github.com/users/vertica/followers","following_url":"https://api.github.com/users/vertica/following{/other_user}","gists_url":"https://api.github.com/users/vertica/gists{/gist_id}","starred_url":"https://api.github.com/users/vertica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vertica/subscriptions","organizations_url":"https://api.github.com/users/vertica/orgs","repos_url":"https://api.github.com/users/vertica/repos","events_url":"https://api.github.com/users/vertica/events{/privacy}","received_events_url":"https://api.github.com/users/vertica/received_events","type":"Organization","site_admin":false},"repo":{"id":22511128,"name":"DistributedR","full_name":"vertica/DistributedR","owner":{"login":"vertica","id":10060,"avatar_url":"https://avatars.githubusercontent.com/u/10060?v=3","gravatar_id":"","url":"https://api.github.com/users/vertica","html_url":"https://github.com/vertica","followers_url":"https://api.github.com/users/vertica/followers","following_url":"https://api.github.com/users/vertica/following{/other_user}","gists_url":"https://api.github.com/users/vertica/gists{/gist_id}","starred_url":"https://api.github.com/users/vertica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vertica/subscriptions","organizations_url":"https://api.github.com/users/vertica/orgs","repos_url":"https://api.github.com/users/vertica/repos","events_url":"https://api.github.com/users/vertica/events{/privacy}","received_events_url":"https://api.github.com/users/vertica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vertica/DistributedR","description":"","fork":false,"url":"https://api.github.com/repos/vertica/DistributedR","forks_url":"https://api.github.com/repos/vertica/DistributedR/forks","keys_url":"https://api.github.com/repos/vertica/DistributedR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vertica/DistributedR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vertica/DistributedR/teams","hooks_url":"https://api.github.com/repos/vertica/DistributedR/hooks","issue_events_url":"https://api.github.com/repos/vertica/DistributedR/issues/events{/number}","events_url":"https://api.github.com/repos/vertica/DistributedR/events","assignees_url":"https://api.github.com/repos/vertica/DistributedR/assignees{/user}","branches_url":"https://api.github.com/repos/vertica/DistributedR/branches{/branch}","tags_url":"https://api.github.com/repos/vertica/DistributedR/tags","blobs_url":"https://api.github.com/repos/vertica/DistributedR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vertica/DistributedR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vertica/DistributedR/git/refs{/sha}","trees_url":"https://api.github.com/repos/vertica/DistributedR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vertica/DistributedR/statuses/{sha}","languages_url":"https://api.github.com/repos/vertica/DistributedR/languages","stargazers_url":"https://api.github.com/repos/vertica/DistributedR/stargazers","contributors_url":"https://api.github.com/repos/vertica/DistributedR/contributors","subscribers_url":"https://api.github.com/repos/vertica/DistributedR/subscribers","subscription_url":"https://api.github.com/repos/vertica/DistributedR/subscription","commits_url":"https://api.github.com/repos/vertica/DistributedR/commits{/sha}","git_commits_url":"https://api.github.com/repos/vertica/DistributedR/git/commits{/sha}","comments_url":"https://api.github.com/repos/vertica/DistributedR/comments{/number}","issue_comment_url":"https://api.github.com/repos/vertica/DistributedR/issues/comments{/number}","contents_url":"https://api.github.com/repos/vertica/DistributedR/contents/{+path}","compare_url":"https://api.github.com/repos/vertica/DistributedR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vertica/DistributedR/merges","archive_url":"https://api.github.com/repos/vertica/DistributedR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vertica/DistributedR/downloads","issues_url":"https://api.github.com/repos/vertica/DistributedR/issues{/number}","pulls_url":"https://api.github.com/repos/vertica/DistributedR/pulls{/number}","milestones_url":"https://api.github.com/repos/vertica/DistributedR/milestones{/number}","notifications_url":"https://api.github.com/repos/vertica/DistributedR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vertica/DistributedR/labels{/name}","releases_url":"https://api.github.com/repos/vertica/DistributedR/releases{/id}","created_at":"2014-08-01T13:36:49Z","updated_at":"2015-08-03T14:39:18Z","pushed_at":"2015-08-14T13:12:09Z","git_url":"git://github.com/vertica/DistributedR.git","ssh_url":"git@github.com:vertica/DistributedR.git","clone_url":"https://github.com/vertica/DistributedR.git","svn_url":"https://github.com/vertica/DistributedR","homepage":null,"size":101433,"stargazers_count":89,"watchers_count":89,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":14,"forks":32,"open_issues":14,"watchers":89,"default_branch":"master"}},"base":{"label":"vertica:master","ref":"master","sha":"0d0e0ab6cddbf908cafb7130959195d0c9e9132e","user":{"login":"vertica","id":10060,"avatar_url":"https://avatars.githubusercontent.com/u/10060?v=3","gravatar_id":"","url":"https://api.github.com/users/vertica","html_url":"https://github.com/vertica","followers_url":"https://api.github.com/users/vertica/followers","following_url":"https://api.github.com/users/vertica/following{/other_user}","gists_url":"https://api.github.com/users/vertica/gists{/gist_id}","starred_url":"https://api.github.com/users/vertica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vertica/subscriptions","organizations_url":"https://api.github.com/users/vertica/orgs","repos_url":"https://api.github.com/users/vertica/repos","events_url":"https://api.github.com/users/vertica/events{/privacy}","received_events_url":"https://api.github.com/users/vertica/received_events","type":"Organization","site_admin":false},"repo":{"id":22511128,"name":"DistributedR","full_name":"vertica/DistributedR","owner":{"login":"vertica","id":10060,"avatar_url":"https://avatars.githubusercontent.com/u/10060?v=3","gravatar_id":"","url":"https://api.github.com/users/vertica","html_url":"https://github.com/vertica","followers_url":"https://api.github.com/users/vertica/followers","following_url":"https://api.github.com/users/vertica/following{/other_user}","gists_url":"https://api.github.com/users/vertica/gists{/gist_id}","starred_url":"https://api.github.com/users/vertica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vertica/subscriptions","organizations_url":"https://api.github.com/users/vertica/orgs","repos_url":"https://api.github.com/users/vertica/repos","events_url":"https://api.github.com/users/vertica/events{/privacy}","received_events_url":"https://api.github.com/users/vertica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vertica/DistributedR","description":"","fork":false,"url":"https://api.github.com/repos/vertica/DistributedR","forks_url":"https://api.github.com/repos/vertica/DistributedR/forks","keys_url":"https://api.github.com/repos/vertica/DistributedR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vertica/DistributedR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vertica/DistributedR/teams","hooks_url":"https://api.github.com/repos/vertica/DistributedR/hooks","issue_events_url":"https://api.github.com/repos/vertica/DistributedR/issues/events{/number}","events_url":"https://api.github.com/repos/vertica/DistributedR/events","assignees_url":"https://api.github.com/repos/vertica/DistributedR/assignees{/user}","branches_url":"https://api.github.com/repos/vertica/DistributedR/branches{/branch}","tags_url":"https://api.github.com/repos/vertica/DistributedR/tags","blobs_url":"https://api.github.com/repos/vertica/DistributedR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vertica/DistributedR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vertica/DistributedR/git/refs{/sha}","trees_url":"https://api.github.com/repos/vertica/DistributedR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vertica/DistributedR/statuses/{sha}","languages_url":"https://api.github.com/repos/vertica/DistributedR/languages","stargazers_url":"https://api.github.com/repos/vertica/DistributedR/stargazers","contributors_url":"https://api.github.com/repos/vertica/DistributedR/contributors","subscribers_url":"https://api.github.com/repos/vertica/DistributedR/subscribers","subscription_url":"https://api.github.com/repos/vertica/DistributedR/subscription","commits_url":"https://api.github.com/repos/vertica/DistributedR/commits{/sha}","git_commits_url":"https://api.github.com/repos/vertica/DistributedR/git/commits{/sha}","comments_url":"https://api.github.com/repos/vertica/DistributedR/comments{/number}","issue_comment_url":"https://api.github.com/repos/vertica/DistributedR/issues/comments{/number}","contents_url":"https://api.github.com/repos/vertica/DistributedR/contents/{+path}","compare_url":"https://api.github.com/repos/vertica/DistributedR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vertica/DistributedR/merges","archive_url":"https://api.github.com/repos/vertica/DistributedR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vertica/DistributedR/downloads","issues_url":"https://api.github.com/repos/vertica/DistributedR/issues{/number}","pulls_url":"https://api.github.com/repos/vertica/DistributedR/pulls{/number}","milestones_url":"https://api.github.com/repos/vertica/DistributedR/milestones{/number}","notifications_url":"https://api.github.com/repos/vertica/DistributedR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vertica/DistributedR/labels{/name}","releases_url":"https://api.github.com/repos/vertica/DistributedR/releases{/id}","created_at":"2014-08-01T13:36:49Z","updated_at":"2015-08-03T14:39:18Z","pushed_at":"2015-08-14T13:12:09Z","git_url":"git://github.com/vertica/DistributedR.git","ssh_url":"git@github.com:vertica/DistributedR.git","clone_url":"https://github.com/vertica/DistributedR.git","svn_url":"https://github.com/vertica/DistributedR","homepage":null,"size":101433,"stargazers_count":89,"watchers_count":89,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":14,"forks":32,"open_issues":14,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vertica/DistributedR/pulls/19"},"html":{"href":"https://github.com/vertica/DistributedR/pull/19"},"issue":{"href":"https://api.github.com/repos/vertica/DistributedR/issues/19"},"comments":{"href":"https://api.github.com/repos/vertica/DistributedR/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/vertica/DistributedR/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/vertica/DistributedR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vertica/DistributedR/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/vertica/DistributedR/statuses/6ec72cee57f3cc4c0b03b19ffa232b965d35cbf0"}}}}