{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/3899","labels_url":"https://api.github.com/repos/apache/spark/issues/3899/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/3899/comments","events_url":"https://api.github.com/repos/apache/spark/issues/3899/events","html_url":"https://github.com/apache/spark/pull/3899","id":53379139,"number":3899,"title":"[SPARK-5099][Mllib] Simplify logistic loss function","user":{"login":"viirya","id":68855,"avatar_url":"https://avatars.githubusercontent.com/u/68855?v=3","gravatar_id":"","url":"https://api.github.com/users/viirya","html_url":"https://github.com/viirya","followers_url":"https://api.github.com/users/viirya/followers","following_url":"https://api.github.com/users/viirya/following{/other_user}","gists_url":"https://api.github.com/users/viirya/gists{/gist_id}","starred_url":"https://api.github.com/users/viirya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viirya/subscriptions","organizations_url":"https://api.github.com/users/viirya/orgs","repos_url":"https://api.github.com/users/viirya/repos","events_url":"https://api.github.com/users/viirya/events{/privacy}","received_events_url":"https://api.github.com/users/viirya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-01-05T09:44:04Z","updated_at":"2015-01-06T14:32:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/3899","html_url":"https://github.com/apache/spark/pull/3899","diff_url":"https://github.com/apache/spark/pull/3899.diff","patch_url":"https://github.com/apache/spark/pull/3899.patch"},"body":"This is a minor pr where I think that we can simply take minus of `margin`, instead of subtracting  `margin`.\r\n\r\nMathematically, they are equal. But the modified equation is the common form of logistic loss function and so more readable. It also computes more accurate value as some quick tests show."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/68871848","html_url":"https://github.com/apache/spark/pull/3899#issuecomment-68871848","issue_url":"https://api.github.com/repos/apache/spark/issues/3899","id":68871848,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T14:32:29Z","updated_at":"2015-01-06T14:32:29Z","body":"  [Test build #25101 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/25101/consoleFull) for   PR 3899 at commit [`0aa51e4`](https://github.com/apache/spark/commit/0aa51e483224bae746d4e8b604b12e405899a9df).\n * This patch **passes all tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}