[ 
https://issues.apache.org/jira/browse/SPARK-5893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532574#comment-14532574
 ] 

Apache Spark commented on SPARK-5893:
-------------------------------------

User 'yinxusen' has created a pull request for this issue:
https://github.com/apache/spark/pull/5980

> Add Bucketizer
> --------------
>
>                 Key: SPARK-5893
>                 URL: https://issues.apache.org/jira/browse/SPARK-5893
>             Project: Spark
>          Issue Type: Sub-task
>          Components: ML
>            Reporter: Xiangrui Meng
>            Assignee: Joseph K. Bradley
>
> `Bucketizer` maps a column of continuous features to a column of feature 
> buckets, where the buckets are specified by users.
> {code}
> val bucketizer = new Bucketizer()
>   .setInputCol("age")
>   .setBuckets(Array(10, 20, 30, 40, 50))
>   .setOutputCol("ageBuckets")
> {code}
> The output feature names should be automatically generated. We need to 
> discuss the behavior if a value falls out the specified bucket range.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to