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

Xiangrui Meng commented on SPARK-6916:
--------------------------------------

It outputs a new column. The semantics changed after transformation, from a 
column of string labels to a column of indices. I think user should find the 
metadata in the original column instead of the generated column.

> StringIndexer should preserve non-ML metadata
> ---------------------------------------------
>
>                 Key: SPARK-6916
>                 URL: https://issues.apache.org/jira/browse/SPARK-6916
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 1.4.0
>            Reporter: Joseph K. Bradley
>            Priority: Minor
>
> StringIndexer sets the output column metadata to hold the ML-specific 
> metadata created after indexing the column.  It does not carry over non-ML 
> metadata from the input column.  I figure it should.  (That's the behavior I 
> used for VectorIndexer.)
> Ping [~mengxr]



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