{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/LightGBM/pulls/comments/98351000","pull_request_review_id":18991296,"id":98351000,"diff_hunk":"@@ -162,5 +162,23 @@ class FairLossMetric: public RegressionMetric<FairLossMetric> {\n   }\n };\n \n+/*! \\brief Poisson regression loss for regression task */\n+class PoissonMetric: public RegressionMetric<PoissonMetric> {\n+public:\n+  explicit PoissonMetric(const MetricConfig& config) :RegressionMetric<PoissonMetric>(config) {\n+  }\n+\n+  inline static double LossOnPoint(float label, double score, double, double) {\n+    const double eps = 1e-10f;\n+    if (score < eps) {\n+      score = eps;","path":"src/metric/regression_metric.hpp","position":13,"original_position":13,"commit_id":"0a7314f1e4d16130ea6bda5ba03345ef46c4f5ba","original_commit_id":"b728975843f4ce9a56d1f0238e6921a5db701da5","user":{"login":"Laurae2","id":9083669,"avatar_url":"https://avatars.githubusercontent.com/u/9083669?v=3","gravatar_id":"","url":"https://api.github.com/users/Laurae2","html_url":"https://github.com/Laurae2","followers_url":"https://api.github.com/users/Laurae2/followers","following_url":"https://api.github.com/users/Laurae2/following{/other_user}","gists_url":"https://api.github.com/users/Laurae2/gists{/gist_id}","starred_url":"https://api.github.com/users/Laurae2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laurae2/subscriptions","organizations_url":"https://api.github.com/users/Laurae2/orgs","repos_url":"https://api.github.com/users/Laurae2/repos","events_url":"https://api.github.com/users/Laurae2/events{/privacy}","received_events_url":"https://api.github.com/users/Laurae2/received_events","type":"User","site_admin":false},"body":"You can directly return 0 for this I think. As long as it doesn't affect the hessian it should be all good.","created_at":"2017-01-29T11:46:40Z","updated_at":"2017-01-29T11:46:40Z","html_url":"https://github.com/Microsoft/LightGBM/pull/270#discussion_r98351000","pull_request_url":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/LightGBM/pulls/comments/98351000"},"html":{"href":"https://github.com/Microsoft/LightGBM/pull/270#discussion_r98351000"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270","id":103631453,"html_url":"https://github.com/Microsoft/LightGBM/pull/270","diff_url":"https://github.com/Microsoft/LightGBM/pull/270.diff","patch_url":"https://github.com/Microsoft/LightGBM/pull/270.patch","issue_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/270","number":270,"state":"open","locked":false,"title":"Support Poisson regression","user":{"login":"henry0312","id":433434,"avatar_url":"https://avatars.githubusercontent.com/u/433434?v=3","gravatar_id":"","url":"https://api.github.com/users/henry0312","html_url":"https://github.com/henry0312","followers_url":"https://api.github.com/users/henry0312/followers","following_url":"https://api.github.com/users/henry0312/following{/other_user}","gists_url":"https://api.github.com/users/henry0312/gists{/gist_id}","starred_url":"https://api.github.com/users/henry0312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henry0312/subscriptions","organizations_url":"https://api.github.com/users/henry0312/orgs","repos_url":"https://api.github.com/users/henry0312/repos","events_url":"https://api.github.com/users/henry0312/events{/privacy}","received_events_url":"https://api.github.com/users/henry0312/received_events","type":"User","site_admin":false},"body":"Close #233","created_at":"2017-01-29T01:21:15Z","updated_at":"2017-01-29T11:46:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"761d9a2d461d158913b61066c17a271b1e8ee61f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270/commits","review_comments_url":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270/comments","review_comment_url":"https://api.github.com/repos/Microsoft/LightGBM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/270/comments","statuses_url":"https://api.github.com/repos/Microsoft/LightGBM/statuses/0a7314f1e4d16130ea6bda5ba03345ef46c4f5ba","head":{"label":"henry0312:poisson_regression","ref":"poisson_regression","sha":"0a7314f1e4d16130ea6bda5ba03345ef46c4f5ba","user":{"login":"henry0312","id":433434,"avatar_url":"https://avatars.githubusercontent.com/u/433434?v=3","gravatar_id":"","url":"https://api.github.com/users/henry0312","html_url":"https://github.com/henry0312","followers_url":"https://api.github.com/users/henry0312/followers","following_url":"https://api.github.com/users/henry0312/following{/other_user}","gists_url":"https://api.github.com/users/henry0312/gists{/gist_id}","starred_url":"https://api.github.com/users/henry0312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henry0312/subscriptions","organizations_url":"https://api.github.com/users/henry0312/orgs","repos_url":"https://api.github.com/users/henry0312/repos","events_url":"https://api.github.com/users/henry0312/events{/privacy}","received_events_url":"https://api.github.com/users/henry0312/received_events","type":"User","site_admin":false},"repo":{"id":75361566,"name":"LightGBM","full_name":"henry0312/LightGBM","owner":{"login":"henry0312","id":433434,"avatar_url":"https://avatars.githubusercontent.com/u/433434?v=3","gravatar_id":"","url":"https://api.github.com/users/henry0312","html_url":"https://github.com/henry0312","followers_url":"https://api.github.com/users/henry0312/followers","following_url":"https://api.github.com/users/henry0312/following{/other_user}","gists_url":"https://api.github.com/users/henry0312/gists{/gist_id}","starred_url":"https://api.github.com/users/henry0312/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henry0312/subscriptions","organizations_url":"https://api.github.com/users/henry0312/orgs","repos_url":"https://api.github.com/users/henry0312/repos","events_url":"https://api.github.com/users/henry0312/events{/privacy}","received_events_url":"https://api.github.com/users/henry0312/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/henry0312/LightGBM","description":"A fast, distributed, high performance gradient boosting (GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks. It is under the umbrella of the DMTK(http://github.com/microsoft/dmtk) project of Microsoft.","fork":true,"url":"https://api.github.com/repos/henry0312/LightGBM","forks_url":"https://api.github.com/repos/henry0312/LightGBM/forks","keys_url":"https://api.github.com/repos/henry0312/LightGBM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/henry0312/LightGBM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/henry0312/LightGBM/teams","hooks_url":"https://api.github.com/repos/henry0312/LightGBM/hooks","issue_events_url":"https://api.github.com/repos/henry0312/LightGBM/issues/events{/number}","events_url":"https://api.github.com/repos/henry0312/LightGBM/events","assignees_url":"https://api.github.com/repos/henry0312/LightGBM/assignees{/user}","branches_url":"https://api.github.com/repos/henry0312/LightGBM/branches{/branch}","tags_url":"https://api.github.com/repos/henry0312/LightGBM/tags","blobs_url":"https://api.github.com/repos/henry0312/LightGBM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/henry0312/LightGBM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/henry0312/LightGBM/git/refs{/sha}","trees_url":"https://api.github.com/repos/henry0312/LightGBM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/henry0312/LightGBM/statuses/{sha}","languages_url":"https://api.github.com/repos/henry0312/LightGBM/languages","stargazers_url":"https://api.github.com/repos/henry0312/LightGBM/stargazers","contributors_url":"https://api.github.com/repos/henry0312/LightGBM/contributors","subscribers_url":"https://api.github.com/repos/henry0312/LightGBM/subscribers","subscription_url":"https://api.github.com/repos/henry0312/LightGBM/subscription","commits_url":"https://api.github.com/repos/henry0312/LightGBM/commits{/sha}","git_commits_url":"https://api.github.com/repos/henry0312/LightGBM/git/commits{/sha}","comments_url":"https://api.github.com/repos/henry0312/LightGBM/comments{/number}","issue_comment_url":"https://api.github.com/repos/henry0312/LightGBM/issues/comments{/number}","contents_url":"https://api.github.com/repos/henry0312/LightGBM/contents/{+path}","compare_url":"https://api.github.com/repos/henry0312/LightGBM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/henry0312/LightGBM/merges","archive_url":"https://api.github.com/repos/henry0312/LightGBM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/henry0312/LightGBM/downloads","issues_url":"https://api.github.com/repos/henry0312/LightGBM/issues{/number}","pulls_url":"https://api.github.com/repos/henry0312/LightGBM/pulls{/number}","milestones_url":"https://api.github.com/repos/henry0312/LightGBM/milestones{/number}","notifications_url":"https://api.github.com/repos/henry0312/LightGBM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/henry0312/LightGBM/labels{/name}","releases_url":"https://api.github.com/repos/henry0312/LightGBM/releases{/id}","deployments_url":"https://api.github.com/repos/henry0312/LightGBM/deployments","created_at":"2016-12-02T04:46:54Z","updated_at":"2016-12-02T04:46:55Z","pushed_at":"2017-01-29T06:00:49Z","git_url":"git://github.com/henry0312/LightGBM.git","ssh_url":"git@github.com:henry0312/LightGBM.git","clone_url":"https://github.com/henry0312/LightGBM.git","svn_url":"https://github.com/henry0312/LightGBM","homepage":"","size":3672,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"Microsoft:master","ref":"master","sha":"58565547e8397d376085dd65320fd4e6340267e2","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":64991887,"name":"LightGBM","full_name":"Microsoft/LightGBM","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/LightGBM","description":"A fast, distributed, high performance gradient boosting (GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks. It is under the umbrella of the DMTK(http://github.com/microsoft/dmtk) project of Microsoft.","fork":false,"url":"https://api.github.com/repos/Microsoft/LightGBM","forks_url":"https://api.github.com/repos/Microsoft/LightGBM/forks","keys_url":"https://api.github.com/repos/Microsoft/LightGBM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/LightGBM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/LightGBM/teams","hooks_url":"https://api.github.com/repos/Microsoft/LightGBM/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/LightGBM/events","assignees_url":"https://api.github.com/repos/Microsoft/LightGBM/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/LightGBM/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/LightGBM/tags","blobs_url":"https://api.github.com/repos/Microsoft/LightGBM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/LightGBM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/LightGBM/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/LightGBM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/LightGBM/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/LightGBM/languages","stargazers_url":"https://api.github.com/repos/Microsoft/LightGBM/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/LightGBM/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/LightGBM/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/LightGBM/subscription","commits_url":"https://api.github.com/repos/Microsoft/LightGBM/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/LightGBM/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/LightGBM/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/LightGBM/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/LightGBM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/LightGBM/merges","archive_url":"https://api.github.com/repos/Microsoft/LightGBM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/LightGBM/downloads","issues_url":"https://api.github.com/repos/Microsoft/LightGBM/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/LightGBM/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/LightGBM/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/LightGBM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/LightGBM/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/LightGBM/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/LightGBM/deployments","created_at":"2016-08-05T05:45:50Z","updated_at":"2017-01-28T15:28:56Z","pushed_at":"2017-01-29T06:00:50Z","git_url":"git://github.com/Microsoft/LightGBM.git","ssh_url":"git@github.com:Microsoft/LightGBM.git","clone_url":"https://github.com/Microsoft/LightGBM.git","svn_url":"https://github.com/Microsoft/LightGBM","homepage":"","size":3706,"stargazers_count":2416,"watchers_count":2416,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":519,"mirror_url":null,"open_issues_count":20,"forks":519,"open_issues":20,"watchers":2416,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270"},"html":{"href":"https://github.com/Microsoft/LightGBM/pull/270"},"issue":{"href":"https://api.github.com/repos/Microsoft/LightGBM/issues/270"},"comments":{"href":"https://api.github.com/repos/Microsoft/LightGBM/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/LightGBM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/LightGBM/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/LightGBM/statuses/0a7314f1e4d16130ea6bda5ba03345ef46c4f5ba"}}}}
{"actor":{"display_login":"Laurae2"}}