You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2015/05/12 23:25:00 UTC

[jira] [Resolved] (SPARK-7559) Bucketizer should include the right most boundary in the last bucket.

     [ https://issues.apache.org/jira/browse/SPARK-7559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph K. Bradley resolved SPARK-7559.
--------------------------------------
       Resolution: Pending Closed
    Fix Version/s: 1.4.0

Issue resolved by pull request 6075
[https://github.com/apache/spark/pull/6075]

> Bucketizer should include the right most boundary in the last bucket.
> ---------------------------------------------------------------------
>
>                 Key: SPARK-7559
>                 URL: https://issues.apache.org/jira/browse/SPARK-7559
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 1.4.0
>            Reporter: Xiangrui Meng
>            Assignee: Xiangrui Meng
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> Now we use special treatment for +inf.  This could be simplified by including the largest split value in the last bucket. E.g., (x1, x2, x3) defines buckets [x1, x2) and [x2, x3]. This shouldn't affect user code much, and there are applications that need to include the right-most value. For example, we can bucketize ratings from 0 to 10 to bad, neutral, and good with splits 0, 4, 6, 10.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org