spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Deleted] (SPARK-7445) StringIndexer should handle binary labels properly
Date Thu, 01 Sep 2016 08:07:21 GMT

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

Sean Owen updated SPARK-7445:
-----------------------------
    Comment: was deleted

(was: Yuhao on business trip from Aug 31th to Sep 2nd. Email response will be delayed.

For anything urgent, please contact +1 (669) 243 8273.

Regards,
Yuhao

)

> StringIndexer should handle binary labels properly
> --------------------------------------------------
>
>                 Key: SPARK-7445
>                 URL: https://issues.apache.org/jira/browse/SPARK-7445
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 1.4.0
>            Reporter: Xiangrui Meng
>            Priority: Minor
>
> StringIndexer orders labels by their counts. However, for binary labels, we should really
map negatives to 0 and positive to 1. So can put special rules for binary labels:
> 1. "+1"/"-1", "1"/"-1", "1"/"0"
> 2. "yes"/"no"
> 3. "true"/"false"
> Another option is to allow users to provide a list or labels and we use the ordering.



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


Mime
View raw message