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

[jira] [Commented] (SPARK-13097) Extend Binarizer to allow Double AND Vector inputs

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

Apache Spark commented on SPARK-13097:
--------------------------------------

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

> Extend Binarizer to allow Double AND Vector inputs
> --------------------------------------------------
>
>                 Key: SPARK-13097
>                 URL: https://issues.apache.org/jira/browse/SPARK-13097
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>            Reporter: Mike Seddon
>            Priority: Minor
>
> To enhance the existing SparkML Binarizer [SPARK-5891] to allow Vector in addition to the existing Double input column type.
> A use case for this enhancement is for when a user wants to Binarize many similar feature columns at once using the same threshold value.
> A real-world example for this would be where the authors of one of the leading MNIST handwriting character recognition entries converts 784 grayscale (0-255) pixels (28x28 pixel images) to binary if the pixel's grayscale exceeds 127.5: (http://arxiv.org/abs/1003.0358). With this modification the user is able to: VectorAssembler(784 columns)->Binarizer(127.5)->Classifier as all the pixels are of a similar type. 
> This approach also allows much easier use of the ParamGridBuilder to test multiple theshold values.
> I have already written the code and unit tests and have tested in a Multilayer perceptron classifier workflow.



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