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

Apache Spark commented on SPARK-11535:
--------------------------------------

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

> StringIndexer should handle empty String specially
> --------------------------------------------------
>
>                 Key: SPARK-11535
>                 URL: https://issues.apache.org/jira/browse/SPARK-11535
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>            Reporter: Joseph K. Bradley
>            Priority: Minor
>
> StringIndexer will treat an empty string like any other string and index it 
> properly.  However, the feature attribute name will be set to the empty 
> string, which causes a failure in OneHotEncoder.  We should handle it 
> specially by calling it something like "(empty_string)" (and maybe append an 
> integer if that string already exists).
> See [https://issues.apache.org/jira/browse/SPARK-10513] for a description of 
> the problem.



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

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

Reply via email to