{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/5980","labels_url":"https://api.github.com/repos/apache/spark/issues/5980/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/5980/comments","events_url":"https://api.github.com/repos/apache/spark/issues/5980/events","html_url":"https://github.com/apache/spark/pull/5980","id":73981146,"number":5980,"title":"[SPARK-5893][ML] Add bucketizer","user":{"login":"yinxusen","id":2637239,"avatar_url":"https://avatars.githubusercontent.com/u/2637239?v=3","gravatar_id":"","url":"https://api.github.com/users/yinxusen","html_url":"https://github.com/yinxusen","followers_url":"https://api.github.com/users/yinxusen/followers","following_url":"https://api.github.com/users/yinxusen/following{/other_user}","gists_url":"https://api.github.com/users/yinxusen/gists{/gist_id}","starred_url":"https://api.github.com/users/yinxusen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinxusen/subscriptions","organizations_url":"https://api.github.com/users/yinxusen/orgs","repos_url":"https://api.github.com/users/yinxusen/repos","events_url":"https://api.github.com/users/yinxusen/events{/privacy}","received_events_url":"https://api.github.com/users/yinxusen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":57,"created_at":"2015-05-07T13:10:14Z","updated_at":"2015-05-11T02:16:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/5980","html_url":"https://github.com/apache/spark/pull/5980","diff_url":"https://github.com/apache/spark/pull/5980.diff","patch_url":"https://github.com/apache/spark/pull/5980.patch"},"body":"JIRA issue [here](https://issues.apache.org/jira/browse/SPARK-5893).\r\n\r\nOne thing to make clear, the `buckets` parameter, which is an array of `Double`, performs as split points. Say, \r\n\r\n```scala\r\nbuckets = Array(-0.5, 0.0, 0.5)\r\n```\r\n\r\nsplits the real number into 4 ranges, (-inf, -0.5], (-0.5, 0.0], (0.0, 0.5], (0.5, +inf), which is encoded as 0, 1, 2, 3."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/100740209","html_url":"https://github.com/apache/spark/pull/5980#issuecomment-100740209","issue_url":"https://api.github.com/repos/apache/spark/issues/5980","id":100740209,"user":{"login":"jkbradley","id":5084283,"avatar_url":"https://avatars.githubusercontent.com/u/5084283?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbradley","html_url":"https://github.com/jkbradley","followers_url":"https://api.github.com/users/jkbradley/followers","following_url":"https://api.github.com/users/jkbradley/following{/other_user}","gists_url":"https://api.github.com/users/jkbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbradley/subscriptions","organizations_url":"https://api.github.com/users/jkbradley/orgs","repos_url":"https://api.github.com/users/jkbradley/repos","events_url":"https://api.github.com/users/jkbradley/events{/privacy}","received_events_url":"https://api.github.com/users/jkbradley/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T02:16:47Z","updated_at":"2015-05-11T02:16:47Z","body":"@yinxusen I'm worried about this missing 1.4.  Would you mind if I sent a PR to you to update this PR?"}}