You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Mike Seddon (JIRA)" <ji...@apache.org> on 2016/01/12 08:30:39 UTC

[jira] [Commented] (SPARK-5891) Add Binarizer

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

Mike Seddon commented on SPARK-5891:
------------------------------------

I made the changes for the Binarizer to handle both Double and Vector input columns:
https://github.com/seddonm1/spark/blob/master/mllib/src/main/scala/org/apache/spark/ml/feature/Binarizer.scala

I would appreciate if someone could review and determine if I can submit a pull request?

> Add Binarizer
> -------------
>
>                 Key: SPARK-5891
>                 URL: https://issues.apache.org/jira/browse/SPARK-5891
>             Project: Spark
>          Issue Type: Sub-task
>          Components: ML
>            Reporter: Xiangrui Meng
>            Assignee: Liang-Chi Hsieh
>             Fix For: 1.4.0
>
>
> `Binarizer` takes a column of continuous features and output a column with binary features, where nonzeros (or values below a threshold) become 1 in the output.
> {code}
> val binarizer = new Binarizer()
>   .setInputCol("numVisits")
>   .setOutputCol("visited")
> {code}
> The output column should be marked as binary. We need to discuss whether we should process multiple columns or a vector column.



--
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