You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:24:08 UTC

[jira] [Updated] (SPARK-11535) StringIndexer should handle empty String specially

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

Hyukjin Kwon updated SPARK-11535:
---------------------------------
    Labels: bulk-closed  (was: )

> 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
>              Labels: bulk-closed
>
> 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
(v7.6.3#76005)

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